mirror of
https://github.com/strapi/strapi.git
synced 2026-06-02 16:27:47 +00:00
d353b279e4
Convert the docs Docusaurus config files to TypeScript to match the modern Docusaurus scaffold and give editors correct per-file types: - docusaurus.config.js -> .ts (typed Config / Preset options, ESM) - sidebars.js -> .ts (typed SidebarsConfig) - remark-design-system-links.js -> .ts (typed Transformer<Root>) - babel.config.js: ESM export, @docusaurus/babel preset (3.x split) - add docs/tsconfig.json extending @docusaurus/tsconfig (editor-only, not used by docusaurus build) - add @docusaurus/babel, @docusaurus/tsconfig, @types/mdast deps Also adds "docs" to the root jsconfig.json excludes, since docs is a standalone Docusaurus project that now owns its own config. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
22 lines
357 B
JSON
22 lines
357 B
JSON
{
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
"module": "commonjs",
|
|
"target": "es6"
|
|
},
|
|
"exclude": [
|
|
"**/node_modules/*",
|
|
".git",
|
|
".npm",
|
|
"**/.cache/*",
|
|
"**/.tmp/*",
|
|
"**/dist/*",
|
|
"**/build/*",
|
|
"**/*.test.js",
|
|
"**/*.test.api.js",
|
|
"**/examples/getstarted/*",
|
|
"**/examples/kitchensink/*",
|
|
"docs"
|
|
]
|
|
}
|