Skip to content

Commit 470ae53

Browse files
committed
fix(@angular/cli): don't remove scripts from package.json
This was dropped because we used to have postinstall scripts that we did not want to use on npm. We don't anymore, so there's no use in removing those scripts.
1 parent 75abc79 commit 470ae53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/packages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ function loadPackageJson(p: string) {
5959
case 'private':
6060
case 'workspaces':
6161
case 'resolutions':
62+
case 'scripts':
6263
continue;
6364

6465
// Remove the following keys from the package.json.
6566
case 'devDependencies':
66-
case 'scripts':
6767
delete pkg[key];
6868
continue;
6969

0 commit comments

Comments
 (0)