@commercelayer/cli-dev
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -62,3 +62,4 @@ "use strict"; | ||
// return readme.replace(`<!-- ${tag} -->`, `<!-- ${tag} -->\n${body}\n<!-- ${tag}stop -->`) | ||
return readme.replace(`<!-- ${tag} -->`, `<!-- ${tag} -->\n\n${body}\n<!-- ${tag}stop -->`); | ||
const fixedBody = (body.trim().length === 0) ? body : `\n${body}\n`; | ||
return readme.replace(`<!-- ${tag} -->`, `<!-- ${tag} -->\n${fixedBody}<!-- ${tag}stop -->`); | ||
} | ||
@@ -114,3 +115,3 @@ toc(__, readme) { | ||
}), | ||
].join('\n').trim(); | ||
].join('\n').trim() + '\n'; | ||
} | ||
@@ -126,3 +127,3 @@ createTopicFile(file, config, topic, commands) { | ||
this.commands(config, commands), | ||
].join('\n').trim(); | ||
].join('\n').trim() + '\n'; | ||
fs.outputFileSync(file, doc); | ||
@@ -129,0 +130,0 @@ } |
{ | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"commands": { | ||
@@ -4,0 +4,0 @@ "readme": { |
{ | ||
"name": "@commercelayer/cli-dev", | ||
"description": "Commerce Layer CLI development tools and helpers", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Pierluigi Viti <pierluigi@commercelayer.io>", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/commercelayer/commercelayer-cli-dev/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24216
463