|
22 | 22 | }, |
23 | 23 | "scripts": { |
24 | 24 | "check": "npm run check:schema && npm run check:docs", |
| 25 | + "check:docs": "npm run check:docs:format && npm run check:docs:links", |
| 26 | + "check:docs:format": "prettier --check \"**/*.{md,mdx}\"", |
| 27 | + "check:docs:links": "cd docs && npx mint broken-links", |
25 | 28 | "check:schema": "npm run check:schema:ts && npm run check:schema:json && npm run check:schema:md", |
26 | 29 | "check:schema:ts": "tsc --noEmit && eslint schema/ && prettier --check \"schema/**/*.ts\"", |
27 | 30 | "check:schema:json": "tsx scripts/generate-schemas.ts --check", |
28 | 31 | "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", |
29 | | - "check:docs": "npm run check:docs:format && npm run check:docs:links", |
30 | | - "check:docs:format": "prettier --check \"**/*.{md,mdx}\"", |
31 | | - "check:docs:links": "cd docs && npx mint broken-links", |
| 32 | + "format": "prettier --write \"**/*.{md,mdx}\" --ignore \"docs/specification/*/schema.mdx\" ", |
32 | 33 | "generate:schema": "npm run generate:schema:json && npm run generate:schema:md", |
33 | 34 | "generate:schema:json": "tsx scripts/generate-schemas.ts", |
34 | 35 | "generate:schema:md": "for f in schema/*/schema.mdx; do typedoc --entryPoints \"${f%.mdx}.ts\" --schemaPageTemplate \"$f\" > docs/specification/$(basename -- $(dirname -- \"$f\"))/schema.mdx; done", |
35 | | - "format": "prettier --write \"**/*.{md,mdx}\" --ignore \"docs/specification/*/schema.mdx\" ", |
| 36 | + "prep:changes": "npm run check:schema:ts && npm run generate:schema && npm run check:docs && npm run format", |
36 | 37 | "serve:docs": "cd docs && npx mint dev", |
37 | 38 | "serve:blog": "cd blog && hugo serve" |
38 | 39 | }, |
|
0 commit comments