diff --git a/build.ts b/build.ts index c32f431..bd19d15 100644 --- a/build.ts +++ b/build.ts @@ -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", { diff --git a/package.json b/package.json index 2cf7754..b152962 100644 --- a/package.json +++ b/package.json @@ -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": {