Skip to content

Commit

Permalink
fix(tsup): mark cosmjs and keplr-wallet scoped as external
Browse files Browse the repository at this point in the history
  • Loading branch information
Griko Nibras committed Sep 22, 2022
1 parent 5aba4ff commit 69ca316
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/graz/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ export default defineConfig(({ watch }) => ({
clean: !watch,
dts: true,
entry: ["src/*.ts"],
external: [...Object.keys(packageJson.dependencies), ...Object.keys(packageJson.peerDependencies)],
external: [
...Object.keys(packageJson.dependencies),
...Object.keys(packageJson.peerDependencies),
/^@cosmjs\/.*/,
/^@keplr-wallet\/.*/,
],
format: ["cjs", "esm"],
inject: ["./inject-react.js"],
minify: !watch,
Expand Down

0 comments on commit 69ca316

Please sign in to comment.