I am exporting my plugin to dist for NPM and docs for GitHub pages (currently with two commands) and would like to export the plugin to the docs without typescript typings.
No need for an additional flag. This feature can be toggled right in tsconfig.json:
{
"compilerOptions": {
"declaration": false
}
}
That would be one way to say "No typing at all" but I want typings for NPM just not for GitHub pages.
I have tried this with no success:
tsconfig.docs.json:
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": false
}
}
in my package.json:
// ...
"docs-build": "microbundle build -o docs -f umd --tsconfig tsconfig.docs.json",
// ...
Most helpful comment
No need for an additional flag. This feature can be toggled right in
tsconfig.json: