Skip to content

Commit bf19ffe

Browse files
authored
Merge pull request #13 from Hyphen/feat-adding-in-jsx-support-on-build
feat: adding in jsx support on build
2 parents b840c30 + d3c9c0c commit bf19ffe

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"lint": "biome check --write --error-on-warnings",
1616
"test": "pnpm lint && vitest run --coverage",
1717
"test:ci": "biome check --error-on-warnings && vitest run --coverage",
18-
"build": "rimraf ./dist && tsup src/index.ts --format esm --dts",
18+
"build": "tsup",
1919
"clean": "rimraf ./dist pnpm-lock.yaml node_modules coverage",
20-
"prepare": "rimraf ./dist && pnpm build"
20+
"prepare": "pnpm build"
2121
},
2222
"keywords": [
2323
"hyphen",

tsup.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsup';
2+
3+
export default defineConfig({
4+
entry: ['src/index.ts'],
5+
format: ['esm'],
6+
dts: true,
7+
clean: true,
8+
esbuildOptions(options) {
9+
options.jsx = 'automatic';
10+
},
11+
});

0 commit comments

Comments
 (0)