Skip to content

Commit cd150c4

Browse files
filipesilvabbogdanov
authored andcommitted
build: use specific engines for built packages
1 parent e57b041 commit cd150c4

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

lib/packages.ts

+8
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ function loadPackageJson(p: string) {
114114
pkg[key] = b;
115115
break;
116116

117+
// Overwrite engines to a common default.
118+
case 'engines':
119+
pkg['engines'] = {
120+
'node': '>= 8.9.0',
121+
'npm': '>= 5.5.1',
122+
};
123+
break;
124+
117125
// Overwrite the package's key with to root one.
118126
default:
119127
pkg[key] = root[key];

packages/angular/cli/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
"type": "git",
2020
"url": "https://github.com/angular/angular-cli.git"
2121
},
22-
"engines": {
23-
"node": ">= 8.9.0",
24-
"npm": ">= 5.5.1"
25-
},
2622
"author": "Angular Authors",
2723
"license": "MIT",
2824
"bugs": {

packages/angular_devkit/schematics_cli/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
"code generation",
1414
"schematics"
1515
],
16-
"engines": {
17-
"node": ">= 8.9.0",
18-
"npm": ">= 5.5.1"
19-
},
2016
"dependencies": {
2117
"@angular-devkit/core": "0.0.0",
2218
"@angular-devkit/schematics": "0.0.0",

packages/ngtools/webpack/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
"url": "https://github.com/angular/angular-cli/issues"
2121
},
2222
"homepage": "https://github.com/angular/angular-cli/tree/master/packages/@ngtools/webpack",
23-
"engines": {
24-
"node": ">= 8.9.0",
25-
"npm": ">= 5.5.1"
26-
},
2723
"dependencies": {
2824
"@angular-devkit/core": "0.0.0",
2925
"rxjs": "6.2.2",

0 commit comments

Comments
 (0)