@svton/cli 1.0.1 → 1.0.2

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- declare function cli(): void;
2
+ declare function cli(): Promise<void>;
3
3
 
4
4
  export { cli };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- declare function cli(): void;
2
+ declare function cli(): Promise<void>;
3
3
 
4
4
  export { cli };
package/dist/index.js CHANGED
@@ -745,14 +745,14 @@ async function createProjectFromTemplate(config) {
745
745
  }
746
746
 
747
747
  // package.json
748
- var version = "1.0.1";
748
+ var version = "1.0.2";
749
749
 
750
750
  // src/index.ts
751
- function cli() {
751
+ async function cli() {
752
752
  const program = new import_commander.Command();
753
753
  program.name("svton").description("Svton CLI - Create full-stack applications with NestJS, Next.js, and Taro").version(version);
754
754
  program.command("create <project-name>").alias("init").alias("new").description("Create a new Svton project").option("-o, --org <name>", "Organization name (default: project name)").option("--skip-install", "Skip installing dependencies").option("--skip-git", "Skip Git initialization").option("-t, --template <template>", "Template to use", "full-stack").option("-p, --package-manager <pm>", "Package manager to use", "pnpm").option("-y, --yes", "Skip all prompts and use defaults").action(createProject);
755
- program.parse();
755
+ await program.parseAsync();
756
756
  }
757
757
  if (require.main === module) {
758
758
  cli();
package/dist/index.mjs CHANGED
@@ -718,14 +718,14 @@ async function createProjectFromTemplate(config) {
718
718
  }
719
719
 
720
720
  // package.json
721
- var version = "1.0.1";
721
+ var version = "1.0.2";
722
722
 
723
723
  // src/index.ts
724
- function cli() {
724
+ async function cli() {
725
725
  const program = new Command();
726
726
  program.name("svton").description("Svton CLI - Create full-stack applications with NestJS, Next.js, and Taro").version(version);
727
727
  program.command("create <project-name>").alias("init").alias("new").description("Create a new Svton project").option("-o, --org <name>", "Organization name (default: project name)").option("--skip-install", "Skip installing dependencies").option("--skip-git", "Skip Git initialization").option("-t, --template <template>", "Template to use", "full-stack").option("-p, --package-manager <pm>", "Package manager to use", "pnpm").option("-y, --yes", "Skip all prompts and use defaults").action(createProject);
728
- program.parse();
728
+ await program.parseAsync();
729
729
  }
730
730
  if (__require.main === module) {
731
731
  cli();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svton/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Svton CLI - Create full-stack applications with NestJS, Next.js, and Taro",
5
5
  "keywords": [
6
6
  "cli",