Skip to content

Commit

Permalink
chore: remove husky and patch-package (#983)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Potter <mgp140@gmail.com>
  • Loading branch information
bennypowers and heyMP committed May 9, 2023
1 parent 40cb534 commit cced7a4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 41 deletions.
5 changes: 5 additions & 0 deletions .changeset/remove-husky-lintstaged.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": patch
---

chore: prevent "command not found" error which could occur when installing the npm package in certain situations
19 changes: 0 additions & 19 deletions .husky/post-checkout

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

24 changes: 7 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"new": "npm init @patternfly/element",
"🚧-BUILD": "❓ Make packages and artifacts",
"build": "wireit",
"docs": "wireit",
"site": "npm run docs",
"🧪-TEST": "❓ Test packages",
"test": "wtr --group default",
"test:ci": "wtr",
Expand All @@ -53,18 +55,11 @@
"e2e:update": "playwright test --update-snapshots",
"proxy": "npx spandx -c spandx.config.cjs",
"🚚-DIST": "❓ Publish packages",
"docs": "wireit",
"site": "npm run docs",
"prepublishOnly": "npm run build",
"prepublishOnly": "wireit",
"⚙️--UTIL": "❓ Manages the repo",
"clean": "git clean -fX -e node_modules",
"clean": "git clean -dfX -e node_modules",
"clean:nuke": "git clean -fX",
"lint": "wireit",
"postinstall": "wireit",
"patch": "patch-package",
"husky": "husky install",
"prepack": "npx pinst --disable",
"postpack": "npx pinst --enable"
"lint": "wireit"
},
"wireit": {
"start": {
Expand Down Expand Up @@ -167,16 +162,12 @@
"build"
]
},
"postinstall": {
"prepublishOnly": {
"dependencies": [
"patch",
"husky"
"build"
]
}
},
"lint-staged": {
"*.{js,ts}": "eslint --fix"
},
"dependencies": {
"@patternfly/elements": "^2.1.0",
"@rhds/tokens": "^1.0.0",
Expand Down Expand Up @@ -204,7 +195,6 @@
"esbuild": "^0.17.18",
"git-branch": "^2.0.1",
"glob": "^9.3.1",
"husky": "^8.0.3",
"leasot": "^13.3.0",
"linkedom": "^0.14.25",
"markdown-it-anchor": "^8.6.7",
Expand Down

0 comments on commit cced7a4

Please sign in to comment.