forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wallet-adapter] Rework how wallet adapters are built (MystenLabs#4343)
* Rework build process for wallet adapters * Get wallet adapters building correctly. * Add module entrypoint * Add wallet adapter CI * fix naming
- Loading branch information
1 parent
fbaf750
commit e1d39d6
Showing
34 changed files
with
641 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@mysten/wallet-adapter-all-wallets": patch | ||
"@mysten/wallet-adapter-base": patch | ||
"@mysten/wallet-adapter-mock-wallet": patch | ||
"@mysten/wallet-adapter-sui-wallet": patch | ||
"@mysten/wallet-adapter-react": patch | ||
"@mysten/wallet-adapter-react-ui": patch | ||
--- | ||
|
||
Update build process for wallet adapters to expose ES modules as well as CommonJS builds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Wallet Adapter PR Checks | ||
on: pull_request | ||
jobs: | ||
diff: | ||
runs-on: [ubuntu-latest] | ||
outputs: | ||
isWalletAdapter: ${{ steps.diff.outputs.isWalletAdapter }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Detect Changes | ||
uses: "./.github/actions/pnpm-diffs" | ||
id: diff | ||
ci: | ||
name: Build | ||
needs: diff | ||
if: needs.diff.outputs.isWalletAdapter == 'true' | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
- name: Install Nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Build | ||
run: pnpm --filter sui-wallet-adapter build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ storage/ | |
|
||
# Node.js | ||
node_modules | ||
.tsbuildinfo | ||
tsconfig.tsbuildinfo | ||
|
||
# logs | ||
wallet.log.* | ||
|
Oops, something went wrong.