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([ await Promise.all([
buildJs("src/app.ts"), buildJs("src/app.ts", { outdir: "dist/src" }),
buildJs("src/react/index.tsx", { outdir: "dist/react" }), 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-react.tsx", { outdir: "dist/examples" }),
// buildJs("examples/example-ui.ts", { outdir: "dist/examples" }), // buildJs("examples/example-ui.ts", { outdir: "dist/examples" }),
// buildJs("examples/example-server.ts", { // buildJs("examples/example-server.ts", {

View file

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