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([
|
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", {
|
||||||
|
|
|
||||||
14
package.json
14
package.json
|
|
@ -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": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue