Skip to content

Commit a6fec3a

Browse files
authored
Merge pull request #33 from oskarhane/fix-types
Fix types export from schema utils formatters
2 parents 66b813c + a4c00d6 commit a6fec3a

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

.changeset/lazy-days-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@neo4j/graph-schema-utils": patch
3+
---
4+
5+
Fix types export

packages/graph-schema-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "1.0.0-next.12",
44
"description": "Utilities for Neo4j Graph Schema JSON representation",
55
"module": "./dist/index.js",
6-
"types": "./dist/index.d.ts",
6+
"types": "./dist/types/index.d.ts",
77
"exports": {
88
".": {
9-
"types": "./dist/index.d.ts",
9+
"types": "./dist/types/index.d.ts",
1010
"import": "./dist/index.js"
1111
}
1212
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * as json from "./json/index.js";
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
export * from "./types.js";
1+
import * as types from "./types.js";
22
export {
33
toJson,
44
fromJson,
55
fromJsonStruct,
66
toJsonStruct,
77
VERSION,
88
} from "./extensions.js";
9+
10+
export { types };
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export { validateSchema, SchemaValidationError } from "./validation.js";
22
import * as model from "./model/index.js";
3-
import * as json from "./formatters/json/index.js";
3+
import * as formatters from "./formatters/index.js";
44

5-
const formatters = { json };
65
export { model, formatters };

packages/graph-schema-utils/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"sourceMap": true,
77
"outDir": "dist",
88
"declaration": true,
9+
"declarationDir": "dist/types",
910
"skipLibCheck": true,
1011
"strict": true,
1112
"resolveJsonModule": true

0 commit comments

Comments
 (0)