Search code examples
javascripttypescriptbabeljspackage.jsontsconfig

Can tsconfig.json be placed inside package.json?


Just like babel.rc?

Or maybe its contents can be imported into webpack.config.js?

{
  "name": "Foo",
  "version": "1.0.0",
  "babel": {
    "presets": [
        "@babel/preset-env"
    ],
    "plugins": [
        ["@babel/plugin-proposal-decorators"]
  },
  "tsconfig": { ... },
}

Solution

  • No, there is no official support. However, there is github issue for this feature.