Skip to content

Commit bd5f4fe

Browse files
committed
refactor(rich-text-types): remove json schema []
BREAKING CHANGE: removed `getSchemaWithNodeType` in favor of `validateRichTextDocument`
1 parent 710f995 commit bd5f4fe

35 files changed

+36
-8664
lines changed

packages/rich-text-types/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@
2020
},
2121
"scripts": {
2222
"prebuild": "rimraf dist",
23-
"build": "yarn generate-json-schema && tsc --module commonjs && rollup -c --bundleConfigAsCjs rollup.config.js",
23+
"build": "tsc --module commonjs && rollup -c --bundleConfigAsCjs rollup.config.js",
2424
"start": "tsc && rollup -c --bundleConfigAsCjs rollup.config.js -w",
25-
"generate-json-schema": "ts-node -O '{\"module\": \"commonjs\"}' ./tools/jsonSchemaGen",
2625
"test": "jest"
2726
},
2827
"dependencies": {
2928
"is-plain-obj": "^3.0.0"
3029
},
3130
"devDependencies": {
32-
"@cspotcode/source-map-consumer": "^0.8.0",
33-
"@faker-js/faker": "^9.0.0",
3431
"@types/jest": "^29.5.12",
3532
"@types/node": "^22.0.0",
36-
"ts-jest": "^29.1.2",
37-
"typescript-json-schema": "0.65.1"
33+
"ts-jest": "^29.1.2"
3834
}
3935
}

packages/rich-text-types/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export { EMPTY_DOCUMENT } from './emptyDocument';
1212
import * as helpers from './helpers';
1313
export { helpers };
1414

15-
export { getSchemaWithNodeType } from './schemas';
15+
export { validateRichTextDocument } from './validator';
16+
export type { ValidationError } from './validator';

0 commit comments

Comments
 (0)