igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

Not working with yargs #74

Closed animeoakes closed 8 years ago

animeoakes commented 8 years ago

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

enclose.js:

module.exports = {
    scripts: 'src/*.js',
}

I'm using Node 5.

igorklopov commented 8 years ago

Please retry with 1.0.5. The warning should not appear.