-
Notifications
You must be signed in to change notification settings - Fork 734
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
chore: fix entrypoint logic and refactor #6971
Conversation
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-wrangler-6971 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6971/npm-package-wrangler-6971 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-wrangler-6971 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-create-cloudflare-6971 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-cloudflare-kv-asset-handler-6971 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-miniflare-6971 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-cloudflare-pages-shared-6971 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-cloudflare-vitest-pool-workers-6971 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-cloudflare-workers-editor-shared-6971 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11364537784/npm-package-cloudflare-workers-shared-6971 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
I'm pretty sure the fix for the original issue is to change https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/src/dev/miniflare.ts#L291-L292 to |
Or better yet, make miniflare respect the config setting? We have |
I'm not sure I get the distinction here— |
@penalosa ah, got it. Thanks for pointing that out 👍 Config is a bit messy and could do with some consolidation I think. |
@penalosa, I think this change is causing the E2E tests to fail. From what I can tell, the |
5948534
to
c70c4eb
Compare
Given that the fix is different from the contents of this PR, I've reverted the last fix so that the branch points to where it was approved. |
What this PR solves / how to test
Fixes #000. This was supposed to fix (but doesn't) #6353. However, it does do a refactor that improves the code base and adds a relevant test case.
Author has addressed the following