File tree 2 files changed +10
-23
lines changed
2 files changed +10
-23
lines changed Original file line number Diff line number Diff line change 41
41
"ts-jest" : " ^29.0.0" ,
42
42
"typescript" : " ^5.0.0"
43
43
},
44
- "peerDependencies" : {},
45
44
"jest" : {
46
45
"transform" : {
47
46
"^.+\\ .(ts|tsx)$" : [
Original file line number Diff line number Diff line change @@ -35,27 +35,16 @@ async function main() {
35
35
36
36
const entryPoints = [ "./pkg/dist-src/index.js" ] ;
37
37
38
- await Promise . all ( [
39
- // Build the a CJS Node.js bundle
40
- esbuild . build ( {
41
- entryPoints,
42
- outdir : "pkg/dist-node" ,
43
- bundle : true ,
44
- platform : "node" ,
45
- target : "node18" ,
46
- format : "cjs" ,
47
- ...sharedOptions ,
48
- } ) ,
49
- // Build an ESM browser bundle
50
- esbuild . build ( {
51
- entryPoints,
52
- outdir : "pkg/dist-web" ,
53
- bundle : true ,
54
- platform : "browser" ,
55
- format : "esm" ,
56
- ...sharedOptions ,
57
- } ) ,
58
- ] ) ;
38
+ // Build a CJS Node.js bundle
39
+ await esbuild . build ( {
40
+ entryPoints,
41
+ outdir : "pkg/dist-node" ,
42
+ bundle : true ,
43
+ platform : "node" ,
44
+ target : "node14" ,
45
+ format : "cjs" ,
46
+ ...sharedOptions ,
47
+ } ) ;
59
48
60
49
// Copy the README, LICENSE to the pkg folder
61
50
await copyFile ( "LICENSE" , "pkg/LICENSE" ) ;
@@ -75,7 +64,6 @@ async function main() {
75
64
...pkg ,
76
65
files : [ "dist-*/**" , "bin/**" ] ,
77
66
main : "dist-node/index.js" ,
78
- browser : "dist-web/index.js" ,
79
67
types : "dist-types/index.d.ts" ,
80
68
module : "dist-src/index.js" ,
81
69
sideEffects : false ,
You can’t perform that action at this time.
0 commit comments