- pnpm 11 rewrites the v5 lockfile on install and refuses to run unreviewed dependency build scripts; declare them explicitly (all disabled — everything installs and builds fine without them) so installs and the pre-commit hook pass - upgrade prettier-plugin-organize-imports 1.x -> 3.x: the old version crashes against typescript 4.9 (host.fileExists is not a function), breaking lint-staged - ignore the local .pnpm-store
19 lines
613 B
JSON
19 lines
613 B
JSON
{
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"lint-staged": "lint-staged",
|
|
"postinstall": "husky install",
|
|
"prettier": "prettier --plugin-search-dir=. --write .",
|
|
"prettier-check": "prettier --plugin-search-dir=. --check ."
|
|
},
|
|
"devDependencies": {
|
|
"husky": "^5.0.9",
|
|
"lint-staged": "^10.5.4",
|
|
"prettier": "^2.2.1",
|
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
"typescript": "^4.1.5"
|
|
},
|
|
"lint-staged": {
|
|
"*.{css,scss,graphql,html,json,js,jsx,md,mdx,ts,tsx,vue,yaml,yml}": "prettier --plugin-search-dir=. --write"
|
|
}
|
|
}
|