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

fix(experimental-utils): remove accidental dep on json-schema #2010

Merged
merged 1 commit into from May 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 23 additions & 1 deletion packages/experimental-utils/src/json-schema.ts
@@ -1,2 +1,24 @@
// Note - @types/json-schema@7.0.4 added some function declarations to the type package
// If we do export *, then it will also export these function declarations.
// This will cause typescript to not scrub the require from the build, breaking anyone who doesn't have it as a dependency

// eslint-disable-next-line import/no-extraneous-dependencies
export * from 'json-schema';
export {
JSONSchema4,
JSONSchema4Type,
JSONSchema4TypeName,
JSONSchema4Version,
JSONSchema6,
JSONSchema6Definition,
JSONSchema6Type,
JSONSchema6TypeName,
JSONSchema6Version,
JSONSchema7,
JSONSchema7Array,
JSONSchema7Definition,
JSONSchema7Type,
JSONSchema7TypeName,
JSONSchema7Version,
ValidationError,
ValidationResult,
} from 'json-schema';