arloliu / copy-node-modules

Fast deploy Node.js modules from local source folder to distination folder
26 stars 14 forks source link

Ignore "file:*" versioned dependencies #8

Closed estaub closed 6 years ago

estaub commented 6 years ago

The plugin currently crashes when it encounters a local dependency, i.e., one with a version that reads something like file:../my-other-package.

This patch makes the plugin ignore these. The user is then responsible for fulfilling the dependency in some way. I suspect requirements will vary. In my case, I ended up copying the module into node_modules directly.

arloliu commented 6 years ago

Thanks a lot, I will test and merge it.