Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
41
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.3 to 4.3.4

14

lib/installer/bin.js

@@ -38,3 +38,8 @@ "use strict";

const { name, version } = which_pm_runs_1.default();
throw new Error(`INIT_CWD is not set, please check that your package manager supports it (${name} ${version})`);
throw new Error(`INIT_CWD is not set, please check that your package manager supports it (${name} ${version})
Alternatively, you could set it manually:
INIT_CWD="$(pwd)" npm install husky --save-dev
Or upgrade to husky v5`);
}

@@ -63,7 +68,4 @@ debug_1.debug(`INIT_CWD is set to ${INIT_CWD}`);

}
let cwd = process.argv[3];
if (cwd === undefined) {
cwd = getInitCwdEnv();
}
const userPkgDir = getUserPkgDir(cwd);
const INIT_CWD = getInitCwdEnv();
const userPkgDir = getUserPkgDir(INIT_CWD);
checkGitDirEnv_1.checkGitDirEnv();

@@ -70,0 +72,0 @@ const { absoluteGitCommonDir, relativeUserPkgDir } = getDirs(userPkgDir);

{
"name": "husky",
"version": "4.3.3",
"version": "4.3.4",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",
"bin": {
"husky": "./husky.js",
"husky-run": "./bin/run.js",

@@ -8,0 +7,0 @@ "husky-upgrade": "./lib/upgrader/bin.js"

@@ -11,3 +11,3 @@ # Husky

**Note for npm 7 users** Currently `INIT_CWD` environment variable is missing in npm v7 and is required for Husky v4 to auto-install (https://github.com/npm/cli/issues/2033). To manually install husky v4, run `npx --no-install husky install .` or upgrade to husky v5.
**Note for npm v7 users** Currently `INIT_CWD` environment variable is missing in npm v7 and is required for Husky v4 to auto-install (https://github.com/npm/cli/issues/2033). To manually install husky v4, run `INIT_CWD="$(pwd)" npm install husky --save-dev` or upgrade to [husky v5](https://typicode.github.io/husky/#/).

@@ -14,0 +14,0 @@ ## Install

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc