Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto install modules #8

Open
mlrawlings opened this issue Jun 10, 2017 · 0 comments
Open

auto install modules #8

mlrawlings opened this issue Jun 10, 2017 · 0 comments

Comments

@mlrawlings
Copy link
Contributor

I'm playing with the idea of monkeypatching require in development and when trying to require a path that isn't available, it checks to see if it might be an npm path and if so, attempts to download the package from npm.

I have this almost working, but there's some stat caching in the internal module system, so it is not picking up the newly installed module.

Does this seem like a good idea? It would allow the developer to not have to stop the server when they need to install a new module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant