@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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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.
|
|
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.
|
|
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.
|
|
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.
|
|
728
|
+
await program.parseAsync();
|
|
729
729
|
}
|
|
730
730
|
if (__require.main === module) {
|
|
731
731
|
cli();
|