readme template: allow author in object format
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d097ba4ad7
commit
64ed038b30
@ -31,6 +31,9 @@ export default class Readme implements Snippet {
|
|||||||
package_data.software = json.name;
|
package_data.software = json.name;
|
||||||
package_data.description = json.description;
|
package_data.description = json.description;
|
||||||
package_data.license = json.license;
|
package_data.license = json.license;
|
||||||
|
if (typeof json.author === 'object')
|
||||||
|
package_data.author = `${json.author.name} <${json.author.email}>`;
|
||||||
|
else
|
||||||
package_data.author = json.author;
|
package_data.author = json.author;
|
||||||
});
|
});
|
||||||
const readme = get_readme (
|
const readme = get_readme (
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@sapphirecode/snippeteer",
|
"name": "@sapphirecode/snippeteer",
|
||||||
"version": "1.4.5",
|
"version": "1.4.6",
|
||||||
"description": "macros for setting up projects or project parts",
|
"description": "macros for setting up projects or project parts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user