Skip to content

Commit

Permalink
Fixes "" -> postinstall.js bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jul 13, 2024
1 parent 750eefd commit aa03d63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180725,7 +180725,9 @@ function bundleNPMArtifacts() {
catch (_a) {
console.warn("No LICENSE found");
}
const releasePostInstallJS = customPostInstallJS !== null && customPostInstallJS !== void 0 ? customPostInstallJS : __nccwpck_require__.ab + "release-postinstall.js";
const releasePostInstallJS = typeof customPostInstallJS !== "string" && customPostInstallJS !== ""
? customPostInstallJS
: __nccwpck_require__.ab + "release-postinstall.js";
console.log("Copying postinstall.js from", releasePostInstallJS);
external_fs_.copyFileSync(releasePostInstallJS, external_path_.join(releaseFolder, "postinstall.js"));
console.log("Creating placeholder files");
Expand Down
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ async function bundleNPMArtifacts() {
}

const releasePostInstallJS =
customPostInstallJS ?? path.join(__dirname, "release-postinstall.js");
typeof customPostInstallJS !== "string" && customPostInstallJS !== ""
? customPostInstallJS
: path.join(__dirname, "release-postinstall.js");
console.log("Copying postinstall.js from", releasePostInstallJS);
fs.copyFileSync(
releasePostInstallJS,
Expand Down

0 comments on commit aa03d63

Please sign in to comment.