Skip to content

Commit 88af429

Browse files
committed
fix build
1 parent 844e636 commit 88af429

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ async function main() {
2525
declaration: true,
2626
emitDeclarationOnly: true,
2727
skipLibCheck: true,
28-
module: "commonjs",
29-
target,
28+
module: ts.ModuleKind.CommonJS,
29+
target: ts.ScriptTarget.ES2017,
3030
outDir: outdir,
3131
esModuleInterop: true,
3232
experimentalDecorators: true,

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"exports": {
99
".": {
1010
"import": {
11-
"default": "./build/index.mjs",
12-
"types": "./build/index.d.ts"
11+
"types": "./build/index.d.ts",
12+
"default": "./build/index.mjs"
1313
},
1414
"require": {
15-
"default": "./build/index.js",
16-
"types": "./build/index.d.ts"
15+
"types": "./build/index.d.ts",
16+
"default": "./build/index.js"
1717
}
1818
}
1919
},

0 commit comments

Comments
 (0)