Skip to content

Commit

Permalink
npmignore testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Feb 8, 2023
1 parent 9372fd2 commit a9cb617
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@ await build({

// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
Deno.copyFileSync("README.md", "npm/README.md");

// npmignore test data
// ensure the test data is ignored in the `.npmignore` file
// so it doesn't get published with your npm package
await Deno.writeTextFile(
"npm/.npmignore",
"esm/tests/data\nscript/tests/data\n",
{ append: true },
);

0 comments on commit a9cb617

Please sign in to comment.