Skip to content

Commit e523f54

Browse files
committed
feat(): revert resolvePackageName signature
1 parent 83e63aa commit e523f54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/application/application.factory.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function transform(options: ApplicationOptions): ApplicationOptions {
3838
? target.description
3939
: DEFAULT_DESCRIPTION;
4040
target.language = !!target.language ? target.language : DEFAULT_LANGUAGE;
41-
target.name = resolvePackageName(target.name);
41+
target.name = resolvePackageName(target.name.toString());
4242
target.version = !!target.version ? target.version : DEFAULT_VERSION;
4343

4444
target.packageManager =
@@ -62,8 +62,8 @@ function transform(options: ApplicationOptions): ApplicationOptions {
6262
* but only the rule *1* is addressed by this function as the other ones doesn't
6363
* have a canonical representation.
6464
*/
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);
6767
if (baseFilename === '.') {
6868
return basename(process.cwd());
6969
}

0 commit comments

Comments
 (0)