You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add getProjectPath() to compute path to parent project
Previously, process.cwd() did the job just fine but with node v8.1.2
(compared to 7.10.0 at least) the output has changed. So, use the
following hack: when installing a node package, npm adds it to PATH.
Since we know:
a) the suffix of that path entry (commitplease/node_modules/.bin)
b) the fact that the other project is installing commitplease
then find that entry and use its prefix as parent project path
Refs: jquery/jquery#3708
0 commit comments