Open
Description
To reproduce
-
Fork express-ws
-
Include your fork via its GitHub URL in your project (e.g.,
github:aral/express-ws#referential-routes
– this will actually demonstrate the problem) -
Run your app/tests.
What should happen
It should work.
What actually happens
…/node_modules/express-ws/index.js:1
Error: Cannot find module './src/index'`
Why it happens
There is an .npmignore
file that ignored the src/
directory.
The actual issue
There’s a pre-publish process that uses Babel that’s not documented or captured in the repository.
Suggested fix
Document build process and add any necessary configuration / dev-dependencies to the repository.
Workaround
Delete the .npmignore
file.
Metadata
Assignees
Labels
No labels