File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function transform(options: ApplicationOptions): ApplicationOptions {
38
38
? target . description
39
39
: DEFAULT_DESCRIPTION ;
40
40
target . language = ! ! target . language ? target . language : DEFAULT_LANGUAGE ;
41
- target . name = resolvePackageName ( target . name ) ;
41
+ target . name = resolvePackageName ( target . name . toString ( ) ) ;
42
42
target . version = ! ! target . version ? target . version : DEFAULT_VERSION ;
43
43
44
44
target . packageManager =
@@ -62,8 +62,8 @@ function transform(options: ApplicationOptions): ApplicationOptions {
62
62
* but only the rule *1* is addressed by this function as the other ones doesn't
63
63
* have a canonical representation.
64
64
*/
65
- function resolvePackageName ( path : string | number ) {
66
- const { base : baseFilename , dir : dirname } = parse ( path . toString ( ) ) ;
65
+ function resolvePackageName ( path : string ) {
66
+ const { base : baseFilename , dir : dirname } = parse ( path ) ;
67
67
if ( baseFilename === '.' ) {
68
68
return basename ( process . cwd ( ) ) ;
69
69
}
You can’t perform that action at this time.
0 commit comments