From 4df9ee4106254493576c5a996d3f90c486b56d37 Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Date: Sun, 8 Sep 2024 15:22:21 +0100 Subject: [PATCH] chore: bump husky and clean up scripts --- .husky/install.mjs | 1 + .husky/pre-commit | 2 +- package-lock.json | 14 ++++++++------ package.json | 12 ++++++------ packages/libsql-client/package.json | 2 -- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.husky/install.mjs b/.husky/install.mjs index 941d817..9d77578 100644 --- a/.husky/install.mjs +++ b/.husky/install.mjs @@ -1,3 +1,4 @@ +// See https://typicode.github.io/husky/how-to.html#ci-server-and-docker // Skip Husky install in production and CI if (process.env.NODE_ENV === "production" || process.env.CI === "true") { process.exit(0); diff --git a/.husky/pre-commit b/.husky/pre-commit index 0100eae..af5adff 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npm run lint-staged +lint-staged \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e18bd8a..f728174 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,10 @@ "packages/libsql-client-wasm" ], "dependencies": { - "husky": "^9.0.11", "lint-staged": "^15.2.2" + }, + "devDependencies": { + "husky": "^9.1.5" } }, "node_modules/@ampproject/remapping": { @@ -2270,11 +2272,12 @@ } }, "node_modules/husky": { - "version": "9.0.11", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", - "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.5.tgz", + "integrity": "sha512-rowAVRUBfI0b4+niA4SJMhfQwc107VLkBUgEYYAOQAbqDCnra1nYh83hF/MDmhYs9t9n1E3DuKOrs2LYNC+0Ag==", + "dev": true, "bin": { - "husky": "bin.mjs" + "husky": "bin.js" }, "engines": { "node": ">=18" @@ -4837,7 +4840,6 @@ "devDependencies": { "@types/jest": "^29.2.5", "@types/node": "^18.15.5", - "husky": "^9.0.11", "jest": "^29.3.1", "lint-staged": "^15.2.2", "msw": "^2.3.0", diff --git a/package.json b/package.json index 32decbb..3935436 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "packages/libsql-client", "packages/libsql-client-wasm" ], - "dependencies": { - "husky": "^9.0.11", - "lint-staged": "^15.2.2" - }, + "dependencies": {}, "scripts": { - "prepare": "node .husky/install.mjs", - "lint-staged": "lint-staged" + "prepare": "node .husky/install.mjs" + }, + "devDependencies": { + "lint-staged": "^15.2.2", + "husky": "^9.1.5" } } diff --git a/packages/libsql-client/package.json b/packages/libsql-client/package.json index e8dea9c..fc0954b 100644 --- a/packages/libsql-client/package.json +++ b/packages/libsql-client/package.json @@ -98,7 +98,6 @@ "test": "jest --runInBand", "typecheck": "tsc --noEmit", "typedoc": "rm -rf ./docs && typedoc", - "prepare": "husky install", "lint-staged": "lint-staged" }, "dependencies": { @@ -111,7 +110,6 @@ "devDependencies": { "@types/jest": "^29.2.5", "@types/node": "^18.15.5", - "husky": "^9.0.11", "jest": "^29.3.1", "lint-staged": "^15.2.2", "msw": "^2.3.0",