From 3f004c93db59fe27680bc662ae362a68e568b02a Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 19 Mar 2025 17:56:51 -0400 Subject: [PATCH] fix(@schematics/angular): remove empty `scripts` option value from new applications The `scripts` option with an empty array value has been removed from newly generated applications including with `ng new`. This option is less commonly used and can be added if needed by a project. The removal reduces the total size of the generated `angular.json`. --- packages/schematics/angular/application/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index 790e90fce784..875c3ced481b 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -244,7 +244,6 @@ function addAppToWorkspaceFile( inlineStyleLanguage, assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }], styles: [`${sourceRoot}/styles.${options.style}`], - scripts: [], }, configurations: { production: { @@ -284,7 +283,6 @@ function addAppToWorkspaceFile( inlineStyleLanguage, assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }], styles: [`${sourceRoot}/styles.${options.style}`], - scripts: [], }, }, },