@ixon-cdk/core 1.6.0 → 1.7.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/api/api.utils.js +1 -1
- package/package.json +9 -9
- package/template/template.service.js +4 -4
- package/utils.js +2 -3
package/api/api.utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixon-cdk/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"app-root-dir": "^1.0.2",
|
|
10
|
-
"archiver": "^
|
|
11
|
-
"axios": "^1.
|
|
10
|
+
"archiver": "^7.0.1",
|
|
11
|
+
"axios": "^1.6.8",
|
|
12
12
|
"chalk": "^4.1.2",
|
|
13
|
-
"chokidar": "^3.
|
|
13
|
+
"chokidar": "^3.6.0",
|
|
14
14
|
"cors": "^2.8.5",
|
|
15
|
-
"crypto-js": "^4.
|
|
16
|
-
"express": "^4.
|
|
17
|
-
"fs-extra": "^11.
|
|
18
|
-
"glob": "^9.
|
|
15
|
+
"crypto-js": "^4.2.0",
|
|
16
|
+
"express": "^4.19.2",
|
|
17
|
+
"fs-extra": "^11.2.0",
|
|
18
|
+
"glob": "^9.3.5",
|
|
19
19
|
"livereload": "^0.9.3",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"opener": "^1.5.2",
|
|
22
22
|
"prompts": "^2.4.2",
|
|
23
|
-
"yargs": "^17.7.
|
|
23
|
+
"yargs": "^17.7.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -247,12 +247,12 @@ module.exports = class TemplateService {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// install dependencies
|
|
250
|
-
if (
|
|
250
|
+
if (schema.dependencies) {
|
|
251
251
|
Object.keys(schema.dependencies).forEach(name =>
|
|
252
252
|
ensureModule(name, schema.dependencies[name], false),
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
if (
|
|
255
|
+
if (schema.devDependencies) {
|
|
256
256
|
Object.keys(schema.devDependencies).forEach(name =>
|
|
257
257
|
ensureModule(name, schema.devDependencies[name]),
|
|
258
258
|
);
|
|
@@ -260,12 +260,12 @@ module.exports = class TemplateService {
|
|
|
260
260
|
if (variantIdx !== null) {
|
|
261
261
|
const deps = schema.variants[variantIdx].dependencies;
|
|
262
262
|
const devDeps = schema.variants[variantIdx].devDependencies;
|
|
263
|
-
if (
|
|
263
|
+
if (deps) {
|
|
264
264
|
Object.keys(deps).forEach(name =>
|
|
265
265
|
ensureModule(name, deps[name], false),
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
|
-
if (
|
|
268
|
+
if (devDeps) {
|
|
269
269
|
Object.keys(devDeps).forEach(name =>
|
|
270
270
|
ensureModule(name, devDeps[name]),
|
|
271
271
|
);
|
package/utils.js
CHANGED
|
@@ -55,10 +55,9 @@ function moduleExists(moduleName) {
|
|
|
55
55
|
function ensureModule(moduleName, moduleVersion = null, dev = true) {
|
|
56
56
|
if (!moduleExists(moduleName)) {
|
|
57
57
|
if (moduleName.startsWith('@ixon-cdk/')) {
|
|
58
|
-
|
|
59
|
-
moduleVersion = cdkVersion;
|
|
58
|
+
moduleVersion = require('./package.json').version;
|
|
60
59
|
}
|
|
61
|
-
const v =
|
|
60
|
+
const v = moduleVersion ? '@' + moduleVersion : '';
|
|
62
61
|
console.log(`Installing package '${moduleName}${v}...`);
|
|
63
62
|
require('child_process').execSync(
|
|
64
63
|
`npm install --save${dev ? '-dev' : ''} ${moduleName}${v}`,
|