Skip to content

Commit

Permalink
chore: change postinstall to prepare for husky
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Mar 9, 2021
1 parent 61062ad commit eb05ac6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 47 deletions.
34 changes: 0 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Expand Up @@ -35,7 +35,6 @@
"husky": "^5.1.1",
"lint-staged": "^10.4.0",
"npm-run-all": "^4.1.5",
"pinst": "^2.1.6",
"prettier": "^2.1.2",
"remark-cli": "^9.0.0",
"remark-lint-no-heading-punctuation": "^2.0.1",
Expand Down Expand Up @@ -73,13 +72,11 @@
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
"!(*.snap|.husky/**)": "prettier --write",
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
Expand Down
12 changes: 4 additions & 8 deletions test/__snapshots__/init.test.js.snap
Expand Up @@ -21,7 +21,7 @@ Object {
"root": true,
},
"lint-staged": Object {
"!(*.snap|.husky/**)": "prettier --write",
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail",
"*.css": "xyz",
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
Expand Down Expand Up @@ -50,9 +50,7 @@ Object {
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"postinstall": "husky install",
"postpublish": "pinst --enable",
"prepublishOnly": "pinst --disable",
"prepare": "husky install",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
Expand Down Expand Up @@ -93,7 +91,7 @@ Object {
"root": true,
},
"lint-staged": Object {
"!(*.snap|.husky/**)": "prettier --write",
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail",
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
},
Expand Down Expand Up @@ -121,9 +119,7 @@ Object {
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"postinstall": "husky install",
"postpublish": "pinst --enable",
"prepublishOnly": "pinst --disable",
"prepare": "husky install",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
Expand Down

0 comments on commit eb05ac6

Please sign in to comment.