fix(oxlint): add configuration_schema.json to package exports#19459
fix(oxlint): add configuration_schema.json to package exports#19459shibanet0 wants to merge 1 commit intooxc-project:mainfrom
Conversation
The configuration_schema.json file was not accessible after adding the `exports` field in oxc-project#18601. This adds the missing export entry. Fixes the import: `import schema from 'oxlint/configuration_schema.json'`
|
@camc314 @overlookmotel - this is a small fix for a regression introduced in #18601. The Would appreciate a review when you have a moment! |
|
i don't think It was never intentional that this was exposed - why do you need to import it? |
|
I maintain a shared config package that aggregates and re-exports configurations and schemas from various tools (ESLint, Prettier, etc.) so they can be reused across multiple projects without duplicating dependencies. For oxlint specifically, I need to programmatically access The alternative is to resolve it via |
The
configuration_schema.jsonfile was not accessible after adding theexportsfield in #18601. This adds the missing export entry.Fixes the import:
import schema from 'oxlint/configuration_schema.json'