From 81c385e2737a6226463a84e103bba1f937570d41 Mon Sep 17 00:00:00 2001 From: Dirk Groenen Date: Wed, 8 Jan 2020 22:10:25 +0100 Subject: [PATCH 1/2] fix(utils) always initialize scripts array (#188) Fixes #188 --- builders/utils/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/builders/utils/index.ts b/builders/utils/index.ts index af04cef..e290207 100644 --- a/builders/utils/index.ts +++ b/builders/utils/index.ts @@ -46,6 +46,12 @@ export function prepareBrowserConfig( optionsStarter.deleteOutputPath = false; } + // Initialize an empty script array to make sure assets are pushed even when + // scripts is not configured in angular.json + if (!optionsStarter.scripts) { + optionsStarter.scripts = []; + } + if (options.consolelogs) { // Write the config to a file, and then include that in the bundle so it loads on window const configPath = getSystemPath( @@ -61,9 +67,6 @@ export function prepareBrowserConfig( options.consolelogsPort } }` ); - if (!optionsStarter.scripts) { - optionsStarter.scripts = []; - } optionsStarter.scripts.push({ input: configPath, bundleName: 'consolelogs', From 3236752d8c8e2dbc2da8f0921944481aa78ff1fd Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2020 10:52:55 +0000 Subject: [PATCH 2/2] chore(deps-dev): bump husky from 3.1.0 to 4.0.6 Bumps [husky](https://github.com/typicode/husky) from 3.1.0 to 4.0.6. - [Release notes](https://github.com/typicode/husky/releases) - [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md) - [Commits](https://github.com/typicode/husky/compare/v3.1.0...v4.0.6) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 08e92de..d3fc5d4 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@types/ws": "^6.0.1", "commitizen": "^3.0.2", "cz-conventional-changelog": "^2.1.0", - "husky": "^3.0.0", + "husky": "^4.0.6", "lint-staged": "^9.1.0", "rimraf": "^2.6.2", "semantic-release": "^15.9.17",