mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
chore: Update deps & check for removed version
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
parent
4a7e289d33
commit
921100429e
7 changed files with 9 additions and 9 deletions
7
test.js
7
test.js
|
|
@ -27,8 +27,13 @@ function report(content, fix) {
|
|||
try {
|
||||
const data = await readFile(path.join('users', user), "utf8")
|
||||
try {
|
||||
const u = JSON.parse(data);
|
||||
let u = JSON.parse(data);
|
||||
if (!u.locked && !u.copyright) report(`Copyright not specified in ${user}`)
|
||||
if (u.version) report(`Version tag found in ${user}`, () => {
|
||||
delete u.version
|
||||
const stringified = `${JSON.stringify(u, 0, 2)}\n`
|
||||
fs.writeFile(path.join('users', user), stringified, () => { })
|
||||
})
|
||||
const stringified = `${JSON.stringify(u, 0, 2)}\n`
|
||||
if (data !== stringified) report(`Non-regular formatting in ${user}`, () => fs.writeFile(path.join('users', user), stringified, () => {}))
|
||||
} catch ({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"copyright": "Code Clarity",
|
||||
"theme": "double-windsor",
|
||||
"email": "support@icodeclarity.com",
|
||||
"version": "a526bf7ad1"
|
||||
"email": "support@icodeclarity.com"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"copyright": "Peter D Johnson",
|
||||
"url": "http://delphidabbler.com/",
|
||||
"format": "text",
|
||||
"version": "fdcf640"
|
||||
"format": "text"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,5 @@
|
|||
"email": "me@harryscheiner.com",
|
||||
"format": "html",
|
||||
"gravatar": true,
|
||||
"version": "6d33a046",
|
||||
"theme": "default"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
"copyright": "Jesús Urrutia",
|
||||
"url": "http://jesusurrutia.com",
|
||||
"email": "jesus.urrutia@gmail.com",
|
||||
"version": "html",
|
||||
"gravatar": true,
|
||||
"theme": "default"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,5 @@
|
|||
"url": "http://mdag.my",
|
||||
"email": "info+mitlicense@mdag.my",
|
||||
"format": "html",
|
||||
"theme": "double-windsor",
|
||||
"version": "a526bf7ad1"
|
||||
"theme": "double-windsor"
|
||||
}
|
||||
|
|
|
|||
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue