8000 fix(experimental-utils): remove accidental dep on json-schema (#2010) · dandv/typescript-eslint@1875fba · GitHub
[go: up one dir, main page]

Skip to content

Commit 1875fba

Browse files
authored
fix(experimental-utils): remove accidental dep on json-schema (typescript-eslint#2010)
1 parent 18e7b5b commit 1875fba

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed
Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1+
// Note - @types/json-schema@7.0.4 added some function declarations to the type package
2+
// If we do export *, then it will also export these function declarations.
3+
// This will cause typescript to not scrub the require from the build, breaking anyone who doesn't have it as a dependency
4+
15
// eslint-disable-next-line import/no-extraneous-dependencies
2-
export * from 'json-schema';
6+
export {
7+
JSONSchema4,
8+
JSONSchema4Type,
9+
JSONSchema4TypeName,
10+
JSONSchema4Version,
11+
JSONSchema6,
12+
JSONSchema6Definition,
13+
JSONSchema6Type,
14+
JSONSchema6TypeName,
15+
JSONSchema6Version,
16+
JSONSchema7,
17+
JSONSchema7Array,
18+
JSONSchema7Definition,
19+
JSONSchema7Type,
20+
JSONSchema7TypeName,
21+
JSONSchema7Version,
22+
ValidationError,
23+
ValidationResult,
24+
} from 'json-schema';

0 commit comments

Comments
 (0)
0