update build

This commit is contained in:
Olivier Chafik 2025-11-21 13:33:41 +00:00
commit c8bdca6935
No known key found for this signature in database
2 changed files with 12 additions and 7 deletions

View file

@ -25,8 +25,9 @@ async function buildJs(
}
await Promise.all([
buildJs("src/app.ts"),
buildJs("src/react/index.tsx", { outdir: "dist/react" }),
buildJs("src/app.ts", { outdir: "dist/src" }),
buildJs("src/app-host.ts", { outdir: "dist/src" }),
buildJs("src/react/index.tsx", { outdir: "dist/src/react" }),
// buildJs("examples/example-ui-react.tsx", { outdir: "dist/examples" }),
// buildJs("examples/example-ui.ts", { outdir: "dist/examples" }),
// buildJs("examples/example-server.ts", {

View file

@ -4,15 +4,19 @@
"version": "1.0.0",
"description": "Hey",
"type": "module",
"main": "./dist/app.js",
"main": "./dist/src/app.js",
"exports": {
".": {
"types": "./dist/app.d.ts",
"default": "./dist/app.js"
"default": "./dist/src/app.js",
"types": "./dist/src/app.d.ts"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
"default": "./dist/src/react/index.js",
"types": "./dist/src/react/index.d.ts"
},
"./app-host": {
"default": "./dist/src/app-host.js",
"types": "./dist/src/app-host.d.ts"
}
},
"scripts": {