From 470ae53a63465086ac3aa06601e7e31d7ba33f85 Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Mon, 25 Mar 2019 10:36:57 -0700 Subject: [PATCH] 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. --- lib/packages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/packages.ts b/lib/packages.ts index 923d6a017be2..66b3536f484d 100644 --- a/lib/packages.ts +++ b/lib/packages.ts @@ -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;