feature request: accept npm package names as entrypoints #3473
threepointone
started this conversation in
Ideas
Replies: 1 comment
-
Moving this to a discussion for now, since I think it requires more thought—especially around resource provisioning and the implications there |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I made an application, like a session config service built with Workers, named
workers-session-service
on npm. I'd like to be able to be able to share it with folks, and let them be able to deploy it without writing any code. So, this should work:npm install workers-session-service
: installs the packagenpx wrangler dev workers-session-service
: should spin it up locallynpx wrangler publish workers-session-service
: should publish it to the edgeIt should also read from wrangler.toml if available. Which leads to fun questions about provisioning resources like kv automatically (which we've discussed before). Still, being able to do just the above should make distribution easier.
Beta Was this translation helpful? Give feedback.
All reactions