diff --git a/lib/snippets/readme/index.ts b/lib/snippets/readme/index.ts index 5f70aa0..3167475 100644 --- a/lib/snippets/readme/index.ts +++ b/lib/snippets/readme/index.ts @@ -31,7 +31,10 @@ export default class Readme implements Snippet { package_data.software = json.name; package_data.description = json.description; package_data.license = json.license; - package_data.author = json.author; + if (typeof json.author === 'object') + package_data.author = `${json.author.name} <${json.author.email}>`; + else + package_data.author = json.author; }); const readme = get_readme ( package_data.software, diff --git a/package.json b/package.json index af62278..2e2f0f6 100644 --- a/package.json +++ b/package.json @@ -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": {