@skyux/packages 11.10.0 → 11.11.1
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 +50 -50
- package/src/schematics/ag-grid-migrate/ag-grid-migrate.schematic.js +2 -2
- package/src/schematics/migrations/migration-collection.json +7 -2
- package/src/schematics/migrations/update-11/ag-grid/ag-grid.schematic.js +1 -1
- 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.
|
|
3
|
+
"version": "11.11.1",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,57 +35,57 @@
|
|
|
35
35
|
"ng-update": {
|
|
36
36
|
"migrations": "./src/schematics/migrations/migration-collection.json",
|
|
37
37
|
"packageGroup": {
|
|
38
|
-
"@skyux/packages": "11.
|
|
38
|
+
"@skyux/packages": "11.11.1",
|
|
39
39
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
40
|
-
"@skyux-sdk/eslint-config": "11.
|
|
41
|
-
"@skyux-sdk/prettier-schematics": "11.
|
|
42
|
-
"@skyux-sdk/testing": "11.
|
|
43
|
-
"@skyux/a11y": "11.
|
|
44
|
-
"@skyux/action-bars": "11.
|
|
45
|
-
"@skyux/ag-grid": "11.
|
|
46
|
-
"@skyux/angular-tree-component": "11.
|
|
47
|
-
"@skyux/animations": "11.
|
|
48
|
-
"@skyux/assets": "11.
|
|
49
|
-
"@skyux/autonumeric": "11.
|
|
50
|
-
"@skyux/avatar": "11.
|
|
51
|
-
"@skyux/colorpicker": "11.
|
|
52
|
-
"@skyux/config": "11.
|
|
53
|
-
"@skyux/core": "11.
|
|
54
|
-
"@skyux/data-manager": "11.
|
|
55
|
-
"@skyux/datetime": "11.
|
|
56
|
-
"@skyux/errors": "11.
|
|
57
|
-
"@skyux/flyout": "11.
|
|
58
|
-
"@skyux/forms": "11.
|
|
59
|
-
"@skyux/grids": "11.
|
|
60
|
-
"@skyux/help-inline": "11.
|
|
61
|
-
"@skyux/i18n": "11.
|
|
40
|
+
"@skyux-sdk/eslint-config": "11.11.1",
|
|
41
|
+
"@skyux-sdk/prettier-schematics": "11.11.1",
|
|
42
|
+
"@skyux-sdk/testing": "11.11.1",
|
|
43
|
+
"@skyux/a11y": "11.11.1",
|
|
44
|
+
"@skyux/action-bars": "11.11.1",
|
|
45
|
+
"@skyux/ag-grid": "11.11.1",
|
|
46
|
+
"@skyux/angular-tree-component": "11.11.1",
|
|
47
|
+
"@skyux/animations": "11.11.1",
|
|
48
|
+
"@skyux/assets": "11.11.1",
|
|
49
|
+
"@skyux/autonumeric": "11.11.1",
|
|
50
|
+
"@skyux/avatar": "11.11.1",
|
|
51
|
+
"@skyux/colorpicker": "11.11.1",
|
|
52
|
+
"@skyux/config": "11.11.1",
|
|
53
|
+
"@skyux/core": "11.11.1",
|
|
54
|
+
"@skyux/data-manager": "11.11.1",
|
|
55
|
+
"@skyux/datetime": "11.11.1",
|
|
56
|
+
"@skyux/errors": "11.11.1",
|
|
57
|
+
"@skyux/flyout": "11.11.1",
|
|
58
|
+
"@skyux/forms": "11.11.1",
|
|
59
|
+
"@skyux/grids": "11.11.1",
|
|
60
|
+
"@skyux/help-inline": "11.11.1",
|
|
61
|
+
"@skyux/i18n": "11.11.1",
|
|
62
62
|
"@skyux/icons": "^7.8.0",
|
|
63
|
-
"@skyux/indicators": "11.
|
|
64
|
-
"@skyux/inline-form": "11.
|
|
65
|
-
"@skyux/layout": "11.
|
|
66
|
-
"@skyux/list-builder": "11.
|
|
67
|
-
"@skyux/list-builder-common": "11.
|
|
68
|
-
"@skyux/list-builder-view-checklist": "11.
|
|
69
|
-
"@skyux/list-builder-view-grids": "11.
|
|
70
|
-
"@skyux/lists": "11.
|
|
71
|
-
"@skyux/lookup": "11.
|
|
72
|
-
"@skyux/modals": "11.
|
|
73
|
-
"@skyux/navbar": "11.
|
|
74
|
-
"@skyux/pages": "11.
|
|
75
|
-
"@skyux/phone-field": "11.
|
|
76
|
-
"@skyux/popovers": "11.
|
|
77
|
-
"@skyux/progress-indicator": "11.
|
|
78
|
-
"@skyux/router": "11.
|
|
79
|
-
"@skyux/select-field": "11.
|
|
80
|
-
"@skyux/split-view": "11.
|
|
81
|
-
"@skyux/tabs": "11.
|
|
82
|
-
"@skyux/text-editor": "11.
|
|
83
|
-
"@skyux/theme": "11.
|
|
84
|
-
"@skyux/tiles": "11.
|
|
85
|
-
"@skyux/toast": "11.
|
|
86
|
-
"@skyux/validation": "11.
|
|
87
|
-
"ag-grid-angular": "^32.2.
|
|
88
|
-
"ag-grid-community": "^32.2.
|
|
63
|
+
"@skyux/indicators": "11.11.1",
|
|
64
|
+
"@skyux/inline-form": "11.11.1",
|
|
65
|
+
"@skyux/layout": "11.11.1",
|
|
66
|
+
"@skyux/list-builder": "11.11.1",
|
|
67
|
+
"@skyux/list-builder-common": "11.11.1",
|
|
68
|
+
"@skyux/list-builder-view-checklist": "11.11.1",
|
|
69
|
+
"@skyux/list-builder-view-grids": "11.11.1",
|
|
70
|
+
"@skyux/lists": "11.11.1",
|
|
71
|
+
"@skyux/lookup": "11.11.1",
|
|
72
|
+
"@skyux/modals": "11.11.1",
|
|
73
|
+
"@skyux/navbar": "11.11.1",
|
|
74
|
+
"@skyux/pages": "11.11.1",
|
|
75
|
+
"@skyux/phone-field": "11.11.1",
|
|
76
|
+
"@skyux/popovers": "11.11.1",
|
|
77
|
+
"@skyux/progress-indicator": "11.11.1",
|
|
78
|
+
"@skyux/router": "11.11.1",
|
|
79
|
+
"@skyux/select-field": "11.11.1",
|
|
80
|
+
"@skyux/split-view": "11.11.1",
|
|
81
|
+
"@skyux/tabs": "11.11.1",
|
|
82
|
+
"@skyux/text-editor": "11.11.1",
|
|
83
|
+
"@skyux/theme": "11.11.1",
|
|
84
|
+
"@skyux/tiles": "11.11.1",
|
|
85
|
+
"@skyux/toast": "11.11.1",
|
|
86
|
+
"@skyux/validation": "11.11.1",
|
|
87
|
+
"ag-grid-angular": "^32.2.2",
|
|
88
|
+
"ag-grid-community": "^32.2.2",
|
|
89
89
|
"ag-grid-enterprise": "^32.1.0",
|
|
90
90
|
"autonumeric": "^4.10.5"
|
|
91
91
|
}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = default_1;
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
5
|
const os_1 = require("os");
|
|
6
|
-
const AG_GRID_MIGRATION = '32.
|
|
7
|
-
const AG_GRID_VERSION = '32.2.
|
|
6
|
+
const AG_GRID_MIGRATION = '32.2.1';
|
|
7
|
+
const AG_GRID_VERSION = '32.2.2';
|
|
8
8
|
function getStartingVersion(sourceRoot) {
|
|
9
9
|
try {
|
|
10
10
|
const content = (0, child_process_1.spawnSync)('git',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.11.1",
|
|
5
5
|
"factory": "./noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
8
|
"workspace-check": {
|
|
9
|
-
"version": "11.
|
|
9
|
+
"version": "11.11.1",
|
|
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
|
}
|
|
@@ -17,7 +17,7 @@ const AG_GRID = 'ag-grid-community';
|
|
|
17
17
|
const AG_GRID_ENT = 'ag-grid-enterprise';
|
|
18
18
|
const AG_GRID_NG = 'ag-grid-angular';
|
|
19
19
|
const AG_GRID_SKY = '@skyux/ag-grid';
|
|
20
|
-
const AG_GRID_VERSION = '^32.2.
|
|
20
|
+
const AG_GRID_VERSION = '^32.2.2';
|
|
21
21
|
/**
|
|
22
22
|
* Check package.json for AG Grid dependencies.
|
|
23
23
|
*/
|
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