Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

kinvey flex deploy: should run a check and fail if the code is invalid #108

Description

@sebawita

When I run kinvey flex deploy, while my JavaScript is broken the deploy command still pushes the code to Kinvey, which then breaks my cloud code.

Instead it would be great if the deploy command could run some basic validations and throw an error, stopping me from sending the invalid code.

For example, in my code I was trying to submit code like:

export const myFunction = (context, complete, modules) => {
  complete().setBody([1, 2, 3]).done();
}

However, when I run node ., node will complain about the use of export and fail.
But kinvey flex deploy doesn't complain and is happy to push the invalid code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions