Even if I set the property scripts in my config file, I still get a warning when using yargs.
[ 4:08:21 PM] /c/develop/projects/tmp/enclose_test
$ enclose -x -c ./enclose.js -o ./retrospin.exe ./src/main.js
c:\develop\projects\tmp\enclose_test\node_modules\yargs\lib\parser.js
warning Cannot resolve 'require(path.resolve(process.cwd(), configPath))'
Use a string literal as argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option
[ 4:09:13 PM] /c/develop/projects/tmp/enclose_test
$ enclose -x -c ./enclose.js -o ./retrospin.exe ./src/main.js
c:\develop\projects\tmp\enclose_test\node_modules\yargs\lib\parser.js
warning Cannot resolve 'require(path.resolve(process.cwd(), configPath))'
Use a string literal as argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option
Even if I set the property
scripts
in my config file, I still get a warning when usingyargs
.enclose.js:
I'm using Node 5.