readme template: allow author in object format
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2020-07-25 18:57:35 +02:00
parent d097ba4ad7
commit 64ed038b30
2 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,9 @@ export default class Readme implements Snippet {
package_data.software = json.name;
package_data.description = json.description;
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;
});
const readme = get_readme (

View File

@ -1,6 +1,6 @@
{
"name": "@sapphirecode/snippeteer",
"version": "1.4.5",
"version": "1.4.6",
"description": "macros for setting up projects or project parts",
"main": "index.js",
"bin": {