@cabloy/cli 3.0.71 → 3.0.73
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/dist/index.js +5 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -713,7 +713,11 @@ class LocalTemplate {
|
|
|
713
713
|
const sets = this.moduleConfig.sets;
|
|
714
714
|
const require = createRequire(import.meta.url);
|
|
715
715
|
const modulePath = require.resolve(`${sets[process.env.CabloyCliBrandName][setName]}/package.json`);
|
|
716
|
-
|
|
716
|
+
let templatePath = path.join(path.dirname(modulePath), 'dist-cli/templates', _path);
|
|
717
|
+
if (!fse.existsSync(templatePath)) {
|
|
718
|
+
templatePath = path.join(path.dirname(modulePath), 'cli/templates', _path);
|
|
719
|
+
}
|
|
720
|
+
return templatePath;
|
|
717
721
|
}
|
|
718
722
|
async renderBoilerplateAndSnippets({
|
|
719
723
|
targetDir,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.73",
|
|
5
5
|
"description": "@cabloy/cli",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@babel/parser": "^7.26.5",
|
|
30
30
|
"@cabloy/module-glob": "^5.2.35",
|
|
31
31
|
"@cabloy/module-info": "^1.3.32",
|
|
32
|
-
"@cabloy/process-helper": "^2.0.
|
|
32
|
+
"@cabloy/process-helper": "^2.0.24",
|
|
33
33
|
"@cabloy/utils": "^1.0.49",
|
|
34
34
|
"@cabloy/word-utils": "^2.0.1",
|
|
35
35
|
"@npmcli/config": "^10.4.2",
|