@skyux/packages 11.11.0 → 11.11.2
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/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/schematics/migrations/migration-collection.json +7 -2
- package/src/schematics/migrations/update-11/vscode-eslint-setting/vscode-eslint-setting.schematic.d.ts +2 -0
- package/src/schematics/migrations/update-11/vscode-eslint-setting/vscode-eslint-setting.schematic.js +43 -0
- package/src/schematics/migrations/update-11/vscode-eslint-setting/vscode-eslint-setting.schematic.js.map +1 -0
- package/src/schematics/utility/tree.d.ts +2 -0
- package/src/schematics/utility/tree.js +13 -0
- package/src/schematics/utility/tree.js.map +1 -1
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "11.11.
|
|
3
|
+
"version": "11.11.2",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,55 +35,55 @@
|
|
|
35
35
|
"ng-update": {
|
|
36
36
|
"migrations": "./src/schematics/migrations/migration-collection.json",
|
|
37
37
|
"packageGroup": {
|
|
38
|
-
"@skyux/packages": "11.11.
|
|
38
|
+
"@skyux/packages": "11.11.2",
|
|
39
39
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
40
|
-
"@skyux-sdk/eslint-config": "11.11.
|
|
41
|
-
"@skyux-sdk/prettier-schematics": "11.11.
|
|
42
|
-
"@skyux-sdk/testing": "11.11.
|
|
43
|
-
"@skyux/a11y": "11.11.
|
|
44
|
-
"@skyux/action-bars": "11.11.
|
|
45
|
-
"@skyux/ag-grid": "11.11.
|
|
46
|
-
"@skyux/angular-tree-component": "11.11.
|
|
47
|
-
"@skyux/animations": "11.11.
|
|
48
|
-
"@skyux/assets": "11.11.
|
|
49
|
-
"@skyux/autonumeric": "11.11.
|
|
50
|
-
"@skyux/avatar": "11.11.
|
|
51
|
-
"@skyux/colorpicker": "11.11.
|
|
52
|
-
"@skyux/config": "11.11.
|
|
53
|
-
"@skyux/core": "11.11.
|
|
54
|
-
"@skyux/data-manager": "11.11.
|
|
55
|
-
"@skyux/datetime": "11.11.
|
|
56
|
-
"@skyux/errors": "11.11.
|
|
57
|
-
"@skyux/flyout": "11.11.
|
|
58
|
-
"@skyux/forms": "11.11.
|
|
59
|
-
"@skyux/grids": "11.11.
|
|
60
|
-
"@skyux/help-inline": "11.11.
|
|
61
|
-
"@skyux/i18n": "11.11.
|
|
40
|
+
"@skyux-sdk/eslint-config": "11.11.2",
|
|
41
|
+
"@skyux-sdk/prettier-schematics": "11.11.2",
|
|
42
|
+
"@skyux-sdk/testing": "11.11.2",
|
|
43
|
+
"@skyux/a11y": "11.11.2",
|
|
44
|
+
"@skyux/action-bars": "11.11.2",
|
|
45
|
+
"@skyux/ag-grid": "11.11.2",
|
|
46
|
+
"@skyux/angular-tree-component": "11.11.2",
|
|
47
|
+
"@skyux/animations": "11.11.2",
|
|
48
|
+
"@skyux/assets": "11.11.2",
|
|
49
|
+
"@skyux/autonumeric": "11.11.2",
|
|
50
|
+
"@skyux/avatar": "11.11.2",
|
|
51
|
+
"@skyux/colorpicker": "11.11.2",
|
|
52
|
+
"@skyux/config": "11.11.2",
|
|
53
|
+
"@skyux/core": "11.11.2",
|
|
54
|
+
"@skyux/data-manager": "11.11.2",
|
|
55
|
+
"@skyux/datetime": "11.11.2",
|
|
56
|
+
"@skyux/errors": "11.11.2",
|
|
57
|
+
"@skyux/flyout": "11.11.2",
|
|
58
|
+
"@skyux/forms": "11.11.2",
|
|
59
|
+
"@skyux/grids": "11.11.2",
|
|
60
|
+
"@skyux/help-inline": "11.11.2",
|
|
61
|
+
"@skyux/i18n": "11.11.2",
|
|
62
62
|
"@skyux/icons": "^7.8.0",
|
|
63
|
-
"@skyux/indicators": "11.11.
|
|
64
|
-
"@skyux/inline-form": "11.11.
|
|
65
|
-
"@skyux/layout": "11.11.
|
|
66
|
-
"@skyux/list-builder": "11.11.
|
|
67
|
-
"@skyux/list-builder-common": "11.11.
|
|
68
|
-
"@skyux/list-builder-view-checklist": "11.11.
|
|
69
|
-
"@skyux/list-builder-view-grids": "11.11.
|
|
70
|
-
"@skyux/lists": "11.11.
|
|
71
|
-
"@skyux/lookup": "11.11.
|
|
72
|
-
"@skyux/modals": "11.11.
|
|
73
|
-
"@skyux/navbar": "11.11.
|
|
74
|
-
"@skyux/pages": "11.11.
|
|
75
|
-
"@skyux/phone-field": "11.11.
|
|
76
|
-
"@skyux/popovers": "11.11.
|
|
77
|
-
"@skyux/progress-indicator": "11.11.
|
|
78
|
-
"@skyux/router": "11.11.
|
|
79
|
-
"@skyux/select-field": "11.11.
|
|
80
|
-
"@skyux/split-view": "11.11.
|
|
81
|
-
"@skyux/tabs": "11.11.
|
|
82
|
-
"@skyux/text-editor": "11.11.
|
|
83
|
-
"@skyux/theme": "11.11.
|
|
84
|
-
"@skyux/tiles": "11.11.
|
|
85
|
-
"@skyux/toast": "11.11.
|
|
86
|
-
"@skyux/validation": "11.11.
|
|
63
|
+
"@skyux/indicators": "11.11.2",
|
|
64
|
+
"@skyux/inline-form": "11.11.2",
|
|
65
|
+
"@skyux/layout": "11.11.2",
|
|
66
|
+
"@skyux/list-builder": "11.11.2",
|
|
67
|
+
"@skyux/list-builder-common": "11.11.2",
|
|
68
|
+
"@skyux/list-builder-view-checklist": "11.11.2",
|
|
69
|
+
"@skyux/list-builder-view-grids": "11.11.2",
|
|
70
|
+
"@skyux/lists": "11.11.2",
|
|
71
|
+
"@skyux/lookup": "11.11.2",
|
|
72
|
+
"@skyux/modals": "11.11.2",
|
|
73
|
+
"@skyux/navbar": "11.11.2",
|
|
74
|
+
"@skyux/pages": "11.11.2",
|
|
75
|
+
"@skyux/phone-field": "11.11.2",
|
|
76
|
+
"@skyux/popovers": "11.11.2",
|
|
77
|
+
"@skyux/progress-indicator": "11.11.2",
|
|
78
|
+
"@skyux/router": "11.11.2",
|
|
79
|
+
"@skyux/select-field": "11.11.2",
|
|
80
|
+
"@skyux/split-view": "11.11.2",
|
|
81
|
+
"@skyux/tabs": "11.11.2",
|
|
82
|
+
"@skyux/text-editor": "11.11.2",
|
|
83
|
+
"@skyux/theme": "11.11.2",
|
|
84
|
+
"@skyux/tiles": "11.11.2",
|
|
85
|
+
"@skyux/toast": "11.11.2",
|
|
86
|
+
"@skyux/validation": "11.11.2",
|
|
87
87
|
"ag-grid-angular": "^32.2.2",
|
|
88
88
|
"ag-grid-community": "^32.2.2",
|
|
89
89
|
"ag-grid-enterprise": "^32.1.0",
|
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
5
6
|
tslib_1.__exportStar(require("./schematics/ng-add/ng-add.schematic"), exports);
|
|
6
7
|
var version_1 = require("./version");
|
|
7
8
|
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/packages/src/index.ts"],"names":[],"mappings":";;;;AAAA,+EAAqD;AACrD,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/packages/src/index.ts"],"names":[],"mappings":";;;;AAAA,gDAAgD;AAChD,+EAAqD;AACrD,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "11.11.
|
|
4
|
+
"version": "11.11.2",
|
|
5
5
|
"factory": "./noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
8
|
"workspace-check": {
|
|
9
|
-
"version": "11.11.
|
|
9
|
+
"version": "11.11.2",
|
|
10
10
|
"factory": "./update-11/workspace-check/workspace-check.schematic",
|
|
11
11
|
"description": "Log warnings if the workspace is not configured correctly."
|
|
12
12
|
},
|
|
@@ -59,6 +59,11 @@
|
|
|
59
59
|
"version": "11.2.0",
|
|
60
60
|
"factory": "./update-11/remove-deprecation-eslint-plugin/remove-deprecation-eslint-plugin.schematic",
|
|
61
61
|
"description": "Remove ESLint deprecation plugin which is not compatible with ESLint 9."
|
|
62
|
+
},
|
|
63
|
+
"vscode-eslint-setting": {
|
|
64
|
+
"version": "11.11.1",
|
|
65
|
+
"factory": "./update-11/vscode-eslint-setting/vscode-eslint-setting.schematic",
|
|
66
|
+
"description": "Update the VSCode workspace's settings so that the ESLint plugin works with ESLint 9 and a legacy config"
|
|
62
67
|
}
|
|
63
68
|
}
|
|
64
69
|
}
|
package/src/schematics/migrations/update-11/vscode-eslint-setting/vscode-eslint-setting.schematic.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const tree_1 = require("../../../utility/tree");
|
|
5
|
+
const packageJsonPath = '/package.json';
|
|
6
|
+
const vscodeSettingsPath = '.vscode/settings.json';
|
|
7
|
+
function getVSCodeSettings(tree) {
|
|
8
|
+
if (tree.exists(vscodeSettingsPath)) {
|
|
9
|
+
return JSON.parse((0, tree_1.readRequiredFile)(tree, vscodeSettingsPath));
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return {};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function legacyEslintConfigExists(tree) {
|
|
16
|
+
const possibleConfigFiles = [
|
|
17
|
+
'.eslintrc.js',
|
|
18
|
+
'.eslintrc.cjs',
|
|
19
|
+
'.eslintrc.yaml',
|
|
20
|
+
'.eslintrc.yml',
|
|
21
|
+
'.eslintrc.json',
|
|
22
|
+
];
|
|
23
|
+
let found = false;
|
|
24
|
+
possibleConfigFiles.forEach((possibleConfigFile) => {
|
|
25
|
+
if (tree.exists(possibleConfigFile)) {
|
|
26
|
+
found = true;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (!found && tree.exists(packageJsonPath)) {
|
|
30
|
+
found = !!JSON.parse((0, tree_1.readRequiredFile)(tree, packageJsonPath))['eslintConfig'];
|
|
31
|
+
}
|
|
32
|
+
return found;
|
|
33
|
+
}
|
|
34
|
+
function default_1() {
|
|
35
|
+
return (tree) => {
|
|
36
|
+
if (legacyEslintConfigExists(tree)) {
|
|
37
|
+
const currentSettings = getVSCodeSettings(tree);
|
|
38
|
+
currentSettings['eslint.useFlatConfig'] = false;
|
|
39
|
+
(0, tree_1.writeJsonFile)(tree, vscodeSettingsPath, currentSettings);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=vscode-eslint-setting.schematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vscode-eslint-setting.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-11/vscode-eslint-setting/vscode-eslint-setting.schematic.ts"],"names":[],"mappings":";;AA0CA,4BASC;AAjDD,gDAAwE;AAExE,MAAM,eAAe,GAAG,eAAe,CAAC;AACxC,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;AAEnD,SAAS,iBAAiB,CAAC,IAAU;IAGnC,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,uBAAgB,EAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAChE,CAAC;SAAM,CAAC;QACN,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAU;IAC1C,MAAM,mBAAmB,GAAG;QAC1B,cAAc;QACd,eAAe;QACf,gBAAgB;QAChB,eAAe;QACf,gBAAgB;KACjB,CAAC;IAEF,IAAI,KAAK,GAAG,KAAK,CAAC;IAClB,mBAAmB,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,EAAE;QACjD,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACpC,KAAK,GAAG,IAAI,CAAC;QACf,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC;QAC3C,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAA,uBAAgB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAC3D,cAAc,CACf,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;IACE,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,IAAI,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC;YACnC,MAAM,eAAe,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAEhD,eAAe,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC;YAChD,IAAA,oBAAa,EAAC,IAAI,EAAE,kBAAkB,EAAE,eAAe,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -3,3 +3,5 @@ import { Tree } from '@angular-devkit/schematics';
|
|
|
3
3
|
* Returns the contents of a required file or throws an error if it doesn't exist.
|
|
4
4
|
*/
|
|
5
5
|
export declare function readRequiredFile(tree: Tree, filePath: string): string;
|
|
6
|
+
export declare function writeTextFile(tree: Tree, path: string, contents: string): void;
|
|
7
|
+
export declare function writeJsonFile<T>(tree: Tree, path: string, contents: T): void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readRequiredFile = readRequiredFile;
|
|
4
|
+
exports.writeTextFile = writeTextFile;
|
|
5
|
+
exports.writeJsonFile = writeJsonFile;
|
|
4
6
|
const core_1 = require("@angular-devkit/core");
|
|
5
7
|
/**
|
|
6
8
|
* Returns the contents of a required file or throws an error if it doesn't exist.
|
|
@@ -12,4 +14,15 @@ function readRequiredFile(tree, filePath) {
|
|
|
12
14
|
}
|
|
13
15
|
return core_1.virtualFs.fileBufferToString(data);
|
|
14
16
|
}
|
|
17
|
+
function writeTextFile(tree, path, contents) {
|
|
18
|
+
if (tree.exists(path)) {
|
|
19
|
+
tree.overwrite(path, contents);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
tree.create(path, contents);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function writeJsonFile(tree, path, contents) {
|
|
26
|
+
writeTextFile(tree, path, JSON.stringify(contents, undefined, 2));
|
|
27
|
+
}
|
|
15
28
|
//# sourceMappingURL=tree.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../../../../../libs/components/packages/src/schematics/utility/tree.ts"],"names":[],"mappings":";;AAMA,4CASC;
|
|
1
|
+
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../../../../../libs/components/packages/src/schematics/utility/tree.ts"],"names":[],"mappings":";;AAMA,4CASC;AAED,sCAUC;AAED,sCAEC;AA/BD,+CAAiD;AAGjD;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAAU,EAAE,QAAgB;IAC3D,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CACb,aAAa,QAAQ,4CAA4C,CAClE,CAAC;IACJ,CAAC;IAED,OAAO,gBAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,aAAa,CAC3B,IAAU,EACV,IAAY,EACZ,QAAgB;IAEhB,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACjC,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAI,IAAU,EAAE,IAAY,EAAE,QAAW;IACpE,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC"}
|
package/src/version.js
CHANGED