Skip to content

Commit

Permalink
DEV-1138 changes for cdn bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
michalstruck committed Oct 11, 2024
1 parent d8aba1e commit 19dbdc7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@
"miniapps"
],
"scripts": {
"build": "tsup",
"build:default": "tsup --format esm,cjs --out-dir ./build/default --external @worldcoin/idkit-core,abitype",
"build:bundled-deps": "tsup --format esm,cjs --out-dir ./build/bundled-deps --external @worldcoin/idkit-core,abitype",
"build": "pnpm run build:default && pnpm run build:bundled-deps",
"dev": "tsup --watch",
"lint": "eslint ./ --ext .ts",
"prepublishOnly": "npm run build",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@worldcoin/idkit-core": "^1.3.0",
"abitype": "^1.0.6",
"turbo": "^2.1.1"
},
"devDependencies": {
"turbo": "^2.1.1",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
Expand All @@ -60,7 +59,9 @@
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
"peerDependencies": {
"devDependencies": {
"@worldcoin/idkit-core": "^1.3.0",
"viem": "^2.0.0"
}
},
"peerDependencies": {}
}
1 change: 1 addition & 0 deletions src/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineConfig({
dts: true,
clean: true,
outDir: "build",
splitting: false,
format: ["esm", "cjs"],
external: ["@worldcoin/idkit-core"],
entry: ["index.ts"],
Expand Down

0 comments on commit 19dbdc7

Please sign in to comment.