diff --git a/ci.js b/ci.js index c105a3d..5787169 100644 --- a/ci.js +++ b/ci.js @@ -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; } } diff --git a/package.json b/package.json index 955a74a..8b6b25c 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,17 @@ { "name": "@sapphirecode/standard", - "version": "1.2.1", + "version": "1.2.2", "main": "index.js", - "author": "Timo Hocker ", + "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" ] -} \ No newline at end of file +}