@tomjs/tsconfig

1.7.1 • Public • Published

@tomjs/tsconfig

npm node-current (scoped) NPM

English | 中文

Based on @vue/tsconfig's tsconfig, it supports node, vue, and react projects.

use

Install dependencies

pnpm add -D @tomjs/tsconfig

node project

Modify tsconfig.node.json configuration

{
  "extends": "@tomjs/tsconfig/node.json",
  "compilerOptions": {
    "composite": true
  },
  "include": []
}

vue project

Modify tsconfig.json configuration

  • vue.json: common configuration
  • vue-dom.json: loose configuration
{
  "extends": "@tomjs/tsconfig/vue.json",
  "compilerOptions": {},
  "include": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    }
  ]
}

react project

Modify tsconfig.json configuration

  • react.json: common configuration
  • react-dom.json: loose configuration
{
  "extends": "@tomjs/tsconfig/react.json",
  "compilerOptions": {},
  "include": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    }
  ]
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @tomjs/tsconfig

      Weekly Downloads

      3

      Version

      1.7.1

      License

      MIT

      Unpacked Size

      8.16 kB

      Total Files

      11

      Last publish

      Collaborators

      • tomgao365