This commit is contained in:
parent
d8a0139ce4
commit
0955d18339
13
ci.js
13
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;
|
||||
}
|
||||
}
|
||||
|
10
package.json
10
package.json
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user