Skip to content

Commit

Permalink
chore: Use npx when generating new NX project
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Nov 20, 2023
1 parent 58b0c08 commit 2649283
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e2e/utils/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { mkdirSync } from 'fs'

function runNxNewCommand(localTmpDir: string) {
return execSync(
`node ${require.resolve(
'nx'
)} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=apps`,
`npx nx new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=apps`,
{
cwd: localTmpDir
}
Expand Down

0 comments on commit 2649283

Please sign in to comment.