Skip to content
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

feat(common): precompile ajv schemas 🎺 #9691

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Oct 5, 2023

Fixes #9640.

This ended up being somewhat more fragile than originally anticipated. For the ajv cli call to get the right versions, we needed to install ajv as a dev dependency in the top-level package.json as well as at the common/web/types level.

Ajv does not do all that well with ESM yet, either, so we use esbuild to transform the compiled validators before building in typescript. References that were useful in getting this right:

@keymanapp-test-bot skip

@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Oct 5, 2023
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 5, 2023

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot bot changed the title feat(common): TEMP COMMIT -- precompile ajv schemas feat(common): TEMP COMMIT -- precompile ajv schemas 🎺 Oct 5, 2023
@keymanapp-test-bot keymanapp-test-bot bot added this to the A17S23 milestone Oct 5, 2023
Fixes #9640.

This ended up being somewhat more fragile than originally anticipated.
For the `ajv` cli call to get the right versions, we needed to install
ajv as a dev dependency in the top-level package.json as well as at the
common/web/types level.

Ajv does not do all that well with ESM yet, either, so we use esbuild to
transform the compiled validators before building in typescript.
@mcdurdin mcdurdin force-pushed the feat/common/9640-precompile-schemas branch from b4f0345 to 225877f Compare October 5, 2023 06:57
@mcdurdin mcdurdin changed the title feat(common): TEMP COMMIT -- precompile ajv schemas 🎺 feat(common): precompile ajv schemas 🎺 Oct 5, 2023
@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-missing User tests have not yet been defined for the PR label Oct 5, 2023
@mcdurdin mcdurdin marked this pull request as ready for review October 5, 2023 07:00
@mcdurdin mcdurdin merged commit b07d0f6 into epic/package-metadata Oct 6, 2023
2 checks passed
@mcdurdin mcdurdin deleted the feat/common/9640-precompile-schemas branch October 6, 2023 01:29
@mcdurdin mcdurdin linked an issue Oct 6, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(common): look at precompiling ajv schemas in common/types
2 participants