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 */ /* eslint-disable */
'use strict'; 'use strict';
const authors = [
JSON.stringify ({ name: 'Timo Hocker', email: 'timo@scode.ovh' })
];
const fs = require ('fs'); const fs = require ('fs');
const child_process = require ('child_process'); 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 === 'object') {
if (typeof pkg.author.name !== 'string') { if (!authors.includes (JSON.stringify (pkg.author))) {
console.log ('author name undefined'); console.log ('author is none of the registered');
ok = false;
}
if (typeof pkg.author.email !== 'string') {
console.log ('author email undefined');
ok = false; ok = false;
} }
} }

View File

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