-
Notifications
You must be signed in to change notification settings - Fork 778
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
fix: error when entry doesn't exist #455
Conversation
🦋 Changeset detectedLatest commit: 04dd7d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
wrangler prerelease is available for testing: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/1837915405/wrangler |
c234ed2
to
019794f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM - thanks for the clean up. Left a few suggestions/questionds.
The next step is to fully deprecate build.upload
and encourage the "new" way of entry/main
top level config field.
This adds an error when we use an entry point that doesn't exist, either for `wrangler dev` or `wrangler publish`, and either via cli arg or `build.upload.main` in `wrangler.toml`. By using a common abstraction for `dev` and `publish`, This also adds support for using `build.config.main`/`build.config.dir` for `wrangler dev`. - Fixes #418 - Fixes #390
019794f
to
04dd7d0
Compare
I polished it a bit more, looks good imo, landing this. |
This adds an error when we use an entry point that doesn't exist, either for
wrangler dev
orwrangler publish
, and either via cli arg orbuild.upload.main
inwrangler.toml
. By using a common abstraction fordev
andpublish
, This also adds support for usingbuild.config.main
/build.config.dir
forwrangler dev
.[build.upload.main]
/[build.upload.dir]
inwrangler dev
#418