Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2k
build: Add build step before generating the schema#7589
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
| logLevel:'info' | ||
| }; | ||
| constdevtoolsConfig={ |
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.
@camdecoster Could you add a comment above each of these configs explaining what it's used for (to the extent that you know)?
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.
I'll come up with something, but the variable names were my attempt at a description.
devtools/test_dashboard/build.mjs Outdated
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.
@camdecoster After the cleanup you've done, does this step really need a separate file? Couldn't you just now addbuild(localDevConfig); to the beginning of themakeSchema() function inschema.mjs?
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.
That's a fair question. I envisioned this script as being one that could be called elsewhere, but that seems like it violates the YAGNI principle. I'll do as you suggest. We can always add it back.
emilykl commentedOct 16, 2025
@camdecoster Not a big deal but looks like this results in an extra |
emilykl left a comment
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.
thx@camdecoster ✨
camdecoster commentedOct 16, 2025
@emilykl this shouldn't cause issues because it's building the library in two different locations: dist and build. The one in build is what's used to generate the schema. It's a little extra overhead, but now we don't have to worry about the schema getting out of sync with the library. |
80c7c7d intomasterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Description
Add build step before generating the schema.
Closes#7538.
Changes
npm run schemaTesting
npm run schemanpm run schemaNotes
npm startbuilds the library every time a change is made