Microbundle: Add option to produce no typescript typings

Created on 15 Oct 2019  路  2Comments  路  Source: developit/microbundle

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.

Most helpful comment

No need for an additional flag. This feature can be toggled right in tsconfig.json:

{
  "compilerOptions": {
    "declaration": false
  }
}

All 2 comments

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",
// ...
Was this page helpful?
0 / 5 - 0 ratings