@angular/pwa 14.0.0-next.9 → 14.0.0-rc.0

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/pwa/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/pwa",
3
- "version": "14.0.0-next.9",
3
+ "version": "14.0.0-rc.0",
4
4
  "description": "PWA schematics for Angular",
5
5
  "keywords": [
6
6
  "angular",
@@ -17,8 +17,8 @@
17
17
  "save": false
18
18
  },
19
19
  "dependencies": {
20
- "@angular-devkit/schematics": "14.0.0-next.9",
21
- "@schematics/angular": "14.0.0-next.9",
20
+ "@angular-devkit/schematics": "14.0.0-rc.0",
21
+ "@schematics/angular": "14.0.0-rc.0",
22
22
  "parse5-html-rewriting-stream": "6.0.1"
23
23
  },
24
24
  "repository": {
package/pwa/index.js CHANGED
@@ -31,7 +31,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
33
  const schematics_1 = require("@angular-devkit/schematics");
34
- const workspace_1 = require("@schematics/angular/utility/workspace");
34
+ const utility_1 = require("@schematics/angular/utility");
35
35
  const path_1 = require("path");
36
36
  const stream_1 = require("stream");
37
37
  function updateIndexFile(path) {
@@ -89,7 +89,7 @@ function default_1(options) {
89
89
  if (!options.title) {
90
90
  options.title = options.project;
91
91
  }
92
- const workspace = await (0, workspace_1.getWorkspace)(host);
92
+ const workspace = await (0, utility_1.readWorkspace)(host);
93
93
  if (!options.project) {
94
94
  throw new schematics_1.SchematicsException('Option "project" is required.');
95
95
  }
@@ -148,8 +148,8 @@ function default_1(options) {
148
148
  const sourcePath = (_c = project.sourceRoot) !== null && _c !== void 0 ? _c : path_1.posix.join(project.root, 'src');
149
149
  // Setup service worker schematic options
150
150
  const { title, ...swOptions } = options;
151
+ await (0, utility_1.writeWorkspace)(host, workspace);
151
152
  return (0, schematics_1.chain)([
152
- (0, workspace_1.updateWorkspace)(workspace),
153
153
  (0, schematics_1.externalSchematic)('@schematics/angular', 'service-worker', swOptions),
154
154
  (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files/root'), [(0, schematics_1.template)({ ...options }), (0, schematics_1.move)(sourcePath)])),
155
155
  (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files/assets'), [