Skip to content

Commit fc9cfde

Browse files
committed
wip
1 parent 9b6df89 commit fc9cfde

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176209,12 +176209,12 @@ function bundleNPMArtifacts() {
176209176209
const mainPackageJsonPath = external_fs_.existsSync(possibleEsyJsonPath)
176210176210
? possibleEsyJsonPath
176211176211
: possiblePackageJsonPath;
176212-
const exists = external_fs_.existsSync(external_path_.join(mainPackageJsonPath));
176212+
const exists = external_fs_.existsSync(mainPackageJsonPath);
176213176213
if (!exists) {
176214176214
console.error("No package.json or esy.json at " + mainPackageJsonPath);
176215176215
process.exit(1);
176216176216
}
176217-
const mainPackageJson = JSON.parse(external_fs_.readFileSync(`./${mainPackageJsonPath}`).toString());
176217+
const mainPackageJson = JSON.parse(external_fs_.readFileSync(`${mainPackageJsonPath}`).toString());
176218176218
const bins = Array.isArray(mainPackageJson.esy.release.bin)
176219176219
? mainPackageJson.esy.release.bin.reduce((acc, curr) => Object.assign({ [curr]: "bin/" + curr }, acc), {})
176220176220
: Object.keys(mainPackageJson.esy.release.bin).reduce((acc, currKey) => Object.assign({ [currKey]: "bin/" + mainPackageJson.esy.release.bin[currKey] }, acc), {});

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ async function bundleNPMArtifacts() {
181181
const mainPackageJsonPath = fs.existsSync(possibleEsyJsonPath)
182182
? possibleEsyJsonPath
183183
: possiblePackageJsonPath;
184-
const exists = fs.existsSync(path.join(mainPackageJsonPath));
184+
const exists = fs.existsSync(mainPackageJsonPath);
185185
if (!exists) {
186186
console.error("No package.json or esy.json at " + mainPackageJsonPath);
187187
process.exit(1);
188188
}
189189
const mainPackageJson = JSON.parse(
190-
fs.readFileSync(`./${mainPackageJsonPath}`).toString()
190+
fs.readFileSync(`${mainPackageJsonPath}`).toString()
191191
);
192192
const bins = Array.isArray(mainPackageJson.esy.release.bin)
193193
? mainPackageJson.esy.release.bin.reduce(

0 commit comments

Comments
 (0)