eslint / eslint-release

The ESLint release tool
Other
24 stars 11 forks source link

linefix not found #1

Closed nzakas closed 8 years ago

nzakas commented 8 years ago

With the current implementation, linefix is searched for in the CWD instead of being local to this project, so running eslint-release in another project throws an error:

C:\Users\Nicholas\projects\personal\espree\node_modules\shelljs-nodecli\lib\shelljs-nodecli.js:104
            throw new Error("Couldn't find " + name + ".");
                  ^
Error: Couldn't find linefix.
    at Object.module.exports.exec (C:\Users\Nicholas\projects\personal\espree\node_modules\shelljs-nodecli\lib\shelljs-nodecli.js:104:19)
    at Array.forEach (native)
    at Object.release (C:\Users\Nicholas\projects\personal\espree\node_modules\eslint-release\lib\release-ops.js:273:8)
    at Object.<anonymous> (C:\Users\Nicholas\projects\personal\espree\node_modules\eslint-release\bin\eslint-release.js:36:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)

We need to ensure that the path to linefix is correct so it works outside of this project.