Skip to content

Commit

Permalink
Update to include Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 19, 2024
1 parent c204415 commit 9195093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fs.writeFileSync(
JSON.stringify(packageJson, null, 2),
);

const readMePath = path.resolve(__dirname, "../lib", "README.md");
const readMePath = path.resolve(__dirname, "../lib/dist", "README.md");

let readMe = fs.readFileSync(readMePath, { encoding: "utf8" });
const tmp = "!---";
Expand Down
5 changes: 5 additions & 0 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ fs.writeFileSync(
JSON.stringify(pkg, null, 2).replace(/dist\//g, ""),
);

fs.copyFileSync(
path.join(__dirname, "../README.md"),
path.join(__dirname, "../lib/dist/README.md"),
);

execSync("cd lib/dist && npm publish --provenance --access public");

/** Create GitHub release */
Expand Down

0 comments on commit 9195093

Please sign in to comment.