Skip to content

Commit

Permalink
fix: update "scripts" section
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 7, 2020
1 parent ecd3bbe commit 06788da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/create-webiny-project/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ module.exports = async function({ root, appName, templateName, tag, log }) {
} else {
appPackage.workspaces = Object.assign({}, projectDeps.workspaces);
}

if (appPackage.scripts) {
Object.assign(appPackage.scripts, projectDeps.scripts);
} else {
appPackage.scripts = Object.assign({}, projectDeps.workspaces);
}

fs.writeFileSync(
path.join(root, "package.json"),
JSON.stringify(appPackage, null, 2) + os.EOL
Expand Down

0 comments on commit 06788da

Please sign in to comment.