microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 102 forks source link

See if we can avoid requiring node modules to be installed globally #3

Open RyanCavanaugh opened 8 years ago

RyanCavanaugh commented 8 years ago

See title

ghost commented 7 years ago

Actually, it seems to only work locally. You can't require() a module that's installed globally, so that fails (npm install -g abs; node -p 'require("abs")'). Locally, it works (npm install abs; dts-gen -m abs).