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:
bcakmakoglu
2022-06-07 22:49:59 +02:00
committed by Braks
parent 77b441b1c6
commit c289e7e3cc
4 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -16,8 +16,8 @@
"noUnusedLocals": false,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"types": ["vite/client", "vue/macros"],
"jsx": "preserve",
"paths": {
"~/*": ["src/*"]
},

View File

@@ -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"]
}

View File

@@ -12,7 +12,6 @@
"outputs": ["dist/**"]
},
"typedoc": {
"dependsOn": ["types"],
"outputs": ["typedocs/**"]
},
"theme": {