Skip to content

Commit bafe090

Browse files
committed
fix(list): explicitly exit upon completion
1 parent 8c7316e commit bafe090

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libs/commands/list/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ export class ListCommand extends Command {
3636
this.result?.count,
3737
this.result?.count === 1 ? "package" : "packages"
3838
);
39+
40+
process.exit(0);
3941
}
4042
}

tools/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npx nx run-many -t build
2020
npm install
2121

2222
# Resolve the packages using lerna itself
23-
IFS=$'\n' read -d '' -a packageLocations < <((node -e 'const fs = require("fs"); const pkgs = JSON.parse(fs.readFileSync(0, "utf-8")); for (const p of pkgs) { console.log(p.location); }') <<<"$(NX_DAEMON=false npx lerna list --json)")
23+
IFS=$'\n' read -d '' -a packageLocations < <((node -e 'const fs = require("fs"); const pkgs = JSON.parse(fs.readFileSync(0, "utf-8")); for (const p of pkgs) { console.log(p.location); }') <<<"$(npx lerna list --json)")
2424

2525
for packageLocation in "${packageLocations[@]}"; do
2626
newLocation=$(echo "./dist/${packageLocation#${workspaceRoot}/}/")

0 commit comments

Comments
 (0)