npm / cmd-shim

The cmd-shim used in npm
ISC License
76 stars 40 forks source link

Fix 'no shebang' case #25

Closed igorklopov closed 5 years ago

igorklopov commented 7 years ago

As you can see in test.js - $basedir was used but was not defined. In index.js i had to make basedir definition be added before !shLongProg case. So, i moved that definition up level to apply to both cases.

coolaj86 commented 5 years ago

Workaround (re: #35 #36)

I created a function winpmstall that I used to monkey patch for my own project: https://git.rootprojects.org/root/pathman/src/branch/master/npm/scripts/fetch-prebuilt.js#L36

(WiNPMstall being a terrible portmanteau of Windows NPM Install)