You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
loadCurrentScriptDeps_ obtains the current script being executed through:
var file = process.argv[process.argv.length - 1];
it then uses the directory where this file is contained to load the deps.js file.
If command line arguments are passed to the script (eg. node script.js -l) then deps.js will not be loaded since process.argv.length - 1 is -l
loadCurrentScriptDeps_ obtains the current script being executed through:
var file = process.argv[process.argv.length - 1];
it then uses the directory where this file is contained to load the deps.js file.
If command line arguments are passed to the script (eg. node script.js -l) then deps.js will not be loaded since process.argv.length - 1 is -l
suggested fix:
var file = process.argv[1];