@angular-devkit/build-angular 13.3.3 → 13.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "13.3.3",
3
+ "version": "13.3.6",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
- "@ampproject/remapping": "1.1.1",
10
- "@angular-devkit/architect": "0.1303.3",
11
- "@angular-devkit/build-webpack": "0.1303.3",
12
- "@angular-devkit/core": "13.3.3",
9
+ "@ampproject/remapping": "2.2.0",
10
+ "@angular-devkit/architect": "0.1303.6",
11
+ "@angular-devkit/build-webpack": "0.1303.6",
12
+ "@angular-devkit/core": "13.3.6",
13
13
  "@babel/core": "7.16.12",
14
14
  "@babel/generator": "7.16.8",
15
15
  "@babel/helper-annotate-as-pure": "7.16.7",
@@ -20,9 +20,9 @@
20
20
  "@babel/runtime": "7.16.7",
21
21
  "@babel/template": "7.16.7",
22
22
  "@discoveryjs/json-ext": "0.5.6",
23
- "@ngtools/webpack": "13.3.3",
23
+ "@ngtools/webpack": "13.3.6",
24
24
  "ansi-colors": "4.1.1",
25
- "babel-loader": "8.2.3",
25
+ "babel-loader": "8.2.5",
26
26
  "babel-plugin-istanbul": "6.1.1",
27
27
  "browserslist": "^4.9.1",
28
28
  "cacache": "15.3.0",
@@ -95,7 +95,7 @@ async function _renderUniversal(options, context, browserResult, serverResult, s
95
95
  }
96
96
  await fs.promises.writeFile(outputIndexPath, html);
97
97
  if (browserOptions.serviceWorker) {
98
- await (0, service_worker_1.augmentAppWithServiceWorker)(projectRoot, (0, core_1.normalize)(outputPath), browserOptions.baseHref || '/', browserOptions.ngswConfigPath);
98
+ await (0, service_worker_1.augmentAppWithServiceWorker)(projectRoot, context.workspaceRoot, (0, core_1.normalize)(outputPath), browserOptions.baseHref || '/', browserOptions.ngswConfigPath);
99
99
  }
100
100
  }
101
101
  return browserResult;
@@ -253,7 +253,7 @@ function buildWebpackBrowser(options, context, transforms = {}) {
253
253
  spinner.start('Generating service worker...');
254
254
  for (const [locale, outputPath] of outputPaths.entries()) {
255
255
  try {
256
- await (0, service_worker_1.augmentAppWithServiceWorker)((0, core_1.normalize)(projectRoot), (0, core_1.normalize)(outputPath), getLocaleBaseHref(i18n, locale) || options.baseHref || '/', options.ngswConfigPath);
256
+ await (0, service_worker_1.augmentAppWithServiceWorker)((0, core_1.normalize)(projectRoot), context.workspaceRoot, (0, core_1.normalize)(outputPath), getLocaleBaseHref(i18n, locale) || options.baseHref || '/', options.ngswConfigPath);
257
257
  }
258
258
  catch (error) {
259
259
  spinner.fail('Service worker generation failed.');
@@ -6,4 +6,4 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { Path } from '@angular-devkit/core';
9
- export declare function augmentAppWithServiceWorker(appRoot: Path, outputPath: Path, baseHref: string, ngswConfigPath?: string): Promise<void>;
9
+ export declare function augmentAppWithServiceWorker(appRoot: Path, workspaceRoot: string, outputPath: Path, baseHref: string, ngswConfigPath?: string): Promise<void>;
@@ -76,11 +76,11 @@ class CliFilesystem {
76
76
  return items;
77
77
  }
78
78
  }
79
- async function augmentAppWithServiceWorker(appRoot, outputPath, baseHref, ngswConfigPath) {
79
+ async function augmentAppWithServiceWorker(appRoot, workspaceRoot, outputPath, baseHref, ngswConfigPath) {
80
80
  const distPath = (0, core_1.getSystemPath)((0, core_1.normalize)(outputPath));
81
81
  // Determine the configuration file path
82
82
  const configPath = ngswConfigPath
83
- ? (0, core_1.getSystemPath)((0, core_1.normalize)(ngswConfigPath))
83
+ ? path.join(workspaceRoot, (0, core_1.getSystemPath)((0, core_1.normalize)(ngswConfigPath)))
84
84
  : path.join((0, core_1.getSystemPath)(appRoot), 'ngsw-config.json');
85
85
  // Read the configuration file
86
86
  let config;