Skip to content

Conversation

@mansona
Copy link
Member

@mansona mansona commented Oct 13, 2025

In #10843 we added an error for anyone calling ember build --watch because it doesn't work in an embroider world. We missed the fact that Embroider itself needs to be able to call it 🙈

This PR fixes that and makes sure that there are no extra warnings shown to the end-user 👍

@mansona mansona added the bug label Oct 13, 2025
@mansona mansona requested a review from a team October 13, 2025 16:01
@kategengler
Copy link
Member

I'm 👍 but wish there were tests

@mansona
Copy link
Member Author

mansona commented Oct 13, 2025

@kategengler your instinct was correct, the fix was actually in the wrong place 🙈 whenever you call --watch then --watcher is implicitely set with a value of watchman so I needed to move the check out a level. I pushed the test before the fix to show the problem 👍

@mansona mansona force-pushed the allow-watch-embroider branch from df8743d to 1ef69f8 Compare October 13, 2025 19:03
);
});

it('`--watch` does not throw when EMBROIDER_PREBUILD is true', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make the test functions async, just fyi

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea I know, I just wanted it to reflect what was there already 👍

@mansona mansona merged commit 64b1650 into beta Oct 13, 2025
70 checks passed
@mansona mansona deleted the allow-watch-embroider branch October 13, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants