Going back to more stable version with Husky prehook library
MODIFY
package-lock.json
package-lock.json
}
},
"husky": {
- "version": "1.0.0-rc.6",
- "resolved": "https://registry.npmjs.org/husky/-/husky-1.0.0-rc.6.tgz",
- "integrity": "sha512-glraqjyMBNAOlAs1JJTxELJbrBT7v9VNiIDerywshHLDnzdC4iqwhHTkWXsY+L8Clt1Gade2/CppLcxEwY/HgQ==",
+ "version": "0.14.0",
+ "resolved": "https://registry.npmjs.org/husky/-/husky-0.14.0.tgz",
+ "integrity": "sha512-l2BLlwxiG4g18ASE/ZkZ31YF0hFv0ogEftP0X3ObBRCpwyzBNH1MEVOVCBwec4k8OQuFhoV5H9h+Vdp5W3/jyg==",
"dev": true,
"requires": {
- "cosmiconfig": "^4.0.0",
- "execa": "^0.9.0",
- "find-up": "^2.1.0",
- "is-ci": "^1.1.0",
- "pkg-dir": "^2.0.0",
- "pupa": "^1.0.0",
- "read-pkg": "^3.0.0",
- "run-node": "^1.0.0",
- "slash": "^2.0.0"
- },
- "dependencies": {
- "execa": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/execa/-/execa-0.9.0.tgz",
- "integrity": "sha512-BbUMBiX4hqiHZUA5+JujIjNb6TyAlp2D5KLheMjMluwOuzcnylDL4AxZYLLn1n2AGB49eSWwyKvvEQoRpnAtmA==",
- "dev": true,
- "requires": {
- "cross-spawn": "^5.0.1",
- "get-stream": "^3.0.0",
- "is-stream": "^1.1.0",
- "npm-run-path": "^2.0.0",
- "p-finally": "^1.0.0",
- "signal-exit": "^3.0.0",
- "strip-eof": "^1.0.0"
- }
- },
- "load-json-file": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
- "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.2",
- "parse-json": "^4.0.0",
- "pify": "^3.0.0",
- "strip-bom": "^3.0.0"
- }
- },
- "parse-json": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
- "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
- "dev": true,
- "requires": {
- "error-ex": "^1.3.1",
- "json-parse-better-errors": "^1.0.1"
- }
- },
- "path-type": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz",
- "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==",
- "dev": true,
- "requires": {
- "pify": "^3.0.0"
- }
- },
- "pify": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
- "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
- "dev": true
- },
- "read-pkg": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
- "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",
- "dev": true,
- "requires": {
- "load-json-file": "^4.0.0",
- "normalize-package-data": "^2.3.2",
- "path-type": "^3.0.0"
- }
- },
- "slash": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
- "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
- "dev": true
- },
- "strip-bom": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
- "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
- "dev": true
- }
+ "is-ci": "^1.0.10",
+ "normalize-path": "^1.0.0",
+ "strip-indent": "^2.0.0"
}
},
"iconv-lite": {
"validate-npm-package-license": "^3.0.1"
}
},
+ "normalize-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz",
+ "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=",
+ "dev": true
+ },
"npm-path": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/npm-path/-/npm-path-2.0.4.tgz",
"integrity": "sha1-X4Y+3Im5bbCQdLrXlHvwkFbKTn0=",
"dev": true
},
- "pupa": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/pupa/-/pupa-1.0.0.tgz",
- "integrity": "sha1-mpVopa9+ZXuEYqbp1TKHQ1YM7/Y=",
- "dev": true
- },
"q": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
"is-promise": "^2.1.0"
}
},
- "run-node": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz",
- "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==",
- "dev": true
- },
"rx-lite": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz",

MODIFY
package.json
package.json
"test:coverage": "jest --expand --coverage",
"test:watch": "jest --expand --onlyChanged --watch",
"prepublish": "npm run test",
- "publish": "./scripts/publish.sh"
+ "publish": "./scripts/publish.sh",
+ "precommit": "lint-staged"
},
"lint-staged": {
"*.{ts}": [
"jest --bail --findRelatedTests --passWithNoTests"
]
},
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- },
"repository": {
"type": "git",
"url": "git+https://github.com/marblejs/marble.git"
"devDependencies": {
"@types/jest": "^22.2.3",
"@types/supertest": "^2.0.4",
- "husky": "^1.0.0-rc.6",
+ "husky": "^0.14.0",
"jest": "^22.4.3",
"lerna": "^2.11.0",
"lint-staged": "^7.1.1",

Going back to more stable version with Husky prehook library