@sophonjs/config-tsc

1.1.2 • Public • Published

@sophonjs/config-tsc

Common TypeScript configuration for SophonJS libraries.

Tool: TypeScript

Supported Version: ^3.2.2

Exposed CLI commands:

  • sophonjs-config-tsc
  • sophonjs-config-build

Usage

Add tsconfig.json:

{
  "extends": "@sophonjs/config-tsc",
  "include": ["src/**/*.ts", "test/**/*.ts"]
}

Add tsconfig.prod.json:

{
  "extends": "@sophonjs/config-tsc",
  "compilerOptions": {
    "outDir": "./dist"
  },
  "include": ["src/**/*.ts"]
}

Use CLI commands above in package.json:

  "scripts": {
    "tsc": "sophonjs-config-tsc",
    "build": "sophonjs-config-build"
  }

Readme

Keywords

none

Package Sidebar

Install

npm i @sophonjs/config-tsc

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

1.55 kB

Total Files

5

Last publish

Collaborators

  • superstring