Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

loadCurrentScriptDeps_ does not load dependencies if arguments are supplied #19

@lrascao

Description

@lrascao

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions