Skip to content

Commit

Permalink
fix(@angular/cli): update engines to require node 12.20.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

We drop support for Node.js versions prior to `12.20`.
  • Loading branch information
alan-agius4 committed Aug 9, 2021
1 parent 3ba13f4 commit 77fe6c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/packages.ts
Expand Up @@ -85,7 +85,7 @@ function loadPackageJson(p: string) {
// Overwrite engines to a common default.
case 'engines':
pkg['engines'] = {
'node': '^12.14.1 || >=14.0.0',
'node': '^12.20.0 || >=14.0.0',
'npm': '^6.11.0 || ^7.5.6',
'yarn': '>= 1.13.0',
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -40,7 +40,7 @@
"url": "https://github.com/angular/angular-cli.git"
},
"engines": {
"node": "^12.14.1 || ^14.0.0",
"node": "^12.20.0 || ^14.0.0",
"yarn": ">=1.21.1 <2",
"npm": "Please use yarn instead of NPM to install dependencies"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/cli/bin/ng
Expand Up @@ -29,7 +29,7 @@ if (version[0] % 2 === 1 && version[0] > 14) {
} else if (
version[0] < 12 ||
version[0] === 13 ||
(version[0] === 12 && version[1] < 14) ||
(version[0] === 12 && version[1] < 20) ||
(version[0] === 14 && version[1] < 15)
) {
// Error and exit if less than 12.14 or 13.x or less than 14.15
Expand Down

0 comments on commit 77fe6c4

Please sign in to comment.