Skip to content

Commit 784b678

Browse files
committed
fix: build
1 parent c1d1307 commit 784b678

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

node.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './dist/node'
1+
export * from './dist/index'

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
"sideEffects": false,
3535
"scripts": {
3636
"dev": "esmo playground/main.ts",
37-
"build": "MODE=node tsup && mv dist/index.d.ts dist/node.d.ts && MODE=modern tsup",
37+
"build": "pnpm run build:lib && pnpm run build:types",
38+
"build:lib": "MODE=node tsup && MODE=modern tsup",
39+
"build:types": "tsc --emitDeclarationOnly --declaration",
3840
"docs:build": "typedoc",
3941
"docs:preview": "serve docs",
4042
"lint": "eslint . --ext .js,.ts,.yml,.yaml,.md,.json,.json5",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "ES2019",
44
"module": "ES2015",
55
"lib": ["ES2019"],
6+
"outDir": "dist",
67
"esModuleInterop": true,
78
"forceConsistentCasingInFileNames": true,
89
"strict": true,

tsup.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const $r = resolve.bind(undefined, __dirname)
77
const common: Options = {
88
entry: [$r('src/index.ts')],
99
sourcemap: true,
10-
dts: true,
1110
}
1211

1312
export default defineConfig(() => {

0 commit comments

Comments
 (0)