Skip to content

Commit

Permalink
chore(release): copy README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Aug 2, 2024
1 parent 90ed67a commit 07f8a76
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ console.log("Copied ./seed.mjs");
await $`cp -r pro/frontend/dist release/frontend`;
console.log("Copied ./frontend");

// Copy README.md
await $`cp README.md release/README.md`;
console.log("Copied README.md");

// Generate package.json with all dependencies
generatePackageJson("./release");

// Generate shrinkwrap file
console.log("Running `npm install --package-lock-only --ignore-scripts`");
const { stdout: projectDir } = await $`pwd`;
const npmInstallProcess = $(
"npm install --package-lock-only --ignore-scripts",
{
shell: true,
cwd: `${projectDir}/release`,
},
);
const npmInstallProcess = $("npm install --package-lock-only --ignore-scripts", {
shell: true,
cwd: `${projectDir}/release`,
});
npmInstallProcess.stdout.pipe(process.stdout);
npmInstallProcess.stderr.pipe(process.stderr);
await npmInstallProcess;
Expand All @@ -51,6 +52,4 @@ await $(`npm shrinkwrap`, {
});
console.log("Generated shrinkwrap.json");

console.log(
"Release is ready. Run `cd release && npm publish` to publish to NPM.",
);
console.log("Release is ready. Run `cd release && npm publish` to publish to NPM.");

0 comments on commit 07f8a76

Please sign in to comment.