diff --git a/.husky/pre-commit b/.husky/pre-commit index 083cf3f..188561d 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +1,3 @@ #!/usr/bin/env sh -npx lint-staged +npm run precommit diff --git a/package.json b/package.json index 653be75..f9c46b9 100644 --- a/package.json +++ b/package.json @@ -315,7 +315,7 @@ }, "scripts": { "vscode:prepublish": "npm run package", - "prepare": "husky install", + "prepare": "husky", "package": "webpack --mode production --devtool hidden-source-map", "build": "webpack --mode development", "build:release": "webpack --mode production", @@ -326,7 +326,8 @@ "lint": "eslint -c eslint.config.mjs", "vsce:package": "vsce package -o language-renpy.vsix", "format": "prettier --write .", - "format:check": "prettier --check ." + "format:check": "prettier --check .", + "precommit": "lint-staged" }, "lint-staged": { "*.{js,ts}": [