-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Ability to use a local copy of npm package #15624
Comments
No, it's not something that's possible at the moment, but definitely on our radar. It wouldn't be difficult to implement. It's more a question of how it's specified so if anyone has any ideas let us know. Maybe like |
For now, I suppose just some way to use tarball would be sufficient, one can just do npm pack and deno run. 🤔 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Yes, we need the ability to import local packages. Usage scenario: I am an author of an npm package and I need to test if my npm package works well in deno. |
+1 here, I am attempting to make test an npm package using native modules in deno and this would have made my life much easier |
@dsherret mind providing some extra context around this? I might try and find some time to give this a go |
This one probably requires about 1-2 weeks of work because we'd have to support having multiple paths for what we consider to be "node code" and it introduces a new concept in npm resolution where we need to get package information from the file system instead of just the npm registry and then also make this work with node resolution. I wouldn't recommend it as a first task. In the meantime, for testing npm packages locally you can use the
|
Something like verdaccio should also work along with |
This would solve the problems with CI testing that npm packages work with Deno: #19621 |
I could not get this to work at all until I added a |
Is there any way to use a local (modified) copy of an NPM package instead of a published one in this command? Thanks!
The text was updated successfully, but these errors were encountered: