File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { generateExportsField } from "./tools/dualPackageSupport";
5
5
import { shell } from "./tools/shell" ;
6
6
import { cherryPick } from "./tools/cherry-pick" ;
7
7
import * as fs from "fs" ;
8
- import { posix as path } from "path" ;
9
8
10
9
11
10
const main = async ( ) => {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const isFile = (path: string) =>
33
33
. catch ( ( ) => false ) ;
34
34
35
35
const withDefaults = ( { cwd = "." , ...options } : Option , additionalDefaults : { cjsDir ?: string ; esmDir ?: string } = { } ) : Option => ( {
36
- cwd : path . resolve ( process . cwd ( ) , cwd ) ,
36
+ cwd : path . join ( process . cwd ( ) , cwd ) ,
37
37
...additionalDefaults ,
38
38
...options ,
39
39
} ) ;
@@ -92,12 +92,8 @@ export const cherryPick = async (inputOptions: Option) => {
92
92
esmDir : "es" ,
93
93
} ) ;
94
94
95
- console . log ( options ) ;
96
-
97
95
const files = await findFiles ( options ) ;
98
96
99
- console . log ( { files } ) ;
100
-
101
97
await Promise . all (
102
98
files . map ( async file => {
103
99
const proxyDir = path . join ( options . cwd , file ) ;
You can’t perform that action at this time.
0 commit comments