88 hasFile,
99 resolveBin,
1010 fromRoot,
11+ toPOSIX,
1112 getConcurrentlyArgs,
1213 writeExtraEntry,
1314 hasTypescript,
@@ -76,8 +77,8 @@ function go() {
7677 writeExtraEntry (
7778 'preact' ,
7879 {
79- cjs : glob . sync ( fromRoot ( 'preact/**/*.cjs.js' ) ) [ 0 ] ,
80- esm : glob . sync ( fromRoot ( 'preact/**/*.esm.js' ) ) [ 0 ] ,
80+ cjs : glob . sync ( toPOSIX ( fromRoot ( 'preact/**/*.cjs.js' ) ) ) [ 0 ] ,
81+ esm : glob . sync ( toPOSIX ( fromRoot ( 'preact/**/*.esm.js' ) ) ) [ 0 ] ,
8182 } ,
8283 false ,
8384 )
@@ -101,7 +102,7 @@ function go() {
101102 const isCodesplitting = rollupInputs . length > 1
102103
103104 const outputs = isCodesplitting
104- ? glob . sync ( fromRoot ( path . posix . join ( dirpath , format , '*.js' ) ) )
105+ ? glob . sync ( toPOSIX ( fromRoot ( path . posix . join ( dirpath , format , '*.js' ) ) ) )
105106 : [ fromRoot ( path . join ( dirpath , filename ) ) ]
106107
107108 for ( const output of outputs ) {
@@ -123,8 +124,8 @@ function go() {
123124 // because typescript generates type defs for ignored files, we need to
124125 // remove the ignored files
125126 const ignoredFiles = [
126- ...glob . sync ( fromRoot ( 'dist' , '**/__tests__/**' ) ) ,
127- ...glob . sync ( fromRoot ( 'dist' , '**/__mocks__/**' ) ) ,
127+ ...glob . sync ( toPOSIX ( fromRoot ( 'dist' , '**/__tests__/**' ) ) ) ,
128+ ...glob . sync ( toPOSIX ( fromRoot ( 'dist' , '**/__mocks__/**' ) ) ) ,
128129 ]
129130 ignoredFiles . forEach ( ignoredFile => {
130131 rimraf . sync ( ignoredFile )
0 commit comments