ai / dual-publish

Publish JS project as dual ES modules and CommonJS package to npm
MIT License
187 stars 11 forks source link

Change regex so 'ws' npm package doesn't get matched #11

Closed jimpick closed 4 years ago

jimpick commented 4 years ago

dual-publish was transforming require('ws') into require('ws/index.cjs'), which is wrong.

It appears the regex would match any 2 character npm package name.

ai commented 4 years ago

Oops. Thanks for the fix.

ai commented 4 years ago

Released in 0.10.3