-
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
fix: do not crash in wrangler dev
if user has multiple accounts
#1293
fix: do not crash in wrangler dev
if user has multiple accounts
#1293
Conversation
🦋 Changeset detectedLatest commit: 60fcf59 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 |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2542396946/npm-package-wrangler-1293 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1293/npm-package-wrangler-1293 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2542396946/npm-package-wrangler-1293 dev path/to/script.js |
2476264
to
2122d48
Compare
a04ed82
to
10255ea
Compare
205b5f6
to
d5b5ba1
Compare
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
The previous tests for non-interactive only checked the stdin.isTTY, but you can have scenarios where the stdin is interactive but the stdout is not. For example when writing the output of a `kv:key get` command to a file. We now check that both stdin and stdout are interactive before trying to interact with the user.
d5b5ba1
to
60fcf59
Compare
OK - here goes! |
When a user has multiple accounts we show a prompt to allow the user to select which they should use.
This was broken in
wrangler dev
as we were trying to start a new ink.js app (to show the prompt)from inside a running ink.js app (the UI for
wrangler dev
).This fix refactors the
ChooseAccount
component so that it can be used directly within another component.Fixes #1258