Save instructions.json in root dir

Saving in node_modules dir causes complaints and missing files
fixes https://github.com/strongloop/loopback-boot/issues/94
This commit is contained in:
Berkeley Martinez 2015-02-17 17:13:28 -08:00
parent af1d0dcccb
commit d8bf8687a8
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@
*.swo
*.iml
node_modules
generated-instructions.json
checkstyle.xml
loopback-boot-*.tgz
/test/sandbox/

View File

@ -94,7 +94,7 @@ function bundleInstructions(instructions, bundler) {
// Write the instructions to a file in our node_modules folder.
// The location should not really matter as long as it is .gitignore-ed
var instructionsFile = path.resolve(__dirname,
'..', 'node_modules', 'instructions.json');
'..', 'generated-instructions.json');
fs.writeFileSync(instructionsFile, instructionsString, 'utf-8');
bundler.require(instructionsFile, { expose: 'loopback-boot#instructions' });