diff --git a/.github/scripts/check-version.sh b/.github/scripts/check-version.sh deleted file mode 100755 index 613150a..0000000 --- a/.github/scripts/check-version.sh +++ /dev/null @@ -1,6 +0,0 @@ -localVersion=$(cat package.json | jq -r '.version') -masterVersion=$(git show origin/main:package.json | jq -r '.version') -if [ "${localVersion}" = "`echo -e "${localVersion}\n${masterVersion}" | sort -V | head -n1`" ]; then - echo '::error::Package version should be upgraded' - exit 1 -fi \ No newline at end of file diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 951b323..bd735e1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,9 +11,6 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Check package version - shell: bash - run: ./.github/scripts/check-version.sh build: runs-on: ${{ matrix.os }} strategy: diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index 58fe550..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -./.github/scripts/check-version.sh \ No newline at end of file diff --git a/.npmignore b/.npmignore index b59e98c..e8abdb4 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,5 @@ !dist/ .github/ -.husky/ node_modules/ test/ src/ diff --git a/package-lock.json b/package-lock.json index 8802cff..912e72d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,8 +19,7 @@ "wshcmx": "dist/index.js" }, "devDependencies": { - "@types/node": "^22.0.0", - "husky": "^9.1.7" + "@types/node": "^22.0.0" }, "engines": { "node": ">= 14.17" @@ -46,22 +45,6 @@ "integrity": "sha512-cAIEpSZvXujdIV3kXV6xWrray5CSziR+Y6W5fh8+KN8oIBvx1ZeCEdkzcamcq91jVdcFR3SYl73BFxIsApC9mA==", "license": "MIT" }, - "node_modules/husky": { - "version": "9.1.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", - "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", - "dev": true, - "license": "MIT", - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/project": { "resolved": "test/project", "link": true diff --git a/package.json b/package.json index 6a70e32..2cf0aa9 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "test": "npm run test:project && npm run test:snapshots", "test:generate": "npx tsc && node --test --test-update-snapshots '**/*.test.js'", "test:project": "npx tsc && npm test --script-shell=bash -w ./test/project", - "test:snapshots": "npx tsc && node --test --experimental-test-snapshots '**/*.test.js'", - "prepare": "husky" + "test:snapshots": "npx tsc && node --test --experimental-test-snapshots '**/*.test.js'" }, "workspaces": [ "./test/project" @@ -40,7 +39,6 @@ "typescript": "^5.7.3" }, "devDependencies": { - "@types/node": "^22.0.0", - "husky": "^9.1.7" + "@types/node": "^22.0.0" } }