directory to check for package.json
true if package.json exists in cwd, false otherwise
Create string representation of command and arguments, removing sensitive information.
command
command arguments
sanitized string representing command
Run npm run compile
. It ensures a package.json exist in cwd.
directory to run the compilation in
return value of the npm run compile
command
Run npm ci
if a package-lock.json exists in the project; runs npm install
otherwise.
It ensures a package.json exist in cwd.
directory to run install in
return value of the npm install
command
Run a binary automation-client dependency in a platform-independent-ish way.
Run the given command with the given arguments, optionally installing and compiling first and return a Promise of the command exit value.
see SpawnOptions
Promise of integer return value of command, Promise.resolve(0) if command is successful
Run an @atomist/automation-client Node.js script.
Run a command and return a promise supplying the exit value of the command.
see SpawnPromiseoptions
a Promise of the return value of the spawned command
Generated using TypeDoc
Check if a package.json file exists in cwd.