Skip to content

Commit

Permalink
fix: [DX-3131] Fix slow dev rebuild for initial changed package (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidarain1 authored Aug 19, 2024
1 parent 1b94c0f commit b4fe508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-dependents.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ try {

if (isDependent || changedProject === currentProject) {
// Rebuild the current project
const command = `nx run-many --target=d --projects=${currentProject} --parallel=5`;
const command = `nx run-many --target=d --projects=${currentProject} --parallel=5 --no-cloud`;

console.log(`Running command: ${command}`);
execSync(command, { stdio: 'inherit' });
Expand Down
2 changes: 1 addition & 1 deletion dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ fi

# Run nx commands with the selected or provided package name
echo "Running commands for package: $PACKAGE_NAME"
nx run $PACKAGE_NAME:d --parallel=5
nx run $PACKAGE_NAME:d --parallel=5 --no-cloud
nx watch --all -- node ./build-dependents.js \$NX_PROJECT_NAME $(echo $PACKAGE_NAME)

0 comments on commit b4fe508

Please sign in to comment.