mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 08:30:30 +01:00
cli: throw error on non zero result during install
This commit is contained in:
4
packages/cli/package-lock.json
generated
4
packages/cli/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "scrypted",
|
||||
"version": "1.0.56",
|
||||
"version": "1.0.57",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "scrypted",
|
||||
"version": "1.0.56",
|
||||
"version": "1.0.57",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@scrypted/types": "^0.0.6",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "scrypted",
|
||||
"version": "1.0.56",
|
||||
"version": "1.0.57",
|
||||
"description": "",
|
||||
"main": "./dist/packages/cli/src/main.js",
|
||||
"bin": {
|
||||
|
||||
@@ -23,6 +23,8 @@ async function runCommand(command: string, ...args: string[]) {
|
||||
stdio: 'inherit'
|
||||
});
|
||||
await once(cp, 'exit');
|
||||
if (cp.exitCode)
|
||||
throw new Error(`${command} exited with non zero result ${cp.exitCode}`);
|
||||
}
|
||||
|
||||
async function runCommandEatError(command: string, ...args: string[]) {
|
||||
|
||||
Reference in New Issue
Block a user