Skip to content

Commit

Permalink
[wallet-adapter] Rework how wallet adapters are built (MystenLabs#4343)
Browse files Browse the repository at this point in the history
* Rework build process for wallet adapters

* Get wallet adapters building correctly.

* Add module entrypoint

* Add wallet adapter CI

* fix naming
  • Loading branch information
Jordan-Mysten authored Aug 30, 2022
1 parent fbaf750 commit e1d39d6
Show file tree
Hide file tree
Showing 34 changed files with 641 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["sui-explorer", "sui-dapp-sdk"]
"ignore": ["sui-explorer", "sui-dapp-sdk", "demo-nft-dapp"]
}
10 changes: 10 additions & 0 deletions .changeset/fair-tips-ring.md
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.
32 changes: 32 additions & 0 deletions .github/workflows/wallet-adapter.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ storage/

# Node.js
node_modules
.tsbuildinfo
tsconfig.tsbuildinfo

# logs
wallet.log.*
Expand Down
Loading

0 comments on commit e1d39d6

Please sign in to comment.