Skip to content

Commit

Permalink
fix: remove react exports from main index file [LIVE-10438] (#272)
Browse files Browse the repository at this point in the history
* fix: remove react exports from main index file

* chore: add changelog
  • Loading branch information
Justkant authored Dec 6, 2023
1 parent 0bd66f5 commit e6da3b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/pretty-cooks-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@ledgerhq/wallet-api-server": patch
---

fix: remove react exports from main index file

A React hooks was exported, making it impossible to import the server code from the main index file in other frameworks
3 changes: 1 addition & 2 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./types";
export * from "./WalletAPIServer";
export * from "./react";
export * from "./types";

2 comments on commit e6da3b3

@vercel
Copy link

@vercel vercel bot commented on e6da3b3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wallet-api – ./apps/docs

wallet-api-ledgerhq.vercel.app
wallet-api-git-main-ledgerhq.vercel.app
wallet.api.live.ledger.com

@vercel
Copy link

@vercel vercel bot commented on e6da3b3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wallet-api-wallet-api-tools – ./apps/wallet-api-tools

wallet-api-wallet-api-tools.vercel.app
wallet-api-wallet-api-tools-git-main-ledgerhq.vercel.app
wallet-api-wallet-api-tools-ledgerhq.vercel.app

Please sign in to comment.