get-meta-file
Advanced tools
Comparing version 1.3.5 to 1.3.6
10
index.js
@@ -13,3 +13,3 @@ const { gray, green, yellow, underline } = require('chalk'); | ||
const warnMissing = cwd => dedent` | ||
const warnMissing = (cwd) => dedent` | ||
${CWD_NOT_META}: | ||
@@ -21,3 +21,3 @@ ${gray(tildify(cwd))} | ||
module.exports = function(options = {}) { | ||
module.exports = function (options = {}) { | ||
options.warn = options.warn !== false; | ||
@@ -89,12 +89,12 @@ | ||
module.exports.getFileLocation = function() { | ||
module.exports.getFileLocation = function () { | ||
return findUpsync('.meta', { cwd: process.cwd() }); | ||
}; | ||
module.exports.format = function(meta) { | ||
module.exports.format = function (meta) { | ||
return JSON.stringify(meta, null, 2) + '\n'; | ||
}; | ||
module.exports.save = function(meta) { | ||
module.exports.save = function (meta) { | ||
fs.writeFileSync(module.exports.getFileLocation(), module.exports.format(meta)); | ||
}; |
{ | ||
"name": "get-meta-file", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "gets a meta file and its contents", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"commit": "git-cz", | ||
"lint": "prettier --write \"bin/*\" index.js", | ||
"lint": "prettier --write index.js", | ||
"test": "jest --config jest.json --coverage", | ||
@@ -14,8 +14,2 @@ "test:coverage": "jest --config jest.json --coverage", | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
}, | ||
"repository": { | ||
@@ -48,11 +42,11 @@ "type": "git", | ||
"devDependencies": { | ||
"@commitlint/cli": "8.3.5", | ||
"@commitlint/config-conventional": "8.3.4", | ||
"commitizen": "3.1.2", | ||
"cz-conventional-changelog": "2.1.0", | ||
"husky": "2.7.0", | ||
"jest": "24.9.0", | ||
"prettier": "1.19.1", | ||
"pretty-quick": "1.11.1" | ||
"@commitlint/cli": "12.1.1", | ||
"@commitlint/config-conventional": "12.1.1", | ||
"commitizen": "4.2.3", | ||
"cz-conventional-changelog": "3.3.0", | ||
"husky": "6.0.0", | ||
"jest": "26.6.3", | ||
"prettier": "2.2.1", | ||
"pretty-quick": "3.1.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
7951
16