update build
This commit is contained in:
parent
a0039ef150
commit
c8bdca6935
2 changed files with 12 additions and 7 deletions
5
build.ts
5
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", {
|
||||
|
|
|
|||
14
package.json
14
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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue