check-yarn-lock
Advanced tools
Comparing version
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
const {listChangedFiles, getFileAtHEAD} = require('./lib/gitUtil')(exec) | ||
const getCurrentFile = filename => readFileSync(filename, 'utf8') | ||
const LOCKFILE = 'yarn.lock' | ||
@@ -16,3 +16,3 @@ const PACKAGE_JSON = 'package.json' | ||
const readJson = compose(JSON.parse, readFileSync) | ||
const readJson = compose(JSON.parse, getCurrentFile) | ||
const getJsonAtHEAD = compose(JSON.parse, getFileAtHEAD) | ||
@@ -19,0 +19,0 @@ const depsUnchanged = converge(keysEqual(deps), [readJson, getJsonAtHEAD]) |
{ | ||
"name": "check-yarn-lock", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -8,2 +8,3 @@ "main": "index.js", | ||
"test": "mocha", | ||
"lint": "eslint . --cache", | ||
"precommit": "node index.js" | ||
@@ -10,0 +11,0 @@ }, |
Sorry, the diff of this file is not supported yet
38274
0.32%79
1.28%