Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed May 31, 2024
1 parent afa0d89 commit e5cc6b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176204,9 +176204,11 @@ function bundleNPMArtifacts() {
return acc;
}, []);
console.log("Creating package.json");
const mainPackageJsonPath = external_fs_.existsSync("esy.json")
? "esy.json"
: "package.json";
const possibleEsyJsonPath = external_path_.join(workingDirectory, "esy.json");
const possiblePackageJsonPath = external_path_.join(workingDirectory, "package.json");
const mainPackageJsonPath = external_fs_.existsSync(possibleEsyJsonPath)
? possibleEsyJsonPath
: possiblePackageJsonPath;
const exists = external_fs_.existsSync(external_path_.join(workingDirectory, mainPackageJsonPath));
if (!exists) {
console.error("No package.json or esy.json at " + mainPackageJsonPath);
Expand Down
8 changes: 5 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@ async function bundleNPMArtifacts() {
[]
);
console.log("Creating package.json");
const mainPackageJsonPath = fs.existsSync("esy.json")
? "esy.json"
: "package.json";
const possibleEsyJsonPath = path.join(workingDirectory, "esy.json");
const possiblePackageJsonPath = path.join(workingDirectory, "package.json");
const mainPackageJsonPath = fs.existsSync(possibleEsyJsonPath)
? possibleEsyJsonPath
: possiblePackageJsonPath;
const exists = fs.existsSync(
path.join(workingDirectory, mainPackageJsonPath)
);
Expand Down

0 comments on commit e5cc6b9

Please sign in to comment.