@sitecore-content-sdk/cli 1.2.0-canary.41 → 1.2.0-canary.43
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.
|
@@ -42,7 +42,7 @@ function handler(argv) {
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
const componentMapGenerator = cliConfig.componentMap.generator;
|
|
45
|
-
const { paths, destination, componentImports, exclude, clientComponentMap } = cliConfig.componentMap;
|
|
45
|
+
const { paths, destination, componentImports, exclude, clientComponentMap, includeVariants } = cliConfig.componentMap;
|
|
46
46
|
if (argv.watch) {
|
|
47
47
|
console.log(`Watching for component changes to component builder sources in:\n ${paths.join('\n')}`);
|
|
48
48
|
(0, watch_items_1.watchItems)(paths, componentMapGenerator.bind(null, {
|
|
@@ -51,10 +51,18 @@ function handler(argv) {
|
|
|
51
51
|
componentImports,
|
|
52
52
|
exclude,
|
|
53
53
|
clientComponentMap,
|
|
54
|
+
includeVariants,
|
|
54
55
|
}));
|
|
55
56
|
}
|
|
56
57
|
else {
|
|
57
58
|
console.log(`Generating component map for:\n ${paths.join('\n')}`);
|
|
58
|
-
componentMapGenerator({
|
|
59
|
+
componentMapGenerator({
|
|
60
|
+
paths,
|
|
61
|
+
destination,
|
|
62
|
+
componentImports,
|
|
63
|
+
exclude,
|
|
64
|
+
clientComponentMap,
|
|
65
|
+
includeVariants,
|
|
66
|
+
});
|
|
59
67
|
}
|
|
60
68
|
}
|
|
@@ -34,7 +34,7 @@ export function handler(argv) {
|
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
const componentMapGenerator = cliConfig.componentMap.generator;
|
|
37
|
-
const { paths, destination, componentImports, exclude, clientComponentMap } = cliConfig.componentMap;
|
|
37
|
+
const { paths, destination, componentImports, exclude, clientComponentMap, includeVariants } = cliConfig.componentMap;
|
|
38
38
|
if (argv.watch) {
|
|
39
39
|
console.log(`Watching for component changes to component builder sources in:\n ${paths.join('\n')}`);
|
|
40
40
|
watchItems(paths, componentMapGenerator.bind(null, {
|
|
@@ -43,10 +43,18 @@ export function handler(argv) {
|
|
|
43
43
|
componentImports,
|
|
44
44
|
exclude,
|
|
45
45
|
clientComponentMap,
|
|
46
|
+
includeVariants,
|
|
46
47
|
}));
|
|
47
48
|
}
|
|
48
49
|
else {
|
|
49
50
|
console.log(`Generating component map for:\n ${paths.join('\n')}`);
|
|
50
|
-
componentMapGenerator({
|
|
51
|
+
componentMapGenerator({
|
|
52
|
+
paths,
|
|
53
|
+
destination,
|
|
54
|
+
componentImports,
|
|
55
|
+
exclude,
|
|
56
|
+
clientComponentMap,
|
|
57
|
+
includeVariants,
|
|
58
|
+
});
|
|
51
59
|
}
|
|
52
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-content-sdk/cli",
|
|
3
|
-
"version": "1.2.0-canary.
|
|
3
|
+
"version": "1.2.0-canary.43",
|
|
4
4
|
"description": "Sitecore Content SDK CLI",
|
|
5
5
|
"main": "dist/cjs/cli.js",
|
|
6
6
|
"module": "dist/esm/cli.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"url": "https://github.com/sitecore/content-sdk/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@sitecore-content-sdk/core": "1.2.0-canary.
|
|
37
|
+
"@sitecore-content-sdk/core": "1.2.0-canary.43",
|
|
38
38
|
"chokidar": "^4.0.3",
|
|
39
39
|
"dotenv": "^16.5.0",
|
|
40
40
|
"dotenv-expand": "^12.0.2",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"ts-node": "^10.9.1",
|
|
72
72
|
"typescript": "~5.8.3"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "f2d71b2f140e1a3a2821db59f52b4cccc7f31fe3",
|
|
75
75
|
"files": [
|
|
76
76
|
"dist",
|
|
77
77
|
"types"
|