Skip to content

Commit 102956a

Browse files
committed
update dist file
1 parent f032145 commit 102956a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

dist/index.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -5130,11 +5130,10 @@ var parseSercets = (inputs) => {
51305130
}
51315131
};
51325132
var findRootPackageJson = (startDirectory, currDirectory, prevDirectory) => {
5133-
console.log(currDirectory, prevDirectory);
51345133
if (currDirectory === prevDirectory)
51355134
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))
51385137
return currDirectory;
51395138
const pathAbove = path.join(currDirectory, "..");
51405139
return findRootPackageJson(startDirectory, pathAbove, currDirectory);
@@ -5146,13 +5145,13 @@ var moveFile = async ({
51465145
extension
51475146
}) => {
51485147
const fullFileName = extension ? `${fileName}.${extension}` : fileName;
5149-
let curr_path2 = path.join(directoryStart, fullFileName);
5148+
let curr_path = path.join(directoryStart, fullFileName);
51505149
let destination_folder = directoryDes;
51515150
let destination = path.join(destination_folder, fullFileName);
51525151
if (!fs.existsSync(destination_folder)) {
51535152
await fsPromises.mkdir(destination_folder);
51545153
}
5155-
await mvPromise(curr_path2, destination);
5154+
await mvPromise(curr_path, destination);
51565155
};
51575156
var createEnv = async ({
51585157
customName,
@@ -5243,9 +5242,7 @@ var main = async () => {
52435242
prefixFilter
52445243
});
52455244
};
5246-
var curr_path = path.resolve(`${__dirname}/../../..`);
5247-
var packagePath = findRootPackageJson(curr_path, curr_path);
5248-
console.log(packagePath);
5245+
main();
52495246
// Annotate the CommonJS export names for ESM import in node:
52505247
0 && (module.exports = {
52515248
createEnvFile,

0 commit comments

Comments
 (0)