Comparing version 1.0.0-rc.11 to 1.0.0-rc.12
# CHANGELOG | ||
## 1.0.0-rc.12 | ||
* Fix exit code when used with unsupported Node version | ||
* Update dependencies | ||
## 1.0.0-rc.11 | ||
@@ -4,0 +9,0 @@ |
@@ -19,7 +19,7 @@ "use strict"; | ||
*/ | ||
function default_1([, scriptPath, hookName = '', HUSKY_GIT_PARAMS], getStdinFn = getStdin // Used for mocking | ||
function run([, scriptPath, hookName = '', HUSKY_GIT_PARAMS], getStdinFn = getStdin // Used for mocking | ||
) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const cwd = path.resolve(scriptPath.split('node_modules')[0]); | ||
const pkg = readPkg.sync(cwd, { normalize: false }); | ||
const pkg = readPkg.sync({ cwd, normalize: false }); | ||
const config = getConf_1.default(cwd); | ||
@@ -64,2 +64,2 @@ const command = config && config.hooks && config.hooks[hookName]; | ||
} | ||
exports.default = default_1; | ||
exports.default = run; |
@@ -27,6 +27,6 @@ "use strict"; | ||
}; | ||
function migrate(dir) { | ||
const pkgFile = path.join(dir, 'package.json'); | ||
function upgrade(cwd) { | ||
const pkgFile = path.join(cwd, 'package.json'); | ||
if (fs.existsSync(pkgFile)) { | ||
const pkg = readPkg.sync(dir, { normalize: false }); | ||
const pkg = readPkg.sync({ cwd, normalize: false }); | ||
console.log(`husky > upgrading ${pkgFile}`); | ||
@@ -54,2 +54,2 @@ // Don't overwrite pkg.husky if it exists | ||
} | ||
exports.default = migrate; | ||
exports.default = upgrade; |
{ | ||
"name": "husky", | ||
"version": "1.0.0-rc.11", | ||
"version": "1.0.0-rc.12", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -19,2 +19,3 @@ "bin": { | ||
"version": "jest -u && git add -A src/installer/__tests__/__snapshots__", | ||
"postversion": "git push && git push --tags", | ||
"prepublishOnly": "npm run test && npm run build && pinst --enable && pkg-ok", | ||
@@ -53,8 +54,8 @@ "postpublish": "pinst --disable", | ||
"execa": "^0.9.0", | ||
"find-up": "^2.1.0", | ||
"find-up": "^3.0.0", | ||
"get-stdin": "^6.0.0", | ||
"is-ci": "^1.1.0", | ||
"pkg-dir": "^2.0.0", | ||
"please-upgrade-node": "^3.1.0", | ||
"read-pkg": "^3.0.0", | ||
"pkg-dir": "^3.0.0", | ||
"please-upgrade-node": "^3.1.1", | ||
"read-pkg": "^4.0.1", | ||
"run-node": "^1.0.0", | ||
@@ -67,12 +68,12 @@ "slash": "^2.0.0" | ||
"@types/get-stdin": "^5.0.1", | ||
"@types/jest": "^23.1.0", | ||
"@types/node": "^10.3.3", | ||
"@types/jest": "^23.1.4", | ||
"@types/node": "^10.5.1", | ||
"del": "^3.0.0", | ||
"del-cli": "^1.1.0", | ||
"formatree": "^1.0.2", | ||
"jest": "^23.1.0", | ||
"jest": "^23.3.0", | ||
"mkdirp": "^0.5.1", | ||
"pinst": "^1.1.1", | ||
"pkg-ok": "^2.2.0", | ||
"prettier": "^1.13.5", | ||
"prettier": "^1.13.7", | ||
"tempy": "^0.2.1", | ||
@@ -79,0 +80,0 @@ "ts-jest": "^23.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30211
+ Addedfind-up@3.0.0(transitive)
+ Addedlocate-path@3.0.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@3.0.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpkg-dir@3.0.0(transitive)
+ Addedread-pkg@4.0.1(transitive)
- Removedfind-up@2.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedload-json-file@4.0.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-try@1.0.0(transitive)
- Removedpath-type@3.0.0(transitive)
- Removedpkg-dir@2.0.0(transitive)
- Removedread-pkg@3.0.0(transitive)
- Removedstrip-bom@3.0.0(transitive)
Updatedfind-up@^3.0.0
Updatedpkg-dir@^3.0.0
Updatedplease-upgrade-node@^3.1.1
Updatedread-pkg@^4.0.1