@svton/cli 1.0.3 → 1.0.4

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 CHANGED
@@ -74,10 +74,10 @@ var import_fs_extra = __toESM(require("fs-extra"));
74
74
  var import_path = __toESM(require("path"));
75
75
  async function copyTemplateFiles(config) {
76
76
  const { template, projectPath } = config;
77
- const cliDir = import_path.default.dirname(import_path.default.dirname(__dirname));
78
- let templateDir = import_path.default.join(cliDir, "templates");
77
+ const cliPackageRoot = import_path.default.dirname(__dirname);
78
+ let templateDir = import_path.default.join(cliPackageRoot, "templates");
79
79
  if (!await import_fs_extra.default.pathExists(templateDir)) {
80
- const frameworkRoot = import_path.default.dirname(import_path.default.dirname(cliDir));
80
+ const frameworkRoot = import_path.default.dirname(import_path.default.dirname(cliPackageRoot));
81
81
  templateDir = import_path.default.join(frameworkRoot, "templates");
82
82
  }
83
83
  logger.debug(`Copying template files from: ${templateDir}`);
@@ -748,7 +748,7 @@ async function createProjectFromTemplate(config) {
748
748
  }
749
749
 
750
750
  // package.json
751
- var version = "1.0.3";
751
+ var version = "1.0.4";
752
752
 
753
753
  // src/index.ts
754
754
  async function cli() {
package/dist/index.mjs CHANGED
@@ -47,10 +47,10 @@ import fs from "fs-extra";
47
47
  import path from "path";
48
48
  async function copyTemplateFiles(config) {
49
49
  const { template, projectPath } = config;
50
- const cliDir = path.dirname(path.dirname(__dirname));
51
- let templateDir = path.join(cliDir, "templates");
50
+ const cliPackageRoot = path.dirname(__dirname);
51
+ let templateDir = path.join(cliPackageRoot, "templates");
52
52
  if (!await fs.pathExists(templateDir)) {
53
- const frameworkRoot = path.dirname(path.dirname(cliDir));
53
+ const frameworkRoot = path.dirname(path.dirname(cliPackageRoot));
54
54
  templateDir = path.join(frameworkRoot, "templates");
55
55
  }
56
56
  logger.debug(`Copying template files from: ${templateDir}`);
@@ -721,7 +721,7 @@ async function createProjectFromTemplate(config) {
721
721
  }
722
722
 
723
723
  // package.json
724
- var version = "1.0.3";
724
+ var version = "1.0.4";
725
725
 
726
726
  // src/index.ts
727
727
  async function cli() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svton/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Svton CLI - Create full-stack applications with NestJS, Next.js, and Taro",
5
5
  "keywords": [
6
6
  "cli",