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

Update schema.json with latest changes #131

Conversation

pixeltrix
Copy link
Contributor

No description provided.

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Thanks for this one!

We'll test this on next publish, and if it fixes #127 I'll rollback the original find&replace attempt in the Github workflow.

This PR also helped me understand your original questions and I hadn't realised the generated @next schema & examples on main had fallen out of sync with the type definitions - currently that's a bit too easy to forget to run manually when opening PRs so now proposing it's added to pre-commit hook here too which should help keep this much tidier and more aligned in future #132

@@ -7,7 +7,7 @@
"build": "pnpm build-schema:dist && pnpm build-json-examples",
"build-json-examples": "pnpm ts-node scripts/build-json-examples.ts",
"build-schema:dev": "pnpm ts-json-schema-generator --path 'types/**/*.ts' --out 'schema/schema.json' --type Schema --id @next --no-top-ref",
"build-schema:dist": "pnpm ts-json-schema-generator --path 'types/**/*.ts' --out 'schema/schema.json' --type Schema --id $VERSION --no-top-ref",
"build-schema:dist": "pnpm ts-json-schema-generator --path 'types/**/*.ts' --out 'schema/schema.json' --type Schema --id \"${VERSION:-@next}\" --no-top-ref",
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense - thanks for this fix !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants