Skip to content

Commit

Permalink
fix(index): set service name property for wsk deployer
Browse files Browse the repository at this point in the history
fixes #103
  • Loading branch information
trieloff committed Mar 19, 2020
1 parent 086627e commit 1c1edae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
11 changes: 11 additions & 0 deletions create-helix-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ init(__dirname, {

return Buffer.from(doc.toString());
},
'package.json': (buf, answers) => {
const json = JSON.parse(buf.toString());
json.name = answers.fullscope;
json.description = answers.title;
json.repository.url = `https://github.com/${answers.fullname}`;
json.bugs.url = `https://github.com/${answers.fullname}/issues`;
json.homepage = `https://github.com/${answers.fullname}#readme`;

json.wsk.name = `helix-services-private/${answers.name}@\${version}`;
return Buffer.from(JSON.stringify(json, null, 2));
},
}, [
{
type: 'list',
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c1edae

Please sign in to comment.