Skip to content

Commit 8f3c557

Browse files
committed
refactor: remove post-build script
1 parent 5b99890 commit 8f3c557

File tree

5 files changed

+10
-27
lines changed

5 files changed

+10
-27
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"scripts": {
9494
"lint": "eslint --cache .",
9595
"lint:fix": "pnpm run lint --fix",
96-
"build": "tsup && tsx scripts/postbuild.mts",
96+
"build": "tsup",
9797
"dev": "pnpm run -C playground dev",
9898
"test": "vitest",
9999
"release": "bumpp && pnpm publish",
@@ -123,7 +123,7 @@
123123
"eslint-define-config": "^1.22.0",
124124
"fast-glob": "^3.3.1",
125125
"prettier": "^3.0.0",
126-
"tsup": "^7.1.0",
126+
"tsup": "^7.2.0",
127127
"tsx": "^3.12.7",
128128
"typescript": "^5.1.6",
129129
"vite": "^4.4.8",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/postbuild.mts

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ declare global {
88
const jsxRaw: (variable: any) => any
99
}
1010

11-
export default createUnplugin<Options>((options = {}) => {
11+
export default createUnplugin<Options | undefined, false>((options = {}) => {
1212
const opt = resolveOption(options)
1313
const filter = createFilter(opt.include, opt.exclude)
1414

tsup.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { defineConfig } from 'tsup'
22

33
export default defineConfig({
4-
entry: ['./src'],
4+
entry: ['./src/*.ts'],
55
format: ['cjs', 'esm'],
66
target: 'node16.14',
7+
splitting: true,
8+
cjsInterop: true,
79
clean: true,
810
dts: true,
911
})

0 commit comments

Comments
 (0)