Skip to content

Commit

Permalink
Merge pull request #49 from retejs/fix-angular-in-older-node-version
Browse files Browse the repository at this point in the history
fix(app,angular): compatible with node.js 14
  • Loading branch information
Ni55aN authored Aug 25, 2024
2 parents 82dc477 + 0deb90d commit 93e65b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/stack/angular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ export class AngularBuilder implements AppBuilder {
if (version === 17) options.push('--no-standalone')

await execa('npx', ['--package', `@angular/cli@${version}`, 'ng', 'new', name, ...options], { stdio: 'inherit' })
await execa('npx', ['npm-check-updates', '--upgrade', '--target', 'minor', '--filter', '/@angular.*/'], { stdio: 'inherit', cwd: name })
await execa('npx', [
'npm-check-updates@16',
'--upgrade',
'--target',
'minor',
'--filter',
'/@angular.*/'
], { stdio: 'inherit', cwd: name })
await execa('npm', ['i'], { cwd: name })

if (version < 13) {
Expand Down

0 comments on commit 93e65b0

Please sign in to comment.