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