@skyux/packages 6.21.0 → 7.0.0-beta.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.
- package/package.json +48 -48
- package/src/schematics/migrations/migration-collection.json +1 -61
- package/src/schematics/testing/scaffold.js +2 -2
- package/src/schematics/migrations/update-6/add-cdk.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/add-cdk.schematic.js +0 -8
- package/src/schematics/migrations/update-6/add-cdk.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/add-pages-modals-peer-dependency.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/add-pages-modals-peer-dependency.schematic.js +0 -32
- package/src/schematics/migrations/update-6/add-pages-modals-peer-dependency.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/crossvent.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/crossvent.schematic.js +0 -12
- package/src/schematics/migrations/update-6/crossvent.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/disable-strict-mode-rules.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/disable-strict-mode-rules.schematic.js +0 -24
- package/src/schematics/migrations/update-6/disable-strict-mode-rules.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/ensure-theme-stylesheets.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/ensure-theme-stylesheets.schematic.js +0 -8
- package/src/schematics/migrations/update-6/ensure-theme-stylesheets.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/fix-deep-imports.schematic.d.ts +0 -5
- package/src/schematics/migrations/update-6/fix-deep-imports.schematic.js +0 -19
- package/src/schematics/migrations/update-6/fix-deep-imports.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/fix-imports-with-trailing-slash.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/fix-imports-with-trailing-slash.schematic.js +0 -13
- package/src/schematics/migrations/update-6/fix-imports-with-trailing-slash.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/fix-ng-unsubscribe.schematic.d.ts +0 -6
- package/src/schematics/migrations/update-6/fix-ng-unsubscribe.schematic.js +0 -28
- package/src/schematics/migrations/update-6/fix-ng-unsubscribe.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/fix-rxjs-internal-compatibility-imports.schematic.d.ts +0 -6
- package/src/schematics/migrations/update-6/fix-rxjs-internal-compatibility-imports.schematic.js +0 -23
- package/src/schematics/migrations/update-6/fix-rxjs-internal-compatibility-imports.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/fix-scss-tilde-imports.schematic.d.ts +0 -7
- package/src/schematics/migrations/update-6/fix-scss-tilde-imports.schematic.js +0 -33
- package/src/schematics/migrations/update-6/fix-scss-tilde-imports.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/prettier-ignore-updates.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/prettier-ignore-updates.schematic.js +0 -29
- package/src/schematics/migrations/update-6/prettier-ignore-updates.schematic.js.map +0 -1
- package/src/schematics/migrations/update-6/prettier-ignore.schematic.d.ts +0 -2
- package/src/schematics/migrations/update-6/prettier-ignore.schematic.js +0 -14
- package/src/schematics/migrations/update-6/prettier-ignore.schematic.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-beta.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,61 +27,61 @@
|
|
|
27
27
|
"@blackbaud/skyux-lib-code-block": "^6.0.0-beta.0",
|
|
28
28
|
"@blackbaud/skyux-lib-media": "^6.0.0-beta.0",
|
|
29
29
|
"@blackbaud/skyux-lib-stache": "^6.0.0-beta.0",
|
|
30
|
-
"@skyux-sdk/prettier-schematics": "
|
|
31
|
-
"@skyux-sdk/testing": "
|
|
32
|
-
"@skyux/a11y": "
|
|
33
|
-
"@skyux/action-bars": "
|
|
34
|
-
"@skyux/ag-grid": "
|
|
35
|
-
"@skyux/angular-tree-component": "
|
|
36
|
-
"@skyux/animations": "
|
|
37
|
-
"@skyux/assets": "
|
|
38
|
-
"@skyux/autonumeric": "
|
|
39
|
-
"@skyux/avatar": "
|
|
40
|
-
"@skyux/colorpicker": "
|
|
41
|
-
"@skyux/config": "
|
|
42
|
-
"@skyux/core": "
|
|
43
|
-
"@skyux/data-manager": "
|
|
44
|
-
"@skyux/datetime": "
|
|
30
|
+
"@skyux-sdk/prettier-schematics": "7.0.0-beta.0",
|
|
31
|
+
"@skyux-sdk/testing": "7.0.0-beta.0",
|
|
32
|
+
"@skyux/a11y": "7.0.0-beta.0",
|
|
33
|
+
"@skyux/action-bars": "7.0.0-beta.0",
|
|
34
|
+
"@skyux/ag-grid": "7.0.0-beta.0",
|
|
35
|
+
"@skyux/angular-tree-component": "7.0.0-beta.0",
|
|
36
|
+
"@skyux/animations": "7.0.0-beta.0",
|
|
37
|
+
"@skyux/assets": "7.0.0-beta.0",
|
|
38
|
+
"@skyux/autonumeric": "7.0.0-beta.0",
|
|
39
|
+
"@skyux/avatar": "7.0.0-beta.0",
|
|
40
|
+
"@skyux/colorpicker": "7.0.0-beta.0",
|
|
41
|
+
"@skyux/config": "7.0.0-beta.0",
|
|
42
|
+
"@skyux/core": "7.0.0-beta.0",
|
|
43
|
+
"@skyux/data-manager": "7.0.0-beta.0",
|
|
44
|
+
"@skyux/datetime": "7.0.0-beta.0",
|
|
45
45
|
"@skyux/docs-tools": "^6.0.0-beta.0",
|
|
46
|
-
"@skyux/errors": "
|
|
47
|
-
"@skyux/flyout": "
|
|
48
|
-
"@skyux/forms": "
|
|
49
|
-
"@skyux/grids": "
|
|
50
|
-
"@skyux/http": "
|
|
51
|
-
"@skyux/i18n": "
|
|
46
|
+
"@skyux/errors": "7.0.0-beta.0",
|
|
47
|
+
"@skyux/flyout": "7.0.0-beta.0",
|
|
48
|
+
"@skyux/forms": "7.0.0-beta.0",
|
|
49
|
+
"@skyux/grids": "7.0.0-beta.0",
|
|
50
|
+
"@skyux/http": "7.0.0-beta.0",
|
|
51
|
+
"@skyux/i18n": "7.0.0-beta.0",
|
|
52
52
|
"@skyux/icons": "^5.1.1",
|
|
53
|
-
"@skyux/indicators": "
|
|
54
|
-
"@skyux/inline-form": "
|
|
55
|
-
"@skyux/layout": "
|
|
56
|
-
"@skyux/list-builder": "
|
|
57
|
-
"@skyux/list-builder-common": "
|
|
58
|
-
"@skyux/list-builder-view-checklist": "
|
|
59
|
-
"@skyux/list-builder-view-grids": "
|
|
60
|
-
"@skyux/lists": "
|
|
61
|
-
"@skyux/lookup": "
|
|
62
|
-
"@skyux/modals": "
|
|
63
|
-
"@skyux/navbar": "
|
|
64
|
-
"@skyux/omnibar-interop": "
|
|
65
|
-
"@skyux/pages": "
|
|
66
|
-
"@skyux/phone-field": "
|
|
67
|
-
"@skyux/popovers": "
|
|
68
|
-
"@skyux/progress-indicator": "
|
|
69
|
-
"@skyux/router": "
|
|
70
|
-
"@skyux/select-field": "
|
|
71
|
-
"@skyux/split-view": "
|
|
72
|
-
"@skyux/tabs": "
|
|
73
|
-
"@skyux/text-editor": "
|
|
74
|
-
"@skyux/theme": "
|
|
75
|
-
"@skyux/tiles": "
|
|
76
|
-
"@skyux/toast": "
|
|
77
|
-
"@skyux/validation": "
|
|
53
|
+
"@skyux/indicators": "7.0.0-beta.0",
|
|
54
|
+
"@skyux/inline-form": "7.0.0-beta.0",
|
|
55
|
+
"@skyux/layout": "7.0.0-beta.0",
|
|
56
|
+
"@skyux/list-builder": "7.0.0-beta.0",
|
|
57
|
+
"@skyux/list-builder-common": "7.0.0-beta.0",
|
|
58
|
+
"@skyux/list-builder-view-checklist": "7.0.0-beta.0",
|
|
59
|
+
"@skyux/list-builder-view-grids": "7.0.0-beta.0",
|
|
60
|
+
"@skyux/lists": "7.0.0-beta.0",
|
|
61
|
+
"@skyux/lookup": "7.0.0-beta.0",
|
|
62
|
+
"@skyux/modals": "7.0.0-beta.0",
|
|
63
|
+
"@skyux/navbar": "7.0.0-beta.0",
|
|
64
|
+
"@skyux/omnibar-interop": "7.0.0-beta.0",
|
|
65
|
+
"@skyux/pages": "7.0.0-beta.0",
|
|
66
|
+
"@skyux/phone-field": "7.0.0-beta.0",
|
|
67
|
+
"@skyux/popovers": "7.0.0-beta.0",
|
|
68
|
+
"@skyux/progress-indicator": "7.0.0-beta.0",
|
|
69
|
+
"@skyux/router": "7.0.0-beta.0",
|
|
70
|
+
"@skyux/select-field": "7.0.0-beta.0",
|
|
71
|
+
"@skyux/split-view": "7.0.0-beta.0",
|
|
72
|
+
"@skyux/tabs": "7.0.0-beta.0",
|
|
73
|
+
"@skyux/text-editor": "7.0.0-beta.0",
|
|
74
|
+
"@skyux/theme": "7.0.0-beta.0",
|
|
75
|
+
"@skyux/tiles": "7.0.0-beta.0",
|
|
76
|
+
"@skyux/toast": "7.0.0-beta.0",
|
|
77
|
+
"@skyux/validation": "7.0.0-beta.0",
|
|
78
78
|
"ag-grid-angular": "^27.2.0",
|
|
79
79
|
"ag-grid-community": "^27.2.0",
|
|
80
80
|
"ag-grid-enterprise": "^27.2.0"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@angular/cli": "^
|
|
84
|
+
"@angular/cli": "^14.2.0"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"fs-extra": "10.0.0",
|
|
@@ -1,69 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0-beta.0",
|
|
5
5
|
"factory": "./noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
|
-
},
|
|
8
|
-
"add-cdk": {
|
|
9
|
-
"version": "6.0.0",
|
|
10
|
-
"factory": "./update-6/add-cdk.schematic",
|
|
11
|
-
"description": "Add @angular/cdk if applicable"
|
|
12
|
-
},
|
|
13
|
-
"disable-strict-mode-rules": {
|
|
14
|
-
"version": "6.0.0",
|
|
15
|
-
"factory": "./update-6/disable-strict-mode-rules.schematic",
|
|
16
|
-
"description": "Disable 'strictNullChecks' due to some breaking changes introduced in TypeScript 4.4."
|
|
17
|
-
},
|
|
18
|
-
"fix-deep-imports": {
|
|
19
|
-
"version": "6.0.0",
|
|
20
|
-
"factory": "./update-6/fix-deep-imports.schematic",
|
|
21
|
-
"description": "Fix deep imports into @skyux packages"
|
|
22
|
-
},
|
|
23
|
-
"fix-imports-with-trailing-slash": {
|
|
24
|
-
"version": "6.0.0",
|
|
25
|
-
"factory": "./update-6/fix-imports-with-trailing-slash.schematic",
|
|
26
|
-
"description": "Remove trailing slashes from TypeScript import statements"
|
|
27
|
-
},
|
|
28
|
-
"fix-ng-unsubscribe": {
|
|
29
|
-
"version": "6.0.0",
|
|
30
|
-
"factory": "./update-6/fix-ng-unsubscribe.schematic",
|
|
31
|
-
"description": "Set 'ngUnsubscribe' Subject<any> to Subject<void>"
|
|
32
|
-
},
|
|
33
|
-
"fix-rxjs-internal-compatibility-imports": {
|
|
34
|
-
"version": "6.0.0",
|
|
35
|
-
"factory": "./update-6/fix-rxjs-internal-compatibility-imports.schematic",
|
|
36
|
-
"description": "Fix imports from 'rxjs/internal-compatibility'"
|
|
37
|
-
},
|
|
38
|
-
"fix-scss-tilde-imports": {
|
|
39
|
-
"version": "6.0.0",
|
|
40
|
-
"factory": "./update-6/fix-scss-tilde-imports.schematic",
|
|
41
|
-
"description": "Remove tilde character from SCSS imports"
|
|
42
|
-
},
|
|
43
|
-
"crossvent": {
|
|
44
|
-
"version": "6.0.0",
|
|
45
|
-
"factory": "./update-6/crossvent.schematic",
|
|
46
|
-
"description": "Apply fix for crossvent 'global is not defined' error"
|
|
47
|
-
},
|
|
48
|
-
"ensure-theme-stylesheets": {
|
|
49
|
-
"version": "6.0.0",
|
|
50
|
-
"factory": "./update-6/ensure-theme-stylesheets.schematic",
|
|
51
|
-
"description": "Ensure applications reference SKY UX stylesheets correctly"
|
|
52
|
-
},
|
|
53
|
-
"prettier-ignore": {
|
|
54
|
-
"version": "6.0.0",
|
|
55
|
-
"factory": "./update-6/prettier-ignore.schematic",
|
|
56
|
-
"description": "Add '.angular/cache' to .prettierignore"
|
|
57
|
-
},
|
|
58
|
-
"prettier-ignore-updates": {
|
|
59
|
-
"version": "6.0.1",
|
|
60
|
-
"factory": "./update-6/prettier-ignore-updates.schematic",
|
|
61
|
-
"description": "Add new items to .prettierignore"
|
|
62
|
-
},
|
|
63
|
-
"add-pages-modals-peer-dependency": {
|
|
64
|
-
"version": "6.7.0",
|
|
65
|
-
"factory": "./update-6/add-pages-modals-peer-dependency.schematic",
|
|
66
|
-
"description": "Add '@skyux/modals' peer dependency to '@skyux/pages' package"
|
|
67
7
|
}
|
|
68
8
|
}
|
|
69
9
|
}
|
|
@@ -12,7 +12,7 @@ async function createTestApp(runner, appOptions) {
|
|
|
12
12
|
routing: true,
|
|
13
13
|
strict: true,
|
|
14
14
|
style: 'scss',
|
|
15
|
-
version: '
|
|
15
|
+
version: '14',
|
|
16
16
|
})
|
|
17
17
|
.toPromise();
|
|
18
18
|
}
|
|
@@ -27,7 +27,7 @@ async function createTestLibrary(runner, libOptions) {
|
|
|
27
27
|
name: `${libOptions.name}-workspace`,
|
|
28
28
|
createApplication: false,
|
|
29
29
|
strict: true,
|
|
30
|
-
version: '
|
|
30
|
+
version: '14',
|
|
31
31
|
})
|
|
32
32
|
.toPromise();
|
|
33
33
|
await runner
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const install_angular_cdk_1 = require("../../rules/install-angular-cdk");
|
|
4
|
-
function default_1() {
|
|
5
|
-
return (0, install_angular_cdk_1.installAngularCdk)();
|
|
6
|
-
}
|
|
7
|
-
exports.default = default_1;
|
|
8
|
-
//# sourceMappingURL=add-cdk.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-cdk.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/add-cdk.schematic.ts"],"names":[],"mappings":";;AAEA,yEAAoE;AAEpE;IACE,OAAO,IAAA,uCAAiB,GAAE,CAAC;AAC7B,CAAC;AAFD,4BAEC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
6
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
-
const json_file_1 = require("../../utility/json-file");
|
|
9
|
-
function addPagesModalsPeerDependency() {
|
|
10
|
-
return async (tree, context) => {
|
|
11
|
-
const packageJson = new json_file_1.JsonFile(tree, 'package.json');
|
|
12
|
-
const dependencies = packageJson.get(['dependencies']) || {};
|
|
13
|
-
if ('@skyux/modals' in dependencies) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const devDependencies = packageJson.get(['devDependencies']) || {};
|
|
17
|
-
if ('@skyux/modals' in devDependencies) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
// Get the currently installed version of SKY UX.
|
|
21
|
-
const { version: skyuxVersion } = fs_extra_1.default.readJsonSync(path_1.default.resolve(__dirname, '../../../../package.json'));
|
|
22
|
-
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
23
|
-
type: dependencies_1.NodeDependencyType.Default,
|
|
24
|
-
name: '@skyux/modals',
|
|
25
|
-
version: `^${skyuxVersion}`,
|
|
26
|
-
overwrite: true,
|
|
27
|
-
});
|
|
28
|
-
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
exports.default = addPagesModalsPeerDependency;
|
|
32
|
-
//# sourceMappingURL=add-pages-modals-peer-dependency.schematic.js.map
|
package/src/schematics/migrations/update-6/add-pages-modals-peer-dependency.schematic.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-pages-modals-peer-dependency.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/add-pages-modals-peer-dependency.schematic.ts"],"names":[],"mappings":";;;AACA,4DAA0E;AAC1E,2EAGkD;AAElD,gEAA0B;AAC1B,wDAAwB;AAExB,uDAAmD;AAEnD,SAAwB,4BAA4B;IAClD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,WAAW,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QACvD,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,IAAI,EAAE,CAAC;QAC7D,IAAI,eAAe,IAAI,YAAY,EAAE;YACnC,OAAO;SACR;QACD,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC;QACnE,IAAI,eAAe,IAAI,eAAe,EAAE;YACtC,OAAO;SACR;QACD,iDAAiD;QACjD,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,kBAAE,CAAC,YAAY,CAC/C,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,0BAA0B,CAAC,CACpD,CAAC;QACF,IAAA,uCAAwB,EAAC,IAAI,EAAE;YAC7B,IAAI,EAAE,iCAAkB,CAAC,OAAO;YAChC,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE,IAAI,YAAY,EAAE;YAC3B,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC;AAvBD,+CAuBC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const add_crossvent_fix_1 = require("../../rules/add-crossvent-fix");
|
|
4
|
-
const workspace_1 = require("../../utility/workspace");
|
|
5
|
-
function crossventFix() {
|
|
6
|
-
return async (tree) => {
|
|
7
|
-
const { workspace } = await (0, workspace_1.getWorkspace)(tree);
|
|
8
|
-
return (0, add_crossvent_fix_1.addCrossventFix)(workspace);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
exports.default = crossventFix;
|
|
12
|
-
//# sourceMappingURL=crossvent.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crossvent.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/crossvent.schematic.ts"],"names":[],"mappings":";;AAEA,qEAAgE;AAChE,uDAAuD;AAEvD,SAAwB,YAAY;IAClC,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAE/C,OAAO,IAAA,mCAAe,EAAC,SAAS,CAAC,CAAC;IACpC,CAAC,CAAC;AACJ,CAAC;AAND,+BAMC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const json_file_1 = require("../../utility/json-file");
|
|
4
|
-
const tree_1 = require("../../utility/tree");
|
|
5
|
-
function disableStrictModeRules() {
|
|
6
|
-
return async (tree, context) => {
|
|
7
|
-
const tsConfig = new json_file_1.JsonFile(tree, 'tsconfig.json');
|
|
8
|
-
if (tsConfig.get(['compilerOptions', 'strict']) === true &&
|
|
9
|
-
tsConfig.get(['compilerOptions', 'strictNullChecks']) !== false) {
|
|
10
|
-
const contents = (0, tree_1.readRequiredFile)(tree, 'tsconfig.json').replace(/"compilerOptions": +{/, `"compilerOptions": {
|
|
11
|
-
// TypeScript 4.4 introduces breaking changes for the rule "strictNullChecks".
|
|
12
|
-
// See: https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#any-and-unknown-are-considered-possibly-falsy-in--expressions
|
|
13
|
-
// TODO: Remove "strictNullChecks" and address any build errors.
|
|
14
|
-
"strictNullChecks": false,`);
|
|
15
|
-
tree.overwrite('tsconfig.json', contents);
|
|
16
|
-
context.logger.warn('\nStrict mode is enabled for your project. ' +
|
|
17
|
-
'The latest version of TypeScript introduces new implementations for strict mode which may result in build errors that you will need to resolve manually. ' +
|
|
18
|
-
"We've disabled the affected rules in your tsconfig.json file, but you can enable them later if you wish. " +
|
|
19
|
-
'\nFor more information, see: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html.\n');
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.default = disableStrictModeRules;
|
|
24
|
-
//# sourceMappingURL=disable-strict-mode-rules.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disable-strict-mode-rules.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/disable-strict-mode-rules.schematic.ts"],"names":[],"mappings":";;AAEA,uDAAmD;AACnD,6CAAsD;AAEtD,SAAwB,sBAAsB;IAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,QAAQ,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAErD,IACE,QAAQ,CAAC,GAAG,CAAC,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,KAAK,IAAI;YACpD,QAAQ,CAAC,GAAG,CAAC,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,KAAK,KAAK,EAC/D;YACA,MAAM,QAAQ,GAAG,IAAA,uBAAgB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,OAAO,CAC9D,uBAAuB,EACvB;;;;+BAIuB,CACxB,CAAC;YAEF,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;YAE1C,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,6CAA6C;gBAC3C,2JAA2J;gBAC3J,2GAA2G;gBAC3G,gHAAgH,CACnH,CAAC;SACH;IACH,CAAC,CAAC;AACJ,CAAC;AA3BD,yCA2BC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const apply_skyux_stylesheets_to_workspace_1 = require("../../rules/apply-skyux-stylesheets-to-workspace");
|
|
4
|
-
function ensureSkyuxThemeStylesheets() {
|
|
5
|
-
return (0, apply_skyux_stylesheets_to_workspace_1.applySkyuxStylesheetsToWorkspace)();
|
|
6
|
-
}
|
|
7
|
-
exports.default = ensureSkyuxThemeStylesheets;
|
|
8
|
-
//# sourceMappingURL=ensure-theme-stylesheets.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-theme-stylesheets.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/ensure-theme-stylesheets.schematic.ts"],"names":[],"mappings":";;AAEA,2GAAoG;AAEpG,SAAwB,2BAA2B;IACjD,OAAO,IAAA,uEAAgC,GAAE,CAAC;AAC5C,CAAC;AAFD,8CAEC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const replace_typescript_imports_1 = require("../../rules/replace-typescript-imports");
|
|
4
|
-
/**
|
|
5
|
-
* Remove deep imports to '@skyux' packages.
|
|
6
|
-
*/
|
|
7
|
-
function fixDeepImports() {
|
|
8
|
-
return (0, replace_typescript_imports_1.replaceTypeScriptImports)((importStatement, importPath) => {
|
|
9
|
-
const fragments = importPath.split('/');
|
|
10
|
-
if (fragments.length > 2 &&
|
|
11
|
-
fragments[0] === '@skyux' &&
|
|
12
|
-
fragments[2] !== 'testing') {
|
|
13
|
-
return importStatement.replace(importPath, `${fragments[0]}/${fragments[1]}`);
|
|
14
|
-
}
|
|
15
|
-
return importStatement;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.default = fixDeepImports;
|
|
19
|
-
//# sourceMappingURL=fix-deep-imports.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-deep-imports.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/fix-deep-imports.schematic.ts"],"names":[],"mappings":";;AAEA,uFAAkF;AAElF;;GAEG;AACH,SAAwB,cAAc;IACpC,OAAO,IAAA,qDAAwB,EAAC,CAAC,eAAe,EAAE,UAAU,EAAE,EAAE;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,IACE,SAAS,CAAC,MAAM,GAAG,CAAC;YACpB,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ;YACzB,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,EAC1B;YACA,OAAO,eAAe,CAAC,OAAO,CAC5B,UAAU,EACV,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAClC,CAAC;SACH;QACD,OAAO,eAAe,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AAfD,iCAeC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const replace_typescript_imports_1 = require("../../rules/replace-typescript-imports");
|
|
4
|
-
function fixImportsWithTrailingSlash() {
|
|
5
|
-
return (0, replace_typescript_imports_1.replaceTypeScriptImports)((importStatement, importPath) => {
|
|
6
|
-
if (importPath.endsWith('/')) {
|
|
7
|
-
return importStatement.replace(importPath, importPath.slice(0, -1));
|
|
8
|
-
}
|
|
9
|
-
return importStatement;
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
exports.default = fixImportsWithTrailingSlash;
|
|
13
|
-
//# sourceMappingURL=fix-imports-with-trailing-slash.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-imports-with-trailing-slash.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/fix-imports-with-trailing-slash.schematic.ts"],"names":[],"mappings":";;AAEA,uFAAkF;AAElF,SAAwB,2BAA2B;IACjD,OAAO,IAAA,qDAAwB,EAAC,CAAC,eAAe,EAAE,UAAU,EAAE,EAAE;QAC9D,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC5B,OAAO,eAAe,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SACrE;QACD,OAAO,eAAe,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,8CAOC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
/**
|
|
3
|
-
* Convert any occurance of `ngUnsubscribe` from `Subject<any>` to `Subject<void>`.
|
|
4
|
-
* @see https://github.com/ReactiveX/rxjs/issues/6324#issuecomment-831645897
|
|
5
|
-
*/
|
|
6
|
-
export default function fixNgUnsubscribeGenerics(): Rule;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@angular-devkit/core");
|
|
4
|
-
const tree_1 = require("../../utility/tree");
|
|
5
|
-
/**
|
|
6
|
-
* Convert any occurance of `ngUnsubscribe` from `Subject<any>` to `Subject<void>`.
|
|
7
|
-
* @see https://github.com/ReactiveX/rxjs/issues/6324#issuecomment-831645897
|
|
8
|
-
*/
|
|
9
|
-
function fixNgUnsubscribeGenerics() {
|
|
10
|
-
return (tree) => {
|
|
11
|
-
const visitor = (filePath) => {
|
|
12
|
-
const extension = (0, core_1.extname)(filePath);
|
|
13
|
-
if (extension === '.ts') {
|
|
14
|
-
const content = (0, tree_1.readRequiredFile)(tree, filePath);
|
|
15
|
-
const migratedContent = content.replace(/(?:ngUnsubscribe).*(Subject<any>)/g, (match, group) => {
|
|
16
|
-
return match.replace(group, group.replace('<any>', '<void>'));
|
|
17
|
-
});
|
|
18
|
-
if (migratedContent !== content) {
|
|
19
|
-
tree.overwrite(filePath, migratedContent);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
tree.getDir('projects').visit(visitor);
|
|
24
|
-
tree.getDir('src').visit(visitor);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.default = fixNgUnsubscribeGenerics;
|
|
28
|
-
//# sourceMappingURL=fix-ng-unsubscribe.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-ng-unsubscribe.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/fix-ng-unsubscribe.schematic.ts"],"names":[],"mappings":";;AAAA,+CAA+C;AAG/C,6CAAsD;AAEtD;;;GAGG;AACH,SAAwB,wBAAwB;IAC9C,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,MAAM,OAAO,GAAgB,CAAC,QAAQ,EAAE,EAAE;YACxC,MAAM,SAAS,GAAG,IAAA,cAAO,EAAC,QAAQ,CAAC,CAAC;YACpC,IAAI,SAAS,KAAK,KAAK,EAAE;gBACvB,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAEjD,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CACrC,oCAAoC,EACpC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBACf,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;gBAChE,CAAC,CACF,CAAC;gBAEF,IAAI,eAAe,KAAK,OAAO,EAAE;oBAC/B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;iBAC3C;aACF;QACH,CAAC,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC,CAAC;AACJ,CAAC;AAvBD,2CAuBC"}
|
package/src/schematics/migrations/update-6/fix-rxjs-internal-compatibility-imports.schematic.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const replace_typescript_imports_1 = require("../../rules/replace-typescript-imports");
|
|
4
|
-
/**
|
|
5
|
-
* Replace imports from 'rxjs/internal-compatibility' with 'rxjs' since
|
|
6
|
-
* this entry point was removed in RxJS v7.
|
|
7
|
-
*/
|
|
8
|
-
function fixRxJsInternalCompatibilityImports() {
|
|
9
|
-
return (0, replace_typescript_imports_1.replaceTypeScriptImports)((importStatement, importPath, fileContents) => {
|
|
10
|
-
if (importPath === 'rxjs/internal-compatibility') {
|
|
11
|
-
// Make sure 'from' isn't already imported.
|
|
12
|
-
importStatement =
|
|
13
|
-
/import +{[\s\w,]*from[\s\w,]*} +from\s+['"]rxjs['"]/.test(fileContents)
|
|
14
|
-
? ''
|
|
15
|
-
: "import { from } from 'rxjs';";
|
|
16
|
-
}
|
|
17
|
-
return importStatement;
|
|
18
|
-
},
|
|
19
|
-
// Replace all occurances of 'fromPromise' with 'from'.
|
|
20
|
-
(fileContents) => fileContents.replace(/fromPromise\(/g, 'from('));
|
|
21
|
-
}
|
|
22
|
-
exports.default = fixRxJsInternalCompatibilityImports;
|
|
23
|
-
//# sourceMappingURL=fix-rxjs-internal-compatibility-imports.schematic.js.map
|
package/src/schematics/migrations/update-6/fix-rxjs-internal-compatibility-imports.schematic.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-rxjs-internal-compatibility-imports.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/fix-rxjs-internal-compatibility-imports.schematic.ts"],"names":[],"mappings":";;AAEA,uFAAkF;AAElF;;;GAGG;AACH,SAAwB,mCAAmC;IACzD,OAAO,IAAA,qDAAwB,EAC7B,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE;QAC5C,IAAI,UAAU,KAAK,6BAA6B,EAAE;YAChD,2CAA2C;YAC3C,eAAe;gBACb,qDAAqD,CAAC,IAAI,CACxD,YAAY,CACb;oBACC,CAAC,CAAC,EAAE;oBACJ,CAAC,CAAC,8BAA8B,CAAC;SACtC;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;IACD,uDAAuD;IACvD,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAClE,CAAC;AACJ,CAAC;AAlBD,sDAkBC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
/**
|
|
3
|
-
* Replaces the tilde character in SCSS import statements with 'node_modules', since
|
|
4
|
-
* support for the tilde was dropped in Angular 13.
|
|
5
|
-
* @see: https://github.com/angular/components/commit/f2ff9e31425f0e395e6926bcaf48f876688000d8
|
|
6
|
-
*/
|
|
7
|
-
export default function fixScssTildeImports(): Rule;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@angular-devkit/core");
|
|
4
|
-
const tree_1 = require("../../utility/tree");
|
|
5
|
-
/**
|
|
6
|
-
* Replaces the tilde character in SCSS import statements with 'node_modules', since
|
|
7
|
-
* support for the tilde was dropped in Angular 13.
|
|
8
|
-
* @see: https://github.com/angular/components/commit/f2ff9e31425f0e395e6926bcaf48f876688000d8
|
|
9
|
-
*/
|
|
10
|
-
function fixScssTildeImports() {
|
|
11
|
-
return async (tree) => {
|
|
12
|
-
const visitor = (filePath) => {
|
|
13
|
-
const extension = (0, core_1.extname)(filePath);
|
|
14
|
-
if (extension === '.scss' || extension === '.css') {
|
|
15
|
-
const content = (0, tree_1.readRequiredFile)(tree, filePath);
|
|
16
|
-
const migratedContent = content.replace(/@(?:import|use) +['"](~.*)['"].*;?/g, (match, importPath) => {
|
|
17
|
-
return match.replace(importPath, importPath
|
|
18
|
-
// Replace leading tilde.
|
|
19
|
-
.replace(/^~/, 'node_modules/')
|
|
20
|
-
// Remove path extensions.
|
|
21
|
-
.replace(/\.(s?css)$/, ''));
|
|
22
|
-
});
|
|
23
|
-
if (content !== migratedContent) {
|
|
24
|
-
tree.overwrite(filePath, migratedContent);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
tree.getDir('projects').visit(visitor);
|
|
29
|
-
tree.getDir('src').visit(visitor);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
exports.default = fixScssTildeImports;
|
|
33
|
-
//# sourceMappingURL=fix-scss-tilde-imports.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-scss-tilde-imports.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/fix-scss-tilde-imports.schematic.ts"],"names":[],"mappings":";;AAAA,+CAA+C;AAG/C,6CAAsD;AAEtD;;;;GAIG;AACH,SAAwB,mBAAmB;IACzC,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,OAAO,GAAgB,CAAC,QAAQ,EAAE,EAAE;YACxC,MAAM,SAAS,GAAG,IAAA,cAAO,EAAC,QAAQ,CAAC,CAAC;YACpC,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,MAAM,EAAE;gBACjD,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAEjD,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CACrC,qCAAqC,EACrC,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE;oBACpB,OAAO,KAAK,CAAC,OAAO,CAClB,UAAU,EACV,UAAU;wBACR,yBAAyB;yBACxB,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC;wBAC/B,0BAA0B;yBACzB,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAC7B,CAAC;gBACJ,CAAC,CACF,CAAC;gBAEF,IAAI,OAAO,KAAK,eAAe,EAAE;oBAC/B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;iBAC3C;aACF;QACH,CAAC,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC,CAAC;AACJ,CAAC;AA9BD,sCA8BC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const regex_1 = require("../../utility/regex");
|
|
4
|
-
function addNewItemsToPrettierIgnore() {
|
|
5
|
-
return (tree) => {
|
|
6
|
-
var _a;
|
|
7
|
-
const ignorePaths = [
|
|
8
|
-
'/src/assets/',
|
|
9
|
-
'/projects/*/src/assets/',
|
|
10
|
-
'/src/app/lib/',
|
|
11
|
-
];
|
|
12
|
-
const prettierIgnorePath = '/.prettierignore';
|
|
13
|
-
const prettierIgnore = (_a = tree.read(prettierIgnorePath)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
14
|
-
if (prettierIgnore) {
|
|
15
|
-
let replacementString = prettierIgnore;
|
|
16
|
-
for (const ignorePath of ignorePaths) {
|
|
17
|
-
if (prettierIgnore &&
|
|
18
|
-
!new RegExp(`^` + (0, regex_1.regexEscape)(ignorePath) + `$`, 'm').exec(replacementString)) {
|
|
19
|
-
replacementString = `${ignorePath}\n` + replacementString;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (replacementString !== prettierIgnore) {
|
|
23
|
-
tree.overwrite(prettierIgnorePath, replacementString);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.default = addNewItemsToPrettierIgnore;
|
|
29
|
-
//# sourceMappingURL=prettier-ignore-updates.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier-ignore-updates.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/prettier-ignore-updates.schematic.ts"],"names":[],"mappings":";;AAEA,+CAAkD;AAElD,SAAwB,2BAA2B;IACjD,OAAO,CAAC,IAAI,EAAE,EAAE;;QACd,MAAM,WAAW,GAAG;YAClB,cAAc;YACd,yBAAyB;YACzB,eAAe;SAChB,CAAC;QACF,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;QAC9C,MAAM,cAAc,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,0CAAE,QAAQ,EAAE,CAAC;QAEjE,IAAI,cAAc,EAAE;YAClB,IAAI,iBAAiB,GAAG,cAAc,CAAC;YAEvC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE;gBACpC,IACE,cAAc;oBACd,CAAC,IAAI,MAAM,CAAC,GAAG,GAAG,IAAA,mBAAW,EAAC,UAAU,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,CACxD,iBAAiB,CAClB,EACD;oBACA,iBAAiB,GAAG,GAAG,UAAU,IAAI,GAAG,iBAAiB,CAAC;iBAC3D;aACF;YAED,IAAI,iBAAiB,KAAK,cAAc,EAAE;gBACxC,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;aACvD;SACF;IACH,CAAC,CAAC;AACJ,CAAC;AA7BD,8CA6BC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function addAngularCacheToPrettierIgnore() {
|
|
4
|
-
return (tree) => {
|
|
5
|
-
const cachePath = '/.angular/cache';
|
|
6
|
-
const prettierIgnorePath = '/.prettierignore';
|
|
7
|
-
const prettierIgnore = tree.read(prettierIgnorePath);
|
|
8
|
-
if (prettierIgnore && !prettierIgnore.includes(cachePath)) {
|
|
9
|
-
tree.overwrite(prettierIgnorePath, `${cachePath}\n` + prettierIgnore);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
exports.default = addAngularCacheToPrettierIgnore;
|
|
14
|
-
//# sourceMappingURL=prettier-ignore.schematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier-ignore.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-6/prettier-ignore.schematic.ts"],"names":[],"mappings":";;AAEA,SAAwB,+BAA+B;IACrD,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,MAAM,SAAS,GAAG,iBAAiB,CAAC;QACpC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;QAC9C,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAErD,IAAI,cAAc,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YACzD,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,GAAG,SAAS,IAAI,GAAG,cAAc,CAAC,CAAC;SACvE;IACH,CAAC,CAAC;AACJ,CAAC;AAVD,kDAUC"}
|