added treeshake option to build + finalized package json (for now)

This commit is contained in:
dswbx
2024-12-07 17:19:27 +01:00
parent 71dbfc5469
commit 154703f873
2 changed files with 5 additions and 5 deletions

View File

@@ -93,6 +93,7 @@ await tsup.build({
platform: "browser",
format: ["esm", "cjs"],
splitting: false,
treeshake: true,
loader: {
".svg": "dataurl"
}
@@ -112,6 +113,7 @@ await tsup.build({
platform: "browser",
format: ["esm", "cjs"],
splitting: true,
treeshake: true,
loader: {
".svg": "dataurl"
},

View File

@@ -3,7 +3,7 @@
"type": "module",
"sideEffects": false,
"bin": "./dist/cli/index.js",
"version": "0.2.3-rc3",
"version": "0.2.3",
"scripts": {
"build:all": "bun run build && bun run build:cli",
"dev": "vite",
@@ -65,14 +65,12 @@
"@aws-sdk/client-s3": "^3.613.0",
"@hono/vite-dev-server": "^0.17.0",
"@tanstack/react-query-devtools": "^5.59.16",
"@types/diff": "^5.2.3",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
"esbuild-postcss": "^0.0.4",
"node-fetch": "^3.3.2",
"openapi-types": "^12.1.3",
"postcss": "^8.4.47",
"postcss-preset-mantine": "^1.17.0",
@@ -87,8 +85,8 @@
"@hono/node-server": "^1.13.7"
},
"peerDependencies": {
"react": ">=18 <20",
"react-dom": ">=18 <20"
"react": ">=18",
"react-dom": ">=18"
},
"main": "./dist/index.js",
"module": "./dist/index.js",