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 11eadb4 commit 5a9144c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
9 changes: 7 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176255,8 +176255,13 @@ function bundleNPMArtifacts() {
catch (e) {
console.warn("No LICENSE found");
}
console.log("Copying README.md");
external_fs_.copyFileSync(external_path_.join(workingDirectory, "README.md"), external_path_.join(releaseFolder, "README.md"));
try {
console.log("Copying README.md");
external_fs_.copyFileSync(external_path_.join(workingDirectory, "README.md"), external_path_.join(releaseFolder, "README.md"));
}
catch (_a) {
console.warn("No LICENSE found");
}
console.log("Copying postinstall.js");
external_fs_.copyFileSync(external_path_.join(workingDirectory, "release-postinstall.js"), external_path_.join(releaseFolder, "postinstall.js"));
console.log("Creating placeholder files");
Expand Down
14 changes: 9 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,15 @@ async function bundleNPMArtifacts() {
console.warn("No LICENSE found");
}

console.log("Copying README.md");
fs.copyFileSync(
path.join(workingDirectory, "README.md"),
path.join(releaseFolder, "README.md")
);
try {
console.log("Copying README.md");
fs.copyFileSync(
path.join(workingDirectory, "README.md"),
path.join(releaseFolder, "README.md")
);
} catch {
console.warn("No LICENSE found");
}

console.log("Copying postinstall.js");
fs.copyFileSync(
Expand Down

0 comments on commit 5a9144c

Please sign in to comment.