Merge pull request #95 from r3dm/fix/save-instruct-in-root
Save instructions.json in root dir
This commit is contained in:
commit
9b407b1ada
|
@ -12,6 +12,7 @@
|
|||
*.swo
|
||||
*.iml
|
||||
node_modules
|
||||
generated-instructions.json
|
||||
checkstyle.xml
|
||||
loopback-boot-*.tgz
|
||||
/test/sandbox/
|
||||
|
|
|
@ -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' });
|
||||
|
|
Loading…
Reference in New Issue