File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export type Argv = {
80
80
template ?: string ;
81
81
override ?: boolean ;
82
82
tools ?: string | string [ ] ;
83
+ 'package-name' ?: string ;
83
84
} ;
84
85
85
86
function logHelpMessage ( name : string , templates : string [ ] ) {
@@ -93,6 +94,7 @@ function logHelpMessage(name: string, templates: string[]) {
93
94
-t, --template specify the template to use
94
95
--tools select additional tools (biome, eslint, prettier)
95
96
--override override files in target directory
97
+ --package-name specify the package name
96
98
97
99
Templates:
98
100
@@ -200,7 +202,9 @@ export async function create({
200
202
} ) ,
201
203
) ;
202
204
203
- const { targetDir, packageName } = formatProjectName ( projectName ) ;
205
+ const formatted = formatProjectName ( projectName ) ;
206
+ const { targetDir } = formatted ;
207
+ const packageName = argv [ 'package-name' ] || formatted . packageName ;
204
208
const distFolder = path . isAbsolute ( targetDir )
205
209
? targetDir
206
210
: path . join ( cwd , targetDir ) ;
You can’t perform that action at this time.
0 commit comments