@schematics/angular 8.0.2 → 8.0.3
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/application/index.js
CHANGED
|
@@ -101,8 +101,18 @@ function updateTsConfig(tree, tsConfigPath) {
|
|
|
101
101
|
if (isExtendedConfig) {
|
|
102
102
|
json_utils_1.removePropertyInAstObject(recorder, compilerOptions, 'target');
|
|
103
103
|
json_utils_1.removePropertyInAstObject(recorder, compilerOptions, 'module');
|
|
104
|
+
json_utils_1.removePropertyInAstObject(recorder, compilerOptions, 'downlevelIteration');
|
|
104
105
|
}
|
|
105
106
|
else {
|
|
107
|
+
const downlevelIteration = json_utils_1.findPropertyInAstObject(compilerOptions, 'downlevelIteration');
|
|
108
|
+
if (!downlevelIteration) {
|
|
109
|
+
json_utils_1.insertPropertyInAstObjectInOrder(recorder, compilerOptions, 'downlevelIteration', true, 4);
|
|
110
|
+
}
|
|
111
|
+
else if (!downlevelIteration.value) {
|
|
112
|
+
const { start, end } = downlevelIteration;
|
|
113
|
+
recorder.remove(start.offset, end.offset - start.offset);
|
|
114
|
+
recorder.insertLeft(start.offset, 'true');
|
|
115
|
+
}
|
|
106
116
|
const scriptTarget = json_utils_1.findPropertyInAstObject(compilerOptions, 'target');
|
|
107
117
|
if (!scriptTarget) {
|
|
108
118
|
json_utils_1.insertPropertyInAstObjectInOrder(recorder, compilerOptions, 'target', 'es2015', 4);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"schematics": "./collection.json",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@angular-devkit/core": "8.0.
|
|
18
|
-
"@angular-devkit/schematics": "8.0.
|
|
17
|
+
"@angular-devkit/core": "8.0.3",
|
|
18
|
+
"@angular-devkit/schematics": "8.0.3"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.latestVersions = {
|
|
11
11
|
// These versions should be kept up to date with latest Angular peer dependencies.
|
|
12
|
-
Angular: '~8.0.
|
|
12
|
+
Angular: '~8.0.1',
|
|
13
13
|
RxJs: '~6.4.0',
|
|
14
14
|
ZoneJs: '~0.9.1',
|
|
15
15
|
TypeScript: '~3.4.3',
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
"outDir": "./dist/out-tsc",
|
|
6
6
|
"sourceMap": true,
|
|
7
7
|
"declaration": false,
|
|
8
|
-
"
|
|
9
|
-
"moduleResolution": "node",
|
|
8
|
+
"downlevelIteration": true,
|
|
10
9
|
"emitDecoratorMetadata": true,
|
|
11
10
|
"experimentalDecorators": true,
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "node",
|
|
12
13
|
"importHelpers": true,
|
|
13
14
|
"target": "es2015",
|
|
14
15
|
"typeRoots": [
|