Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Package Dependencies & Scaffold Turborepo #480

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
38d78de
feat: update Node, PNPM, TypeScript, NextJS
turnekybc Jan 13, 2025
f645c0d
Merge branch 'main' into bc/turborepo
turnekybc Jan 16, 2025
65931ea
feat: update dependencies and tsconfig
turnekybc Jan 27, 2025
a37e64c
feat: pin GitHub Action SHAs
turnekybc Jan 27, 2025
838673c
Merge branch 'main' into bc/turborepo
turnekybc Jan 27, 2025
a4a7289
Merge branch 'main' into bc/turborepo
turnekybc Jan 27, 2025
0473268
chore: revert generated files
turnekybc Jan 28, 2025
9f59ce6
chore: prettier
turnekybc Jan 28, 2025
f492e12
chore: update lock file
turnekybc Jan 28, 2025
25d7933
chore: update tsconfig and prettier
turnekybc Jan 28, 2025
d9e2ef8
Merge branch 'main' into bc/turborepo
turnekybc Jan 28, 2025
fd9e5e9
chore: update eip-1193 tsconfig
turnekybc Jan 28, 2025
4c4df85
Merge branch 'main' into bc/turborepo
turnekybc Jan 29, 2025
f97a1c8
chore: update lockfile
turnekybc Jan 29, 2025
5e7863c
chore: update ethers
turnekybc Jan 29, 2025
f6db388
Merge branch 'main' into bc/turborepo
turnekybc Jan 29, 2025
61d7598
Merge branch 'main' into bc/turborepo
turnekybc Feb 2, 2025
0765667
chore: update types
turnekybc Feb 2, 2025
810adca
chore: specify node version
turnekybc Feb 2, 2025
5e73b91
chore: specify node version
turnekybc Feb 2, 2025
8e3ca73
chore: specify node version
turnekybc Feb 2, 2025
b3e9fdb
chore: specify node version
turnekybc Feb 2, 2025
ad67724
chore: specify node version
turnekybc Feb 2, 2025
121adbb
chore: specify node version
turnekybc Feb 3, 2025
af0b67b
chore: bump npm version
turnekybc Feb 3, 2025
ea64daa
chore: install latest corepack
turnekybc Feb 3, 2025
b65d010
chore: install latest corepack
turnekybc Feb 3, 2025
c406892
Merge branch 'main' into bc/turborepo
turnekybc Feb 3, 2025
0c1ac5d
chore: pin versions and update dependencies
turnekybc Feb 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/turbo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Turbo

on:
push:
branches: ["main"]
# TODO: remove before shipping
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Install and cache JS toolchain and dependencies (node_modules)
- name: Setup JS
uses: ./.github/actions/js-setup

- name: Build
run: pnpm run build-all

- name: Typecheck
run: pnpm run typecheck-all

- name: Test (prod)
run: anvil & pnpm run test-all
env:
API_PUBLIC_KEY: ${{ secrets.API_PUBLIC_KEY }}
API_PRIVATE_KEY: ${{ secrets.API_PRIVATE_KEY }}
BASE_URL: "https://api.turnkey.com"
ORGANIZATION_ID: ${{ secrets.ORGANIZATION_ID }}
PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }}
EXPECTED_ETH_ADDRESS: ${{ secrets.EXPECTED_ETH_ADDRESS }}
EXPECTED_PRIVATE_KEY_ETH_ADDRESS: ${{ secrets.EXPECTED_PRIVATE_KEY_ETH_ADDRESS }}
EXPECTED_WALLET_ACCOUNT_ETH_ADDRESS: ${{ secrets.EXPECTED_WALLET_ACCOUNT_ETH_ADDRESS }}
BANNED_TO_ADDRESS: "0x6F72eDB2429820c2A0606a9FC3cA364f5E9b2375"
SOLANA_TEST_ORG_API_PRIVATE_KEY: ${{ secrets.SOLANA_TEST_ORG_API_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.WALLET_ID }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.18.2
v22.12.0
5 changes: 4 additions & 1 deletion examples/deployer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"tsBuildInfoFile": "./.cache/.tsbuildinfo"
"tsBuildInfoFile": "./.cache/.tsbuildinfo",
"module": "esnext",
"moduleResolution": "bundler",
"esModuleInterop": true
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"]
}
22 changes: 12 additions & 10 deletions examples/email-auth-local-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@turnkey/example-email-auth",
"name": "@turnkey/example-email-auth-local-storage",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -14,20 +14,22 @@
"@turnkey/encoding": "workspace:*",
"@turnkey/http": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.20",
"npm": "^9.7.2",
"next": "^15.1.4",
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"react-hook-form": "^7.45.1"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"typescript": "5.4.2"
}
}
12 changes: 6 additions & 6 deletions examples/email-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@types/node": "20.3.1",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.20",
"eslint": "^8.56.0",
"eslint-config-next": "^15.1.4",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.20",
"npm": "^9.7.2",
"next": "^15.1.4",
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"typescript": "5.4.2"
}
}
4 changes: 2 additions & 2 deletions examples/email-auth/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand All @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
12 changes: 6 additions & 6 deletions examples/email-recovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
"@turnkey/sdk-server": "workspace:*",
"@turnkey/sdk-browser": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@types/node": "20.3.1",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.20",
"npm": "^9.7.2",
"next": "^15.1.4",
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"typescript": "5.4.2"
}
}
4 changes: 3 additions & 1 deletion examples/export-in-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"tsBuildInfoFile": "./.cache/.tsbuildinfo"
"tsBuildInfoFile": "./.cache/.tsbuildinfo",
"module": "nodenext",
"moduleResolution": "nodenext"
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"]
}
4 changes: 3 additions & 1 deletion examples/import-in-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"tsBuildInfoFile": "./.cache/.tsbuildinfo"
"tsBuildInfoFile": "./.cache/.tsbuildinfo",
"module": "nodenext",
"moduleResolution": "nodenext"
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"]
}
3 changes: 2 additions & 1 deletion examples/kitchen-sink/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"tsBuildInfoFile": "./.cache/.tsbuildinfo"
"tsBuildInfoFile": "./.cache/.tsbuildinfo",
"moduleResolution": "bundler"
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"]
}
14 changes: 7 additions & 7 deletions examples/oauth/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@turnkey/example-otp-auth",
"name": "@turnkey/example-oauth",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -14,20 +14,20 @@
"@react-oauth/google": "^0.12.1",
"@turnkey/sdk-server": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@types/node": "20.3.1",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.20",
"npm": "^9.7.2",
"next": "^15.1.4",
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"typescript": "5.4.2"
}
}
12 changes: 6 additions & 6 deletions examples/otp-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@types/node": "20.3.1",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.20",
"npm": "^9.7.2",
"next": "^15.1.4",
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"typescript": "5.4.2"
}
}
20 changes: 11 additions & 9 deletions examples/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,26 @@
"@turnkey/sdk-browser": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"buffer": "^6.0.3",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"esm": "^3.2.25",
"ethers": "^6.10.0",
"install": "^0.13.0",
"next": "^14.2.20",
"npm": "^9.7.2",
"next": "^15.1.4",
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-international-phone": "^4.3.0",
"sonner": "^1.4.41",
"tweetnacl": "^1.0.3",
"typescript": "5.1.3"
"tweetnacl": "^1.0.3"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/react": "18.2.25",
"@types/react-dom": "18.2.6",
"typescript": "5.4.2"
}
}
4 changes: 2 additions & 2 deletions examples/react-components/src/app/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PublicKey, PublicKeyInitData } from "@solana/web3.js";
import { PublicKey } from "@solana/web3.js";
import nacl from "tweetnacl";
import { Buffer } from "buffer";

import { hashMessage, keccak256, recoverAddress, toUtf8Bytes } from "ethers";
import { keccak256, recoverAddress, toUtf8Bytes } from "ethers";

/**
* Verifies an Ethereum signature and returns the address it was signed with.
Expand Down
3 changes: 2 additions & 1 deletion examples/rebalancer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"tsBuildInfoFile": "./.cache/.tsbuildinfo"
"tsBuildInfoFile": "./.cache/.tsbuildinfo",
"moduleResolution": "bundler"
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"]
}
4 changes: 2 additions & 2 deletions examples/sweeper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/ethers": "workspace:*",
"@uniswap/sdk-core": "^3.1.1",
"@uniswap/sdk-core": "^7.5.0",
"dotenv": "^16.0.3",
"ethers": "^6.10.0",
"hardhat": "^2.12.7",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/prompts": "^2.4.2",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
Loading
Loading