fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2020-07-19 11:06:59 +02:00
parent d8a0139ce4
commit 0955d18339
2 changed files with 13 additions and 10 deletions

13
ci.js
View File

@ -8,6 +8,10 @@
/* eslint-disable */
'use strict';
const authors = [
JSON.stringify ({ name: 'Timo Hocker', email: 'timo@scode.ovh' })
];
const fs = require ('fs');
const child_process = require ('child_process');
@ -43,13 +47,8 @@ if (!(/^https:\/\/.+/iu).test (pkg.bugs)) {
}
if (typeof pkg.author === 'object') {
if (typeof pkg.author.name !== 'string') {
console.log ('author name undefined');
ok = false;
}
if (typeof pkg.author.email !== 'string') {
console.log ('author email undefined');
if (!authors.includes (JSON.stringify (pkg.author))) {
console.log ('author is none of the registered');
ok = false;
}
}

View File

@ -1,13 +1,17 @@
{
"name": "@sapphirecode/standard",
"version": "1.2.1",
"version": "1.2.2",
"main": "index.js",
"author": "Timo Hocker <timo@scode.ovh>",
"author": {
"name": "Timo Hocker",
"email": "timo@scode.ovh"
},
"description": "standard files and scripts for sapphirecode modules",
"repository": {
"type": "git",
"url": "https://git.scode.ovh/timo/standard.git"
},
"bugs": "https://redmine.scode.ovh/projects/standard",
"keywords": [
"standard"
],
@ -26,4 +30,4 @@
"*.js",
"*.d.ts"
]
}
}