Skip to content

Commit

Permalink
Turbo repo
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 21, 2024
1 parent 6cfb07e commit 5970490
Show file tree
Hide file tree
Showing 14 changed files with 241 additions and 91 deletions.
3 changes: 1 addition & 2 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"homepage": "kit",
"type": "module",
"scripts": {
"dev": "pnpm start",
"start": "vite",
"dev": "vite",
"build": "vite build && touch ./dist/.nojekyll",
"serve": "vite preview",
"typecheck": "tsc --noEmit"
Expand Down
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"license": "Apache-2.0",
"sideEffects": false,
"scripts": {
"build": "turbo build",
"clean": "rimraf -g ./**/node_modules",
"dist:clean": "rimraf -g ./packages/**/dist",
"test": "pnpm -r test",
"dev": "turbo run dev --filter=./examples/react",
"build": "turbo run build --filter={packages/kit}",
"build:clean": "turbo run build:clean",
"reinstall": "rimraf -g ./**/node_modules && pnpm install",
"test": "turbo run test",
"lint": "eslint -c .eslintrc.js 'packages/**/src/**/*.{ts,tsx}'",
"lint:fix": "eslint -c .eslintrc.js --fix 'packages/**/src/**/*.{ts,tsx}'",
"format": "prettier --list-different --write './{packages,examples}/*/src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -47,12 +48,9 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"turbo": "1.13.3",
"typescript": "~5.4.5",
"wagmi": "^2.5.20"
},
"resolutions": {},
"workspaces": [
"packages/*",
"examples/*"
]
"resolutions": {}
}
30 changes: 21 additions & 9 deletions packages/checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,29 @@
"version": "2.6.1",
"description": "Checkout UI for Sequence Kit",
"repository": "https://github.com/0xsequence/kit/tree/master/packages/checkout",
"main": "dist/0xsequence-kit-checkout.cjs.js",
"module": "dist/0xsequence-kit-checkout.esm.js",
"types": "dist/0xsequence-kit-checkout.cjs.d.ts",
"author": "Horizon Blockchain Games",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"files": [
"src",
"dist"
],
"scripts": {
"build": "echo 'hi'",
"build": "pnpm build:clean && pnpm build:esm && pnpm build:cjs && pnpm build:types",
"build:cjs": "tsc --module commonjs --outDir dist/cjs/",
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist/types/",
"build:clean": "rimraf -g ./dist",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down Expand Up @@ -42,9 +58,5 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"wagmi": "^2.5.20"
},
"files": [
"src",
"dist"
]
}
}
38 changes: 16 additions & 22 deletions packages/checkout/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
{
"compilerOptions": {
"target": "es2021",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"typeRoots": [
"node_modules/@types",
"src/types"
],
"types": [
"node"
],
"baseUrl": "./",
"paths": {
"~/*": ["src/*"]
}
// "verbatimModuleSyntax": true,
"strict": true,
// "noUncheckedIndexedAccess": true,
// "noImplicitOverride": true,
"module": "ESNext",
"moduleResolution": "Node",
"sourceMap": true,
"declaration": false,
// "composite": true,
// "declarationMap": true,
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
30 changes: 21 additions & 9 deletions packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,29 @@
"version": "2.6.1",
"description": "Wallets for Sequence Kit",
"repository": "https://github.com/0xsequence/kit/tree/master/packages/connectors",
"main": "dist/0xsequence-kit-connectors.cjs.js",
"module": "dist/0xsequence-kit-connectors.esm.js",
"types": "dist/0xsequence-kit-connectors.cjs.d.ts",
"author": "Horizon Blockchain Games",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"files": [
"src",
"dist"
],
"scripts": {
"build": "echo 'hi'",
"build": "pnpm build:clean && pnpm build:esm && pnpm build:cjs && pnpm build:types",
"build:cjs": "tsc --module commonjs --outDir dist/cjs/",
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist/types/",
"build:clean": "rimraf -g ./dist",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand All @@ -34,9 +50,5 @@
"uuid": ">=8.3.2",
"viem": ">=2.0.0",
"wagmi": ">=2.0.0"
},
"files": [
"src",
"dist"
]
}
}
24 changes: 24 additions & 0 deletions packages/connectors/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
// "verbatimModuleSyntax": true,
"strict": true,
// "noUncheckedIndexedAccess": true,
// "noImplicitOverride": true,
"module": "ESNext",
"moduleResolution": "Node",
"sourceMap": true,
"declaration": false,
// "composite": true,
// "declarationMap": true,
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
20 changes: 16 additions & 4 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,29 @@
"wallet"
],
"repository": "https://github.com/0xsequence/kit/tree/master/packages/kit",
"main": "dist/0xsequence-kit.cjs.js",
"module": "dist/0xsequence-kit.esm.js",
"types": "dist/0xsequence-kit.cjs.d.ts",
"author": "Horizon Blockchain Games",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"files": [
"src",
"dist"
],
"scripts": {
"build": "echo 'hi'",
"build": "pnpm build:clean && pnpm build:esm && pnpm build:cjs && pnpm build:types",
"build:cjs": "tsc --module commonjs --outDir dist/cjs/",
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist/types/",
"build:clean": "rimraf -g ./dist",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ import { KitConnectProviderProps } from '../index'
import { Banner } from './Banner'
import { ExtendedWalletList } from './ExtendedWalletList'

declare global {
interface Window {
ethereum: any
}
}

interface ConnectWalletContentProps extends KitConnectProviderProps {
openConnectModal: boolean
setOpenConnectModal: React.Dispatch<React.SetStateAction<boolean>>
Expand Down
24 changes: 24 additions & 0 deletions packages/kit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
// "verbatimModuleSyntax": true,
"strict": true,
// "noUncheckedIndexedAccess": true,
// "noImplicitOverride": true,
"module": "ESNext",
"moduleResolution": "Node",
"sourceMap": true,
"declaration": false,
// "composite": true,
// "declarationMap": true,
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
30 changes: 21 additions & 9 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,29 @@
"version": "2.6.1",
"description": "Wallet UI for Sequence Kit",
"repository": "https://github.com/0xsequence/kit/tree/master/packages/wallet",
"main": "dist/0xsequence-kit-wallet.cjs.js",
"module": "dist/0xsequence-kit-wallet.esm.js",
"types": "dist/0xsequence-kit-wallet.cjs.d.ts",
"author": "Horizon Blockchain Games",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"files": [
"src",
"dist"
],
"scripts": {
"build": "echo 'hi'",
"build": "pnpm build:clean && pnpm build:esm && pnpm build:cjs && pnpm build:types",
"build:cjs": "tsc --module commonjs --outDir dist/cjs/",
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist/types/",
"build:clean": "rimraf -g ./dist",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down Expand Up @@ -46,9 +62,5 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"wagmi": "^2.5.20"
},
"files": [
"src",
"dist"
]
}
}
38 changes: 16 additions & 22 deletions packages/wallet/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
{
"compilerOptions": {
"target": "es2021",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"typeRoots": [
"node_modules/@types",
"src/types"
],
"types": [
"node"
],
"baseUrl": "./",
"paths": {
"~/*": ["src/*"]
}
// "verbatimModuleSyntax": true,
"strict": true,
// "noUncheckedIndexedAccess": true,
// "noImplicitOverride": true,
"module": "ESNext",
"moduleResolution": "Node",
"sourceMap": true,
"declaration": false,
// "composite": true,
// "declarationMap": true,
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
Loading

0 comments on commit 5970490

Please sign in to comment.