mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 19:59:37 +00:00
chore: update npm build script to remove source maps and dev deps
This commit is contained in:
parent
d619369869
commit
86afa2a01e
1 changed files with 7 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ await build({
|
|||
packageManager: "pnpm",
|
||||
compilerOptions: {
|
||||
lib: ["DOM", "ESNext"],
|
||||
sourceMap: false,
|
||||
},
|
||||
typeCheck: "both",
|
||||
package: {
|
||||
|
|
@ -51,8 +52,11 @@ await build({
|
|||
},
|
||||
sideEffects: false,
|
||||
},
|
||||
postBuild() {
|
||||
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
||||
Deno.copyFileSync("README.md", "npm/README.md");
|
||||
async postBuild() {
|
||||
await Deno.copyFile("LICENSE", "npm/LICENSE");
|
||||
await Deno.copyFile("README.md", "npm/README.md");
|
||||
using npmIgnoreFile = await Deno.open("npm/.npmignore", { append: true });
|
||||
const data = new TextEncoder().encode("deps/" + "\n" + "*.map" + "\n");
|
||||
npmIgnoreFile.write(data);
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue