From 0384461680a66358add0225ecc3f53414c634ee3 Mon Sep 17 00:00:00 2001 From: Henrique Graca <999396+hjgraca@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:21:51 +0000 Subject: [PATCH 1/2] chore(maintenance): migrate init script and husky to v9 --- .husky/pre-commit | 3 --- .husky/pre-push | 3 --- package.json | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c37466e2b3..d0a778429a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged \ No newline at end of file diff --git a/.husky/pre-push b/.husky/pre-push index 3b6d564252..697956237b 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,6 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm t \ -w packages/commons \ -w packages/logger \ diff --git a/package.json b/package.json index 783e966040..d4e2125cc9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "examples/sam" ], "scripts": { - "init-environment": "husky install", + "init-environment": "husky", "test": "npm t -ws", "test:parallel": "lerna exec --no-bail --no-sort --stream --concurrency 8 -- npm run test", "test:e2e": "npm run test:e2e -ws", @@ -76,4 +76,4 @@ "engines": { "node": ">=16" } -} +} \ No newline at end of file From 9834e8348a16b1e8b7490ae754bb0f11387fd114 Mon Sep 17 00:00:00 2001 From: Henrique Graca <999396+hjgraca@users.noreply.github.com> Date: Fri, 23 Feb 2024 15:49:17 +0000 Subject: [PATCH 2/2] remove init-environment script remove init-environment script, move husky to setup-local --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d4e2125cc9..f282d79d51 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,12 @@ "examples/sam" ], "scripts": { - "init-environment": "husky", "test": "npm t -ws", "test:parallel": "lerna exec --no-bail --no-sort --stream --concurrency 8 -- npm run test", "test:e2e": "npm run test:e2e -ws", "test:e2e:parallel": "lerna exec --no-bail --no-sort --stream --concurrency 8 -- npm run test:e2e", "commit": "commit", - "setup-local": "npm ci && npm run build && npm run init-environment", + "setup-local": "npm ci && npm run build && husky", "build": "npm run build -ws", "docs-website-build-run": "npm run docs-buildDockerImage && npm run docs-runLocalDocker", "docs-buildDockerImage": "docker build -t powertools-typescript/docs ./docs/", @@ -76,4 +75,4 @@ "engines": { "node": ">=16" } -} \ No newline at end of file +}