0.1.0 • Published 2 years ago

@hughx/tsconfig v0.1.0

Weekly downloads
-
License
BlueOak-1.0.0
Repository
github
Last release
2 years ago

@hughx/tsconfig

Installation

# npm i -D
yarn add -D @hughx/tsconfig

You can also install typedoc to take advantage of the TypeDoc configuration.

Usage

Create a tsconfig.json in your project root:

{
  "extends": "@hughx/tsconfig"
}

ℹ️ Note: This sets up default include paths. Due to the way TypeScript configurations work, the paths are relative to the module directory, not the project extending the module. So we assume that the module is installed into node_modules/@hughx/tsconfig/ and that your project is three directories up (../../..). If you install your NPM packages to a nonstandard location you will have to override the include entry in your project’s tsconfig.json.

Environment-specific Configs

You can extend from one of the following to bring in sensible defaults for different use cases:

  • @hughx/tsconfig/react.json
  • @hughx/tsconfig/preact.json
  • @hughx/tsconfig/node.json
  • @hughx/tsconfig/web-components.json

⚠️ Warning: All of the provided configs set compilerOptions.outDir to a dist directory in your project root. However if your project already emits a dist/ as the result of another process, you may use an alternate config to output to compiled/ instead:

  • @hughx/tsconfig/tsconfig--dist-unavailable.json
  • @hughx/tsconfig/react--dist-unavailable.json
  • @hughx/tsconfig/preact--dist-unavailable.json
  • @hughx/tsconfig/node--dist-unavailable.json
  • @hughx/tsconfig/web-components--dist-unavailable.json
0.1.0

2 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago