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,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,
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user