|
21 | 21 | ] |
22 | 22 | }, |
23 | 23 | "scripts": { |
| 24 | + "generate": "npm run generate:schema && npm run generate:seps", |
| 25 | + "generate:schema": "npm run generate:schema:json & npm run generate:schema:md & wait", |
| 26 | + "generate:schema:json": "tsx scripts/generate-schemas.ts", |
| 27 | + "generate:schema:md": "find schema/*/schema.mdx -print0 | xargs -0 -P 0 -I {} sh -c 'f=\"{}\"; typedoc --entryPoints \"${f%.mdx}.ts\" --schemaPageTemplate \"$f\" > docs/specification/$(basename -- $(dirname -- \"$f\"))/schema.mdx'", |
| 28 | + "generate:seps": "tsx scripts/render-seps.ts", |
| 29 | + "format": "npm run format:docs && npm run format:schema", |
| 30 | + "format:docs": "prettier --write \"**/*.{md,mdx}\" --ignore-path .prettierignore", |
| 31 | + "format:schema": "prettier --write \"schema/**/*.ts\"", |
24 | 32 | "check": "npm run check:schema && npm run check:docs && npm run check:seps", |
25 | | - "check:seps": "tsx scripts/render-seps.ts --check", |
26 | | - "check:docs": "npm run check:docs:format && npm run check:docs:js-comments && npm run check:docs:links", |
27 | | - "check:docs:format": "prettier --check \"**/*.{md,mdx}\"", |
28 | | - "check:docs:js-comments": "tsx scripts/check-mdx-comments.ts", |
29 | | - "check:docs:links": "cd docs && npx mint broken-links", |
30 | 33 | "check:schema": "npm run check:schema:ts && npm run check:schema:json && npm run check:schema:examples && npm run check:schema:md", |
31 | 34 | "check:schema:ts": "tsc --noEmit && eslint schema/ && prettier --check \"schema/**/*.ts\"", |
32 | 35 | "check:schema:json": "tsx scripts/generate-schemas.ts --check", |
33 | 36 | "check:schema:examples": "tsx scripts/validate-examples.ts", |
34 | 37 | "check:schema:md": "for f in schema/*/schema.mdx; do typedoc --entryPoints \"${f%.mdx}.ts\" --schemaPageTemplate \"$f\" | cmp docs/specification/$(basename -- $(dirname -- \"$f\"))/schema.mdx - || exit 1; done", |
35 | | - "format": "prettier --write \"**/*.{md,mdx}\" --ignore \"docs/specification/*/schema.mdx\" ", |
36 | | - "generate:schema": "npm run generate:schema:json & npm run generate:schema:md & wait", |
37 | | - "generate:seps": "tsx scripts/render-seps.ts", |
38 | | - "generate:schema:json": "tsx scripts/generate-schemas.ts", |
39 | | - "generate:schema:md": "find schema/*/schema.mdx -print0 | xargs -0 -P 0 -I {} sh -c 'f=\"{}\"; typedoc --entryPoints \"${f%.mdx}.ts\" --schemaPageTemplate \"$f\" > docs/specification/$(basename -- $(dirname -- \"$f\"))/schema.mdx'", |
40 | | - "prep:changes": "npm run check:schema:ts && npm run generate:schema && npm run check:docs && npm run format", |
| 38 | + "check:docs": "npm run check:docs:format && npm run check:docs:js-comments && npm run check:docs:links", |
| 39 | + "check:docs:format": "prettier --check \"**/*.{md,mdx}\"", |
| 40 | + "check:docs:js-comments": "tsx scripts/check-mdx-comments.ts", |
| 41 | + "check:docs:links": "cd docs && npx mint broken-links", |
| 42 | + "check:seps": "tsx scripts/render-seps.ts --check", |
41 | 43 | "serve:docs": "cd docs && npx mint dev", |
42 | | - "serve:blog": "cd blog && hugo serve" |
| 44 | + "serve:blog": "cd blog && hugo serve", |
| 45 | + "prep": "npm run check:schema:ts && npm run generate && npm run check:docs && npm run format" |
43 | 46 | }, |
44 | 47 | "devDependencies": { |
45 | 48 | "@eslint/js": "^9.8.0", |
|
0 commit comments