Skip to content

Commit

Permalink
fix: pre-commit script
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Jul 23, 2022
1 parent 9a7a7ea commit 5012031
Show file tree
Hide file tree
Showing 32 changed files with 304 additions and 591 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm build
pnpm sort
pnpm format
pnpm lint
Expand Down
2 changes: 1 addition & 1 deletion apis/path-finder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/lodash.flatmap": "^4.5.7"
}
Expand Down
2 changes: 1 addition & 1 deletion apis/token-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*"
}
}
6 changes: 3 additions & 3 deletions apis/token-price/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"lint": "eslint --fix ."
},
"dependencies": {
"@sushiswap/chain": "workspace:*",
"@vercel/node": "^2.2.0",
"ioredis": "5.x",
"date-fns": "2.x",
"@sushiswap/chain": "workspace:*"
"ioredis": "5.x"
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions apps/_root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"dependencies": {
"@headlessui/react": "^1.6.0",
"@sushiswap/chain": "workspace:*",
"@sushiswap/core-sdk": "^1.0.0-canary.65",
"@sushiswap/format": "workspace:*",
"@sushiswap/sushi-data": "1.0.26",
"@sushiswap/chain": "workspace:*",
"@sushiswap/ui": "workspace:*",
"next": "^12.1.6",
"numeral": "^2.0.6",
Expand All @@ -26,8 +26,8 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/node": "17.0.31",
"@types/react": "^18.0.9",
Expand Down
4 changes: 2 additions & 2 deletions apps/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"start": "next start"
},
"dependencies": {
"@sushiswap/ui": "workspace:*",
"@sushiswap/graph-client": "workspace:*",
"@sushiswap/ui": "workspace:*",
"graphql": "^16.5.0",
"isomorphic-fetch": "^3.0.0",
"next": "^12.1.6",
Expand All @@ -25,8 +25,8 @@
"@graphql-mesh/transform-rename": "0.12.57",
"@graphql-mesh/transform-type-merging": "0.4.11",
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/node": "^17.0.31",
"@types/react": "^18.0.9",
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"build": "next build --debug",
"generate": "graphql-mesh build",
"dev": "next dev --port 3002",
"generate": "graphql-mesh build",
"lint": "eslint --fix . && next lint",
"start": "next start"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/furo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"build": "next build",
"generate": "graphclient build",
"dev": "next dev -p 3005",
"generate": "graphclient build",
"lint": "eslint --fix . && next lint",
"start": "next start"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/multicall/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/node": "^17.0.30",
"@types/react": "^18.0.9",
Expand Down
4 changes: 2 additions & 2 deletions examples/node-16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"hardhat": "2.x",
"eslint": "8.x",
"hardhat": "2.x",
"prettier": "2.x",
"tsup": "6.x",
"typescript": "4.x"
Expand Down
2 changes: 1 addition & 1 deletion examples/token-lists/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/node": "^17.0.30",
"@types/react": "^18.0.9",
Expand Down
2 changes: 1 addition & 1 deletion examples/wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/node": "17.0.25",
"@types/react": "^18.0.9",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"format": "prettier --write \"**/*.{ts,tsx,md,js,mjs}\"",
"lint": "turbo run lint",
"prepare": "husky install ",
"sort": "sort-package-json 'package.json' 'apis/{,!(node_modules)/**/package.json' 'apps/{,!(node_modules)/**/package.json' 'examples/{,!(node_modules)/**/package.json' 'packages/{,!(node_modules)/**}/package.json' 'protocols/{,!(node_modules)/**/package.json'",
"sort-check": "sort-package-json 'package.json' 'apis/{,!(node_modules)/**/package.json' 'apps/{,!(node_modules)/**/package.json' 'examples/*/package.json' 'packages/{,!(node_modules)/**/package.json' 'protocols/{,!(node_modules)/**/package.json' --check",
"sort": "sort-package-json 'package.json' 'apis/*/package.json' 'apps/*/package.json' 'examples/*/package.json' 'packages/{,!(node_modules)/}**/package.json' 'protocols/{,!(node_modules)/}**/package.json'",
"sort-check": "sort-package-json 'package.json' 'apis/*/package.json' 'apps/*/package.json' 'examples/*/package.json' 'packages/{,!(node_modules)/}**/package.json' 'protocols/{,!(node_modules)/}**/package.json' --check",
"test": "turbo run test --parallel"
},
"lint-staged": {
Expand Down Expand Up @@ -41,9 +41,9 @@
"jest": "^28.1.0",
"lint-staged": "^12.4.1",
"prettier": "^2.6.2",
"sort-package-json": "^1.55.0",
"sort-package-json": "^1.57.0",
"ts-jest": "^28.0.2",
"turbo": "1.2.0"
"turbo": "^1.3.4"
},
"engines": {
"node": ">=16.x",
Expand Down
18 changes: 9 additions & 9 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
"scli": "./dist/index.js"
},
"scripts": {
"start": "ts-node --transpileOnly index.ts",
"build": "tsup index.ts --format esm,cjs --dts",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"dev": "tsup index.ts --format esm,cjs --watch --dts",
"lint": "TIMING=1 eslint . --fix",
"start": "ts-node --transpileOnly index.ts",
"test": "jest --passWithNoTests"
},
"jest": {
"preset": "@sushiswap/jest-config/node"
},
"devDependencies": {
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@sushiswap/log": "workspace:*",
"@sushiswap/format": "workspace:*",
"@sushiswap/chain": "workspace:*",
"@sushiswap/currency": "workspace:*",
"@sushiswap/eslint-config": "workspace:*",
"@sushiswap/format": "workspace:*",
"@sushiswap/graph-client": "workspace:*",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/log": "workspace:*",
"@sushiswap/prettier-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@types/node": "^17.0.31",
"@types/numeral": "^2.0.2",
"chalk": "^4.1.2",
Expand All @@ -44,9 +44,9 @@
"date-fns": "^2.28.0",
"graphql": "^16.5.0",
"numeral": "^2.0.6",
"tsup": "^6.1.3",
"ts-node": "^10.8.2",
"ora": "^6.1.2",
"ts-node": "^10.8.2",
"tsup": "^6.1.3",
"typescript": "^4.0.0"
}
}
Loading

0 comments on commit 5012031

Please sign in to comment.