docs: update typedoc to use src/index.ts as entry
# What's changed? * use src/index.ts as entry for typedocs instead of dist/index.d.ts (otherwise crashes with new vue-tsc version) * update tsconfigs * update turbo config and skip building d.ts files for typedocs
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
"prepare": "ts-patch install -s",
|
||||
"build": "vite build",
|
||||
"types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && shx rm -rf tmp && pnpm lint:dist",
|
||||
"typedoc": "typedoc --tsconfig tsconfig.docs.json dist/index.d.ts --out typedocs",
|
||||
"typedoc": "typedoc --tsconfig tsconfig.docs.json src/index.ts --out typedocs",
|
||||
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
|
||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path ../../.gitignore .",
|
||||
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
"noUnusedLocals": false,
|
||||
"strictNullChecks": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "preserve",
|
||||
"types": ["vite/client", "vue/macros"],
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"~/*": ["src/*"]
|
||||
},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./tmp",
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"target": "es2017",
|
||||
@@ -15,6 +14,7 @@
|
||||
"strictNullChecks": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"types": ["vite/client"],
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"~/*": ["src/*"]
|
||||
},
|
||||
@@ -23,5 +23,6 @@
|
||||
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
|
||||
]
|
||||
},
|
||||
"include": ["dist", "src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"typedoc": {
|
||||
"dependsOn": ["types"],
|
||||
"outputs": ["typedocs/**"]
|
||||
},
|
||||
"theme": {
|
||||
|
||||
Reference in New Issue
Block a user