Skip to content

Commit

Permalink
Merge pull request #187 from dadi/fix/install-script
Browse files Browse the repository at this point in the history
Update post-install script to include reference to Dust engine
  • Loading branch information
jimlambie authored Jul 5, 2017
2 parents 4c27f1c + 399bc56 commit a55ed40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@dadi/metadata": "^1.0.0",
"@dadi/passport": "latest",
"@dadi/status": "latest",
"@dadi/web-dustjs": "latest",
"@purest/providers": "^1.0.0",
"async": "^2.3.0",
"body-parser": "^1.11.0",
Expand Down Expand Up @@ -91,8 +92,7 @@
"superagent-mock": "^3.3.0",
"supertest": "latest",
"uuid": "^3.0.1",
"validate-commit-msg": "^2.12.1",
"@dadi/web-dustjs": "latest"
"validate-commit-msg": "^2.12.1"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions scripts/init-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ if (~currentPath.indexOf('node_modules')) {
fs.stat(destinationFile, (err, stats) => {
if (err && err.code && err.code === 'ENOENT') {
// file doesn't exist
fs.writeFile(destinationFile, "require('@dadi/web')", function(err) {
fs.writeFile(destinationFile, "require('@dadi/web')({engines:[require('@dadi/web-dustjs')]})", function(err) {
if (err) return console.log(err)
console.log('Web entry point created at', destinationFile)
})
}
})
}
}

0 comments on commit a55ed40

Please sign in to comment.