Never mind about everything below. I overcomplicated something very simple. Spawn child process with process.argv[0]
and use process.argv[1]
as the first argument. Duh.
Instances Where The Grunt Bin Is Needed
-
Project w/ Locally Installed Grunt
Unix:
[cwd]/node_modules/.bin/grunt
Win: [cwd]/node_modules/.bin/grunt.cmd