From 03a5fbb9e37321d9e2c7656532e44dbc5abab4db Mon Sep 17 00:00:00 2001 From: sorrycc Date: Thu, 7 Nov 2024 14:31:01 +0800 Subject: [PATCH] fix(create): name is lost from argv --- CHANGELOG.md | 3 --- src/cli.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d49e5b..ea64245 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,6 @@ ### Patch Changes - - [#18](https://github.com/umijs/tnf/pull/18) [`c1dbe5a`](https://github.com/umijs/tnf/commit/c1dbe5aaa96bdf4d43dd85c6de72ab67be1654cb) Thanks [@sorrycc](https://github.com/sorrycc)! - feat: add generate cmd - - [#12](https://github.com/umijs/tnf/pull/12) [`dcf4979`](https://github.com/umijs/tnf/commit/dcf497971142ff5a48b70a4165fb256ac513b10e) Thanks [@xiaohuoni](https://github.com/xiaohuoni)! - feat: add preview cmd - - [#17](https://github.com/umijs/tnf/pull/17) [`4d142b3`](https://github.com/umijs/tnf/commit/4d142b363b84f47aad6e2fb9ce02306aa0af0595) Thanks [@sorrycc](https://github.com/sorrycc)! - feat: add router config diff --git a/src/cli.ts b/src/cli.ts index 75a32cd..f0c22d6 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -22,7 +22,7 @@ async function run(cwd: string) { const { create } = await import('./create.js'); return create({ cwd: cwd, - name: argv.name, + name: argv._[1] as string | undefined, template: argv.template, }); case 'build':