Skip to content

Commit

Permalink
patch mysteriously broken NX command
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Dec 9, 2023
1 parent fffe762 commit 64d4681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "npm run lint:configs && npx nx run-many --parallel=${NX_PARALLEL:-3} -t build",
"test": "npm run lint:configs && npx nx run-many --parallel=${NX_PARALLEL:-3} -t test",
"release:lib": "./wipe.sh && sh ./tools/scripts/bump-version.sh && npm run build && npm run lint && npm run test && read -p 'Enter OTP: ' otp && export NPM_CONFIG_OTP=$otp && npx nx release publish -g paima-sdk && npx nx release publish -g node-sdk && npx nx release publish -g build-utils",
"release:bin": "./wipe.sh && npm run lint:configs && npx nx run-many --parallel=${NX_PARALLEL:-3} -t release && mkdir -p ./bin && cp -r ./packages/engine/paima-standalone/packaged/@standalone/* ./bin"
"release:bin": "./wipe.sh && npm run lint:configs && echo 'This command usually fails from NX, so go in the right folders and run /npm run release/ manually:\nnpx nx run-many --parallel=${NX_PARALLEL:-3} -t release\nPress any key to continue once done' && read _ && mkdir -p ./bin && cp -r ./packages/engine/paima-standalone/packaged/@standalone/* ./bin"
},
"devDependencies": {
"@eslint/eslintrc": "^2.1.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/engine/paima-standalone/scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function createTmpConfig() {
fs.mkdirSync(getTmpFolder(), { recursive: true });
}
config.pkg.assets.push(`./batcher-bin/${getBatcherName()}`);
// note: config.pkg here has two compilation targets
// we keep it that way on purpose since prod builds require us to build all architectures at the same time
fs.writeFileSync(getTmpFile(), JSON.stringify(config, null, 2));
}
function getBatcherName() {
Expand Down

0 comments on commit 64d4681

Please sign in to comment.