File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const argv: ArgvArguments = parser(process.argv.slice(2), {
35
35
return help ( ) ;
36
36
}
37
37
try {
38
- argv . entry = path . resolve ( process . cwd ( ) , argv . entry || 'src/index.tsx' ) ;
38
+ argv . entry = argv . entry || 'src/index.tsx' ;
39
39
if ( ts . sys . fileExists ( argv . entry . replace ( / \. t s x $ / , '.ts' ) ) ) {
40
40
argv . entry = argv . entry . replace ( / \. t s x $ / , '.ts' ) ;
41
41
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export async function compile(
38
38
! isMatch ( item . path , [ '**/?(*.)+(spec|test).[jt]s?(x)' ] )
39
39
) {
40
40
transform ( item . path , { entryDir, cjs, ...other } ) ;
41
- } else {
41
+ } else if ( ! isMatch ( item . path , [ '**/*.[jt]s?(x)' ] ) ) {
42
42
copyFiles ( item . path , cjsPath ) ;
43
43
}
44
44
}
@@ -50,7 +50,7 @@ export async function compile(
50
50
! isMatch ( item . path , [ '**/?(*.)+(spec|test).[jt]s?(x)' ] )
51
51
) {
52
52
transform ( item . path , { entryDir, esm, ...other } ) ;
53
- } else {
53
+ } else if ( ! isMatch ( item . path , [ '**/*.[jt]s?(x)' ] ) ) {
54
54
copyFiles ( item . path , esmPath ) ;
55
55
}
56
56
}
You can’t perform that action at this time.
0 commit comments