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:
parent
af1d0dcccb
commit
d8bf8687a8
|
@ -12,6 +12,7 @@
|
||||||
*.swo
|
*.swo
|
||||||
*.iml
|
*.iml
|
||||||
node_modules
|
node_modules
|
||||||
|
generated-instructions.json
|
||||||
checkstyle.xml
|
checkstyle.xml
|
||||||
loopback-boot-*.tgz
|
loopback-boot-*.tgz
|
||||||
/test/sandbox/
|
/test/sandbox/
|
||||||
|
|
|
@ -94,7 +94,7 @@ function bundleInstructions(instructions, bundler) {
|
||||||
// Write the instructions to a file in our node_modules folder.
|
// Write the instructions to a file in our node_modules folder.
|
||||||
// The location should not really matter as long as it is .gitignore-ed
|
// The location should not really matter as long as it is .gitignore-ed
|
||||||
var instructionsFile = path.resolve(__dirname,
|
var instructionsFile = path.resolve(__dirname,
|
||||||
'..', 'node_modules', 'instructions.json');
|
'..', 'generated-instructions.json');
|
||||||
|
|
||||||
fs.writeFileSync(instructionsFile, instructionsString, 'utf-8');
|
fs.writeFileSync(instructionsFile, instructionsString, 'utf-8');
|
||||||
bundler.require(instructionsFile, { expose: 'loopback-boot#instructions' });
|
bundler.require(instructionsFile, { expose: 'loopback-boot#instructions' });
|
||||||
|
|
Loading…
Reference in New Issue