Skip to content

Commit b8d0b60

Browse files
committed
migrate to wallet version 2
1 parent 4e0484c commit b8d0b60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+9851
-1
lines changed

.claude/browser-wallet-migration.md

Lines changed: 838 additions & 0 deletions
Large diffs are not rendered by default.

.claude/mesh-wallet-migration.md

Lines changed: 779 additions & 0 deletions
Large diffs are not rendered by default.

.eslintrc.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
const { resolve } = require("node:path");
2+
3+
const project = resolve(process.cwd(), "tsconfig.json");
4+
5+
/*
6+
* This is a custom ESLint configuration for use with
7+
* internal (bundled by their consumer) libraries
8+
* that utilize React.
9+
*/
10+
11+
/** @type {import("eslint").Linter.Config} */
12+
module.exports = {
13+
extends: ["eslint:recommended", "prettier", "eslint-config-turbo"],
14+
plugins: ["only-warn"],
15+
globals: {
16+
React: true,
17+
JSX: true,
18+
},
19+
env: {
20+
browser: true,
21+
},
22+
settings: {
23+
"import/resolver": {
24+
typescript: {
25+
project,
26+
},
27+
},
28+
},
29+
ignorePatterns: [
30+
// Ignore dotfiles
31+
".*.js",
32+
"node_modules/",
33+
"dist/",
34+
],
35+
overrides: [
36+
// Force ESLint to detect .tsx files
37+
{ files: ["*.js?(x)", "*.ts?(x)"] },
38+
],
39+
};

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will publish the package to NPM when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Publish Package to NPM
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
registry-url: https://registry.npmjs.org/
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 9
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Build
31+
run: pnpm run build
32+
33+
- name: Publish to NPM
34+
run: npm publish --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
*.tsbuildinfo
7+
8+
# Turbo
9+
.turbo/
10+
11+
# Environment variables
12+
.env
13+
.env.*
14+
!.env.example
15+
16+
# IDE
17+
.vscode/
18+
.idea/
19+
*.swp
20+
*.swo
21+
*~
22+
23+
# OS
24+
.DS_Store
25+
Thumbs.db
26+
27+
# Testing
28+
coverage/
29+
30+
# Logs
31+
*.log
32+
npm-debug.log*
33+
pnpm-debug.log*
34+
35+
# Cache
36+
.cache/

0 commit comments

Comments
 (0)