Skip to content

Commit

Permalink
chore: bundle codecs package in sdk's (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez authored Dec 20, 2024
1 parent 8061ce8 commit 0262aad
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/idos-example-dapp/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"typescript": "^5.0.2"
},
"dependencies": {
"@idos-network/idos-sdk-server-dapp": "workspace:*"
"@idos-network/grantee-sdk-js": "workspace:*"
},
"peerDependencies": {
"ethers": "^6.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/idos-sdk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
},
"devDependencies": {
"@dotenvx/dotenvx": "^1.6.4",
"@idos-network/codecs": "workspace:*",
"@idos-network/idos-sdk-types": "workspace:*",
"@near-js/types": "^0.2.1",
"@near-wallet-selector/core": "8.9.10",
Expand All @@ -58,7 +59,6 @@
"dependencies": {
"@digitalbazaar/ed25519-signature-2020": "^5.2.0",
"@digitalbazaar/ed25519-verification-key-2020": "^4.1.0",
"@idos-network/codecs": "workspace:*",
"@digitalbazaar/vc": "^6.0.2",
"@kwilteam/kwil-js": "0.7.1",
"es-toolkit": "^1.23.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/idos-sdk-js/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ export default defineConfig({
env: config().parsed,
format: ["esm"],
outDir: "./dist",
bundle: true,
noExternal: ["@idos-network/codecs"],
});
2 changes: 1 addition & 1 deletion packages/issuer-sdk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"test:build": "pnpx publint --strict"
},
"devDependencies": {
"@idos-network/codecs": "workspace:*",
"@idos-network/idos-sdk-types": "workspace:*",
"@idos-network/kwil-nep413-signer": "workspace:*",
"@release-it/keep-a-changelog": "^5.0.0",
Expand All @@ -58,7 +59,6 @@
"vitest": "^0.31.4"
},
"dependencies": {
"@idos-network/codecs": "workspace:*",
"@kwilteam/kwil-js": "0.7.1",
"es-toolkit": "^1.23.0",
"tiny-invariant": "^1.3.3",
Expand Down
6 changes: 5 additions & 1 deletion packages/issuer-sdk-js/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ export default defineConfig({
outDir: "./dist",
bundle: true,
dts: true,
noExternal: ["@idos-network/kwil-nep413-signer", "@idos-network/idos-sdk-types"],
noExternal: [
"@idos-network/kwil-nep413-signer",
"@idos-network/idos-sdk-types",
"@idos-network/codecs",
],
});
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 0262aad

Please sign in to comment.