@cabloy/cli 3.0.72 → 3.0.74
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 +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -546,12 +546,9 @@ class LocalHelper {
|
|
|
546
546
|
return file;
|
|
547
547
|
}
|
|
548
548
|
async invokeCli(args, options) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
cmd: 'tsx',
|
|
549
|
+
await this.processHelper.spawnExe({
|
|
550
|
+
cmd: 'node',
|
|
552
551
|
args: [this.parseBrandPath()].concat(args),
|
|
553
|
-
// cmd: 'node',
|
|
554
|
-
// args: ['--experimental-transform-types', getImportEsm(), this.parseBrandPath()].concat(args),
|
|
555
552
|
options
|
|
556
553
|
});
|
|
557
554
|
}
|
|
@@ -713,7 +710,11 @@ class LocalTemplate {
|
|
|
713
710
|
const sets = this.moduleConfig.sets;
|
|
714
711
|
const require = createRequire(import.meta.url);
|
|
715
712
|
const modulePath = require.resolve(`${sets[process.env.CabloyCliBrandName][setName]}/package.json`);
|
|
716
|
-
|
|
713
|
+
let templatePath = path.join(path.dirname(modulePath), 'dist-cli/templates', _path);
|
|
714
|
+
if (!fse.existsSync(templatePath)) {
|
|
715
|
+
templatePath = path.join(path.dirname(modulePath), 'cli/templates', _path);
|
|
716
|
+
}
|
|
717
|
+
return templatePath;
|
|
717
718
|
}
|
|
718
719
|
async renderBoilerplateAndSnippets({
|
|
719
720
|
targetDir,
|