Skip to content

Commit adb3f5a

Browse files
authored
Merge pull request #320 from dajiaji/fix-dnt-ts-for-core
Refine dnt.ts.
2 parents 13727e0 + 4ca2799 commit adb3f5a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

core/dnt.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { build, emptyDir } from "@deno/dnt";
22

33
await emptyDir("./npm");
4+
await emptyDir("./test/runtimes/browsers/node_modules");
5+
await emptyDir("./test/runtimes/bun/node_modules");
6+
await emptyDir("./test/runtimes/cloudflare/node_modules");
47

58
await build({
69
entryPoints: ["./mod.ts"],
@@ -11,7 +14,7 @@ await build({
1114
scriptModule: "umd",
1215
importMap: "./deno.json",
1316
compilerOptions: {
14-
lib: ["es2022", "dom"],
17+
lib: ["ES2022", "DOM"],
1518
},
1619
shims: {
1720
deno: "dev",
@@ -25,9 +28,9 @@ await build({
2528
type: "git",
2629
url: "git+https://github.com/dajiaji/hpke-js.git",
2730
},
28-
homepage: "https://github.com/dajiaji/hpke-js#readme",
31+
homepage: "https://github.com/dajiaji/hpke-js/tree/main/core#readme",
2932
license: "MIT",
30-
main: "./esm/mod.js",
33+
module: "./esm/mod.js",
3134
main: "./script/mod.js",
3235
types: "./esm/mod.d.ts",
3336
sideEffects: false,
@@ -57,5 +60,5 @@ await build({
5760
});
5861

5962
// post build steps
60-
Deno.copyFileSync("../LICENSE", "npm/LICENSE");
63+
Deno.copyFileSync("LICENSE", "npm/LICENSE");
6164
Deno.copyFileSync("README.md", "npm/README.md");

0 commit comments

Comments
 (0)