Skip to content

Commit

Permalink
Only bundle what's necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Jun 26, 2024
1 parent 436703b commit 4fcf176
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@types/jest": "^29.5.3",
"@types/testing-library__jest-dom": "5.14.8",
"axios": "^0.27.0",
"clean-package": "^2.2.0",
"eslint-plugin-testing-library": "5.5.1",
"ethers": "^5.7.0",
"jest": "^29.6.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/chakra-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {
"lint": "tsc",
"build": "tsup src --dts",
"build": "tsup --config ../tsup.config.ts",
"prepack": "clean-package",
"clean": "rm -rf dist .turbo node_modules",
"postpack": "mv -fv package.json.backup package.json"
Expand Down Expand Up @@ -82,7 +82,6 @@
"@types/react": "^18.0.30",
"@types/react-dom": "^18.0.11",
"@vocdoni/sdk": "~0.8.2",
"clean-package": "^2.2.0",
"date-fns": "^2.29.3",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/extended-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {
"lint": "tsc",
"build": "tsup src --dts",
"build": "tsup --config ../tsup.config.ts",
"prepack": "clean-package",
"clean": "rm -rf dist .turbo node_modules",
"postpack": "mv -fv package.json.backup package.json"
Expand Down
7 changes: 4 additions & 3 deletions packages/rainbowkit-wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,23 @@
],
"scripts": {
"lint": "tsc",
"build": "tsup src --dts",
"build": "tsup --config ../tsup.config.ts",
"prepack": "clean-package",
"clean": "rm -rf dist .turbo node_modules",
"postpack": "mv -fv package.json.backup package.json"
},
"peerDependencies": {
"@rainbow-me/rainbowkit": "^1.2.0",
"@wagmi/core": "^1.4.6",
"wagmi": "^1.4.6"
"wagmi": "^1.4.6",
"react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18",
"react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18"
},
"devDependencies": {
"@rainbow-me/rainbowkit": "^1.2.0",
"@types/crypto-js": "^4.2.2",
"@types/react-modal": "^3.16.0",
"@wagmi/core": "^1.4.6",
"clean-package": "^2.2.0",
"localforage": "^1.10.0",
"react-modal": "^3.16.1",
"tsconfig": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {
"lint": "tsc",
"build": "tsup src --dts",
"build": "tsup --config ../tsup.config.ts",
"prepack": "clean-package",
"clean": "rm -rf dist .turbo node_modules",
"postpack": "mv -fv package.json.backup package.json"
Expand Down
2 changes: 2 additions & 0 deletions packages/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { defineConfig } from 'tsup'
export default defineConfig({
format: ['cjs', 'esm'],
target: 'esnext',
dts: true,
sourcemap: false,
entry: ['src/index.ts'],
})

0 comments on commit 4fcf176

Please sign in to comment.