@cabloy/cli 3.0.72 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
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
- return path.join(path.dirname(modulePath), 'cli/templates', _path);
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.72",
4
+ "version": "3.0.73",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"