Skip to content

Commit

Permalink
fix(list): explicitly exit upon completion
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Feb 5, 2024
1 parent 8c7316e commit bafe090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libs/commands/list/src/index.ts
Expand Up @@ -36,5 +36,7 @@ export class ListCommand extends Command {
this.result?.count,
this.result?.count === 1 ? "package" : "packages"
);

process.exit(0);
}
}
2 changes: 1 addition & 1 deletion tools/scripts/build.sh
Expand Up @@ -20,7 +20,7 @@ npx nx run-many -t build
npm install

# Resolve the packages using lerna itself
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)")
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)")

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

0 comments on commit bafe090

Please sign in to comment.