Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(experimental-utils): remove accidental dep on json-schema (#2010)
- Loading branch information
1 parent
18e7b5b
commit 1875fba
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; |