From 4fb1936b387e28e753ab5c24c9d1fbc06e56b075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Wed, 13 Nov 2024 15:23:54 +0800 Subject: [PATCH 1/3] fix: argv --- create-tnf/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-tnf/src/cli.ts b/create-tnf/src/cli.ts index b6ba26e..0f652b1 100644 --- a/create-tnf/src/cli.ts +++ b/create-tnf/src/cli.ts @@ -2,7 +2,7 @@ import yargsParser from 'yargs-parser'; import { create } from './create.js'; async function run(cwd: string) { - const argv = yargsParser(process.argv.slice(1)); + const argv = yargsParser(process.argv.slice(2)); return create({ cwd: cwd, name: argv._[0] as string | undefined, From 9e080b70d37f35783c17f008c4c00ca102f802a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Wed, 13 Nov 2024 15:28:37 +0800 Subject: [PATCH 2/3] chore: changelog --- .changeset/wise-zoos-argue.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/wise-zoos-argue.md diff --git a/.changeset/wise-zoos-argue.md b/.changeset/wise-zoos-argue.md new file mode 100644 index 0000000..e4bf22f --- /dev/null +++ b/.changeset/wise-zoos-argue.md @@ -0,0 +1,5 @@ +--- +'create-tnf': patch +--- + +fix argv From 4fbc613205fee11ebbe7b10c8d491052454493f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?chencheng=20=28=E4=BA=91=E8=B0=A6=29?= Date: Wed, 13 Nov 2024 15:36:54 +0800 Subject: [PATCH 3/3] Update .changeset/wise-zoos-argue.md --- .changeset/wise-zoos-argue.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/wise-zoos-argue.md b/.changeset/wise-zoos-argue.md index e4bf22f..ea35ae7 100644 --- a/.changeset/wise-zoos-argue.md +++ b/.changeset/wise-zoos-argue.md @@ -2,4 +2,4 @@ 'create-tnf': patch --- -fix argv +fix argv should be sliced from index 2