igniteui-cli 15.2.1 → 15.2.2-alpha.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/lib/commands/upgrade.js +3 -22
- package/package.json +4 -4
package/lib/commands/upgrade.js
CHANGED
|
@@ -10,11 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const cli_core_1 = require("@igniteui/cli-core");
|
|
13
|
-
const FRAMEWORK_PROJECT_TYPE_MAP = {
|
|
14
|
-
angular: "igx-ts",
|
|
15
|
-
react: "igr-ts",
|
|
16
|
-
webcomponents: "igc-ts"
|
|
17
|
-
};
|
|
18
13
|
const command = {
|
|
19
14
|
command: "upgrade-packages",
|
|
20
15
|
aliases: ["upgrade"],
|
|
@@ -39,23 +34,9 @@ const command = {
|
|
|
39
34
|
},
|
|
40
35
|
upgrade(argv) {
|
|
41
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
var _a, _b, _c;
|
|
43
37
|
const config = cli_core_1.ProjectConfig.getConfig();
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (!framework) {
|
|
47
|
-
const detected = (0, cli_core_1.detectFrameworkFromPackageJson)();
|
|
48
|
-
if (!detected) {
|
|
49
|
-
cli_core_1.Util.warn("Unable to determine the project framework. " +
|
|
50
|
-
"Please ensure you are running this command in a project directory with a package.json file, " +
|
|
51
|
-
"or create an ignite-ui-cli.json configuration file.", "yellow");
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
framework = detected;
|
|
55
|
-
}
|
|
56
|
-
if (!projectType) {
|
|
57
|
-
projectType = FRAMEWORK_PROJECT_TYPE_MAP[framework.toLowerCase()] || "";
|
|
58
|
-
}
|
|
38
|
+
const framework = config.project.framework;
|
|
39
|
+
const projectType = config.project.projectType;
|
|
59
40
|
switch (framework.toLowerCase()) {
|
|
60
41
|
case "jquery":
|
|
61
42
|
cli_core_1.Util.log("Upgrading packages for jQuery projects is currently not supported!");
|
|
@@ -67,7 +48,7 @@ const command = {
|
|
|
67
48
|
const templateManager = cli_core_1.App.container.get(cli_core_1.TEMPLATE_MANAGER);
|
|
68
49
|
const projectLibrary = templateManager.getProjectLibrary(framework, projectType);
|
|
69
50
|
let project;
|
|
70
|
-
if (!
|
|
51
|
+
if (!config.project.projectTemplate || !projectLibrary.hasProject(config.project.projectTemplate)) {
|
|
71
52
|
// in case project template is missing from the config we provide backward.
|
|
72
53
|
project = projectLibrary.getProject(projectLibrary.projectIds[0]);
|
|
73
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "15.2.1",
|
|
3
|
+
"version": "15.2.2-alpha.1",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"all": true
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@igniteui/angular-templates": "^21.2.
|
|
70
|
-
"@igniteui/cli-core": "^15.2.1",
|
|
71
|
-
"@igniteui/mcp-server": "^15.2.1",
|
|
69
|
+
"@igniteui/angular-templates": "^21.2.1522-alpha.1",
|
|
70
|
+
"@igniteui/cli-core": "^15.2.2-alpha.1",
|
|
71
|
+
"@igniteui/mcp-server": "^15.2.2-alpha.1",
|
|
72
72
|
"@inquirer/prompts": "^7.9.0",
|
|
73
73
|
"chalk": "^5.3.0",
|
|
74
74
|
"glob": "^11.0.0",
|