Skip to content

Commit

Permalink
fix(@angular/cli): don't remove scripts from package.json
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hansl committed Mar 25, 2019
1 parent 75abc79 commit 470ae53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ function loadPackageJson(p: string) {
case 'private':
case 'workspaces':
case 'resolutions':
case 'scripts':
continue;

// Remove the following keys from the package.json.
case 'devDependencies':
case 'scripts':
delete pkg[key];
continue;

Expand Down

0 comments on commit 470ae53

Please sign in to comment.