Skip to content

Commit b3ea952

Browse files
fix(solid): build entries
1 parent f7da11f commit b3ea952

File tree

4 files changed

+228
-19
lines changed

4 files changed

+228
-19
lines changed

packages/solid/build.config.ts

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

packages/solid/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,20 @@
2929
".": {
3030
"types": "./dist/index.d.ts",
3131
"require": "./dist/index.cjs",
32-
"import": "./dist/index.mjs"
32+
"import": "./dist/index.js"
33+
},
34+
"./solid": {
35+
"import": "./dist/index.jsx"
3336
}
3437
},
3538
"main": "./dist/index.cjs",
36-
"module": "./dist/index.mjs",
39+
"module": "./dist/index.js",
3740
"types": "./dist/index.d.ts",
3841
"files": [
3942
"dist"
4043
],
4144
"scripts": {
42-
"build": "unbuild",
45+
"build": "tsup",
4346
"dev": "pnpm -C playground run dev",
4447
"dev:build": "pnpm -C playground run build",
4548
"test:types": "tsc --noEmit"
@@ -53,6 +56,8 @@
5356
"devDependencies": {
5457
"@types/node": "^18.16.0",
5558
"solid-js": "^1.7.3",
59+
"tsup": "^6.7.0",
60+
"tsup-preset-solid": "^0.1.8",
5661
"vite-plugin-solid": "^2.7.0"
5762
}
5863
}

packages/solid/tsup.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'tsup-preset-solid'
2+
3+
export default defineConfig(
4+
{
5+
entry: 'src/index.tsx',
6+
},
7+
{
8+
cjs: true,
9+
},
10+
)

0 commit comments

Comments
 (0)