@schematics/angular 14.0.0-next.5 → 14.0.0-next.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/app-shell/index.js +6 -2
- package/app-shell/schema.d.ts +3 -3
- package/app-shell/schema.json +3 -3
- package/application/schema.d.ts +1 -1
- package/application/schema.json +1 -1
- package/collection.json +1 -1
- package/component/index.js +5 -1
- package/directive/index.js +5 -1
- package/e2e/e2e-long.md +1 -1
- package/e2e/index.js +6 -0
- package/e2e/schema.d.ts +1 -1
- package/e2e/schema.json +1 -1
- package/module/index.js +5 -1
- package/package.json +3 -3
- package/pipe/index.js +5 -1
- package/service-worker/index.js +7 -3
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +7 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +29 -16
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +4866 -3030
- package/universal/index.js +11 -2
- package/universal/schema.d.ts +1 -1
- package/universal/schema.json +1 -1
- package/utility/ast-utils.js +5 -1
- package/utility/latest-versions/package.json +2 -2
- package/utility/ng-ast-utils.js +6 -2
- package/utility/test/index.js +5 -1
- package/workspace/files/README.md.template +1 -1
- package/workspace/files/package.json.template +1 -2
package/universal/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -33,6 +37,7 @@ const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/
|
|
|
33
37
|
const ast_utils_1 = require("../utility/ast-utils");
|
|
34
38
|
const change_1 = require("../utility/change");
|
|
35
39
|
const dependencies_1 = require("../utility/dependencies");
|
|
40
|
+
const latest_versions_1 = require("../utility/latest-versions");
|
|
36
41
|
const ng_ast_utils_1 = require("../utility/ng-ast-utils");
|
|
37
42
|
const paths_1 = require("../utility/paths");
|
|
38
43
|
const project_targets_1 = require("../utility/project-targets");
|
|
@@ -194,7 +199,11 @@ function addDependencies() {
|
|
|
194
199
|
name: '@angular/platform-server',
|
|
195
200
|
};
|
|
196
201
|
(0, dependencies_1.addPackageJsonDependency)(host, platformServerDep);
|
|
197
|
-
|
|
202
|
+
(0, dependencies_1.addPackageJsonDependency)(host, {
|
|
203
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
|
204
|
+
name: '@types/node',
|
|
205
|
+
version: latest_versions_1.latestVersions['@types/node'],
|
|
206
|
+
});
|
|
198
207
|
};
|
|
199
208
|
}
|
|
200
209
|
function default_1(options) {
|
package/universal/schema.d.ts
CHANGED
package/universal/schema.json
CHANGED
package/utility/ast-utils.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"karma-jasmine-html-reporter": "~1.7.0",
|
|
12
12
|
"karma-jasmine": "~4.0.0",
|
|
13
13
|
"karma": "~6.3.0",
|
|
14
|
-
"ng-packagr": "^
|
|
14
|
+
"ng-packagr": "^14.0.0-next.2",
|
|
15
15
|
"rxjs": "~7.5.0",
|
|
16
16
|
"tslib": "^2.3.0",
|
|
17
|
-
"typescript": "~4.
|
|
17
|
+
"typescript": "~4.6.2",
|
|
18
18
|
"zone.js": "~0.11.4"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/utility/ng-ast-utils.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -68,7 +72,7 @@ function findBootstrapModulePath(host, mainPath) {
|
|
|
68
72
|
const bootstrapModule = bootstrapCall.arguments[0];
|
|
69
73
|
const mainBuffer = host.read(mainPath);
|
|
70
74
|
if (!mainBuffer) {
|
|
71
|
-
throw new schematics_1.SchematicsException(`Client
|
|
75
|
+
throw new schematics_1.SchematicsException(`Client application main file (${mainPath}) not found`);
|
|
72
76
|
}
|
|
73
77
|
const mainText = mainBuffer.toString('utf-8');
|
|
74
78
|
const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true);
|
package/utility/test/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -4,7 +4,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
|
|
|
4
4
|
|
|
5
5
|
## Development server
|
|
6
6
|
|
|
7
|
-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The
|
|
7
|
+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
|
|
8
8
|
|
|
9
9
|
## Code scaffolding
|
|
10
10
|
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@angular/cli": "<%= '~' + version %>",
|
|
27
27
|
"@angular/compiler-cli": "<%= latestVersions.Angular %>",<% if (!minimal) { %>
|
|
28
|
-
"@types/jasmine": "<%= latestVersions['@types/jasmine'] %>"
|
|
29
|
-
"@types/node": "<%= latestVersions['@types/node'] %>",<% if (!minimal) { %>
|
|
28
|
+
"@types/jasmine": "<%= latestVersions['@types/jasmine'] %>",
|
|
30
29
|
"jasmine-core": "<%= latestVersions['jasmine-core'] %>",
|
|
31
30
|
"karma": "<%= latestVersions['karma'] %>",
|
|
32
31
|
"karma-chrome-launcher": "<%= latestVersions['karma-chrome-launcher'] %>",
|