Skip to content

Commit

Permalink
Merge branch 'main' into zklogin
Browse files Browse the repository at this point in the history
  • Loading branch information
olehmisar committed Dec 14, 2024
2 parents 623639f + 1bcc6f1 commit 09bbb6a
Show file tree
Hide file tree
Showing 8 changed files with 1,634 additions and 61 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,24 @@ jobs:
name: Verify
uses: ./.github/workflows/verify.yml
secrets: inherit

size:
name: Size
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install dependencies
uses: ./.github/actions/install-dependencies

- name: Report bundle size
uses: andresz1/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: pnpm

28 changes: 27 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,30 @@ jobs:
with:
commit_message: 'chore: format'
commit_user_name: 'github-actions[bot]'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'

build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install dependencies
uses: ./.github/actions/install-dependencies

- name: Build
run: pnpm build

- name: Check build
run: pnpm check:build

- name: Check for unused files, dependencies, and exports
run: pnpm check:knip

- name: Check size
run: pnpm check:size
1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"dependencies": {
"@upstash/ratelimit": "^2.0.4",
"@upstash/redis": "^1.34.3",
"@vercel/functions": "^1.5.0",
"next": "^15",
"react": "catalog:",
"react-dom": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion examples/wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"dependencies": {
"@tanstack/react-query": "catalog:",
"ox": "^0.2.2",
"porto": "workspace:*",
"react": "catalog:",
"react-dom": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion examples/wagmi/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Porto } from 'porto'
import { http, createConfig, createStorage } from 'wagmi'
import { odysseyTestnet } from 'wagmi/chains'

export const porto = Porto.create()
Porto.create()

export const wagmiConfig = createConfig({
chains: [odysseyTestnet],
Expand Down
27 changes: 19 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
"changeset:publish": "pnpm changeset:prepublish && changeset publish",
"changeset:version": "changeset version && pnpm format",
"check": "biome check . --fix --unsafe",
"check:build": "tsx ./scripts/prepublish.ts && publint --strict ./src && attw --pack ./src --profile esm-only",
"check:knip": "knip --production",
"check:repo": "sherif",
"check:size": "size-limit",
"check:types": "tsc --noEmit",
"clean": "rm -rf src/_dist src/Chains src/Porto src/wagmi ./tsconfig.build.tsbuildinfo src/tsconfig.build.tsbuildinfo",
"deps": "pnpx taze -r",
"dev": "pnpm preconstruct && pnpm --filter playground dev",
"dev:wagmi": "pnpm preconstruct && pnpm --filter wagmi-example dev",
"knip": "knip --production",
"format": "biome format --write",
"postinstall": "pnpm preconstruct",
"preconstruct": "tsx ./scripts/preconstruct.ts",
Expand All @@ -26,16 +28,20 @@
"@shield-labs/zklogin": "^0.6.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@biomejs/biome": "^1.8.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.7",
"@size-limit/preset-big-lib": "^11.1.6",
"@tanstack/react-query": "catalog:",
"@types/node": "^22.5.4",
"@types/react": "catalog:",
"@wagmi/cli": "^2.1.18",
"knip": "^5.30.6",
"publint": "^0.2.12",
"sherif": "^0.11.0",
"simple-git-hooks": "^2.11.1",
"size-limit": "^11.1.6",
"tsx": "^4.17.0",
"typescript": "catalog:",
"viem": "catalog:",
Expand All @@ -49,12 +55,17 @@
"pre-commit": "pnpm check"
},
"knip": {
"ignore": [".github/**", "scripts/**", "src/_test/**", "src/package.json"],
"ignoreBinaries": ["dev", "only-allow", "printf"],
"workspaces": {
"src": {
"entry": ["index.ts!"]
}
"entry": ["src/{index,actions,query,wagmi}.ts!"],
"project": ["src/**"],
"ignore": ["src/internal/**", "src/generated.ts"],
"ignoreDependencies": ["@tanstack/react-query", "react", "wagmi"]
},
"size-limit": [
{
"name": "import * from 'ox'",
"path": "./src/_dist/index.js",
"import": "*",
"limit": "54 kB"
}
}
]
}
4 changes: 2 additions & 2 deletions playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { zklogin } from '@shield-labs/zklogin'
import { serializeKeys } from '../../src/internal/accountDelegation'
import { ExperimentERC20 } from './contracts'

export const porto = Porto.create()
const porto = Porto.create()

const client = createClient({
transport: custom(porto.provider),
Expand Down Expand Up @@ -865,7 +865,7 @@ function SignTypedData() {
)
}

export const typedData = {
const typedData = {
domain: {
name: 'Ether Mail 🥵',
version: '1.1.1',
Expand Down
Loading

0 comments on commit 09bbb6a

Please sign in to comment.