Skip to content

Commit 3acfb68

Browse files
hjgracadreamorosi
andauthored
chore(maintenance): migrate init script and husky to v9 (#2131)
* chore(maintenance): migrate init script and husky to v9 * remove init-environment script remove init-environment script, move husky to setup-local --------- Co-authored-by: Andrea Amorosi <[email protected]>
1 parent 3b99263 commit 3acfb68

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

.husky/pre-push

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npm t \
52
-w packages/commons \
63
-w packages/logger \

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
"examples/sam"
1818
],
1919
"scripts": {
20-
"init-environment": "husky install",
2120
"test": "npm t -ws",
2221
"test:parallel": "lerna exec --no-bail --no-sort --stream --concurrency 8 -- npm run test",
2322
"test:e2e": "npm run test:e2e -ws",
2423
"test:e2e:parallel": "lerna exec --no-bail --no-sort --stream --concurrency 8 -- npm run test:e2e",
2524
"commit": "commit",
26-
"setup-local": "npm ci && npm run build && npm run init-environment",
25+
"setup-local": "npm ci && npm run build && husky",
2726
"build": "npm run build -ws",
2827
"docs-website-build-run": "npm run docs-buildDockerImage && npm run docs-runLocalDocker",
2928
"docs-buildDockerImage": "docker build -t powertools-typescript/docs ./docs/",

0 commit comments

Comments
 (0)