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

fix: pre commit hooks broken #133

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"lint": "tsc && eslint . && prettier -c .",
"test": "vitest --run test && yarn lint",
"build": "vite build",
"prepack": "yarn build",
"prepublish": "yarn test"
"prepack": "yarn build && pinst --disable",
"prepublish": "yarn test",
"postinstall": "husky install",
"postpack": "pinst --enable"
},
"type": "module",
"main": "./dist/ftrack-javascript-api.umd.cjs",
Expand All @@ -29,9 +31,11 @@
"dayjs": "^1.11.8",
"eslint": "^8.43.0",
"eslint-config-react-app": "^7.0.1",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.2",
"msw": "^1.2.2",
"pinst": "^3.0.0",
"prettier": "^2.8.8",
"typescript": "^5.1.3",
"vite": "^4.3.9",
Expand Down Expand Up @@ -59,8 +63,8 @@
"uuid": "^9.0.0"
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,css,md,json,jsx,scss,yml}": "prettier --write"
"*.{js,ts}": "eslint --cache --fix --max-warnings=0",
"*.{js,ts,css,md,json,jsx,scss,yml}": "prettier --write"
},
"packageManager": "yarn@3.6.1"
}
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1810,11 +1810,13 @@ __metadata:
dayjs: ^1.11.8
eslint: ^8.43.0
eslint-config-react-app: ^7.0.1
husky: ^8.0.3
jsdom: ^22.1.0
lint-staged: ^13.2.2
loglevel: ^1.8.1
moment: ^2.29.4
msw: ^1.2.2
pinst: ^3.0.0
prettier: ^2.8.8
typescript: ^5.1.3
uuid: ^9.0.0
Expand Down Expand Up @@ -4663,6 +4665,15 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^8.0.3":
version: 8.0.3
resolution: "husky@npm:8.0.3"
bin:
husky: lib/bin.js
checksum: 837bc7e4413e58c1f2946d38fb050f5d7324c6f16b0fd66411ffce5703b294bd21429e8ba58711cd331951ee86ed529c5be4f76805959ff668a337dbfa82a1b0
languageName: node
linkType: hard

"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2":
version: 0.6.3
resolution: "iconv-lite@npm:0.6.3"
Expand Down Expand Up @@ -6230,6 +6241,15 @@ __metadata:
languageName: node
linkType: hard

"pinst@npm:^3.0.0":
version: 3.0.0
resolution: "pinst@npm:3.0.0"
bin:
pinst: bin.js
checksum: 4ae48a6a60f79c37071233af51b4d91bfc85cfa3c12b66ccda60cdb642b4d14a4ab0cb3587afc55b1f6192cea1772a5e4822026a0d0d3528296edef00cc2d61f
languageName: node
linkType: hard

"pkg-types@npm:^1.0.3":
version: 1.0.3
resolution: "pkg-types@npm:1.0.3"
Expand Down