We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d619369 commit 86afa2aCopy full SHA for 86afa2a
scripts/build_npm.ts
@@ -25,6 +25,7 @@ await build({
25
packageManager: "pnpm",
26
compilerOptions: {
27
lib: ["DOM", "ESNext"],
28
+ sourceMap: false,
29
},
30
typeCheck: "both",
31
package: {
@@ -51,8 +52,11 @@ await build({
51
52
53
sideEffects: false,
54
- postBuild() {
55
- Deno.copyFileSync("LICENSE", "npm/LICENSE");
56
- Deno.copyFileSync("README.md", "npm/README.md");
+ async postBuild() {
+ await Deno.copyFile("LICENSE", "npm/LICENSE");
57
+ await Deno.copyFile("README.md", "npm/README.md");
58
+ using npmIgnoreFile = await Deno.open("npm/.npmignore", { append: true });
59
+ const data = new TextEncoder().encode("deps/" + "\n" + "*.map" + "\n");
60
+ npmIgnoreFile.write(data);
61
62
});
0 commit comments