-
Notifications
You must be signed in to change notification settings - Fork 334
Request: Set JavaScript path by wrangler.toml or CLI #1275
Comments
this makes sense to me - i always thought it was strange that we grabbed it from package.json for webpack type projects, we allow a i think for this one we should add a field in the toml |
for my money i like |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity in the last 180 days. It will be closed if no further activity occurs in the next week. Please feel free to comment if you'd like it to remain open, and thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant. |
💡 Feature request
Wrangler has been awesome to get to work with so thanks for all the hard work. I'd like to please raise a feature request that would help with my use-case.
Overview and problem statement
I'm attempting to incrementally adopt wrangler for uploading a worker and related KV storage.
I've already got a (perhaps over-complicated) build process so for now I just want wrangler to upload the file. (After doing a bunch of KV stuff)
I'm able to do this using type="javascript" which is great, but this requires me to modify the package.json main attribute.
Unfortunatly modifying this attribute breaks other things in my project.
Basic example
I'd like to be able to specify the path to find the single JavaScript file by either wrangler.toml
or via the CLI
$ wrangler publish --main "dist/worker.js"
My preference would be via wrangler.toml
The text was updated successfully, but these errors were encountered: