@@ -5130,11 +5130,10 @@ var parseSercets = (inputs) => {
5130
5130
}
5131
5131
} ;
5132
5132
var findRootPackageJson = ( startDirectory , currDirectory , prevDirectory ) => {
5133
- console . log ( currDirectory , prevDirectory ) ;
5134
5133
if ( currDirectory === prevDirectory )
5135
5134
return startDirectory ;
5136
- const packagePath2 = path . join ( currDirectory , "package.json" ) ;
5137
- if ( fs . existsSync ( packagePath2 ) )
5135
+ const packagePath = path . join ( currDirectory , "package.json" ) ;
5136
+ if ( fs . existsSync ( packagePath ) )
5138
5137
return currDirectory ;
5139
5138
const pathAbove = path . join ( currDirectory , ".." ) ;
5140
5139
return findRootPackageJson ( startDirectory , pathAbove , currDirectory ) ;
@@ -5146,13 +5145,13 @@ var moveFile = async ({
5146
5145
extension
5147
5146
} ) => {
5148
5147
const fullFileName = extension ? `${ fileName } .${ extension } ` : fileName ;
5149
- let curr_path2 = path . join ( directoryStart , fullFileName ) ;
5148
+ let curr_path = path . join ( directoryStart , fullFileName ) ;
5150
5149
let destination_folder = directoryDes ;
5151
5150
let destination = path . join ( destination_folder , fullFileName ) ;
5152
5151
if ( ! fs . existsSync ( destination_folder ) ) {
5153
5152
await fsPromises . mkdir ( destination_folder ) ;
5154
5153
}
5155
- await mvPromise ( curr_path2 , destination ) ;
5154
+ await mvPromise ( curr_path , destination ) ;
5156
5155
} ;
5157
5156
var createEnv = async ( {
5158
5157
customName,
@@ -5243,9 +5242,7 @@ var main = async () => {
5243
5242
prefixFilter
5244
5243
} ) ;
5245
5244
} ;
5246
- var curr_path = path . resolve ( `${ __dirname } /../../..` ) ;
5247
- var packagePath = findRootPackageJson ( curr_path , curr_path ) ;
5248
- console . log ( packagePath ) ;
5245
+ main ( ) ;
5249
5246
// Annotate the CommonJS export names for ESM import in node:
5250
5247
0 && ( module . exports = {
5251
5248
createEnvFile,
0 commit comments