Skip to content

Commit

Permalink
fix(experimental-utils): remove accidental dep on json-schema (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed May 11, 2020
1 parent 18e7b5b commit 1875fba
Showing 1 changed file with 23 additions and 1 deletion.
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';

0 comments on commit 1875fba

Please sign in to comment.