1
1
import { build , emptyDir } from "@deno/dnt" ;
2
2
3
3
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" ) ;
4
7
5
8
await build ( {
6
9
entryPoints : [ "./mod.ts" ] ,
@@ -11,7 +14,7 @@ await build({
11
14
scriptModule : "umd" ,
12
15
importMap : "./deno.json" ,
13
16
compilerOptions : {
14
- lib : [ "es2022 " , "dom " ] ,
17
+ lib : [ "ES2022 " , "DOM " ] ,
15
18
} ,
16
19
shims : {
17
20
deno : "dev" ,
@@ -25,9 +28,9 @@ await build({
25
28
type : "git" ,
26
29
url : "git+https://github.com/dajiaji/hpke-js.git" ,
27
30
} ,
28
- homepage : "https://github.com/dajiaji/hpke-js#readme" ,
31
+ homepage : "https://github.com/dajiaji/hpke-js/tree/main/core #readme" ,
29
32
license : "MIT" ,
30
- main : "./esm/mod.js" ,
33
+ module : "./esm/mod.js" ,
31
34
main : "./script/mod.js" ,
32
35
types : "./esm/mod.d.ts" ,
33
36
sideEffects : false ,
@@ -57,5 +60,5 @@ await build({
57
60
} ) ;
58
61
59
62
// post build steps
60
- Deno . copyFileSync ( "../ LICENSE" , "npm/LICENSE" ) ;
63
+ Deno . copyFileSync ( "LICENSE" , "npm/LICENSE" ) ;
61
64
Deno . copyFileSync ( "README.md" , "npm/README.md" ) ;
0 commit comments