2.0.6 • Published 2 years ago

@oakfinch/tsconfig v2.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

tsconfig

Shared base tsconfig for @oakfinch projects


license TypeScript

latest release on npm latest release on github


github


Installation

Using npm:

npm install --save-dev @oakfinch/tsconfig

Using yarn:

yarn add -D @oakfinch/tsconfig

Usage

Basic usage

Defaults to a commonjs build with an es5 target, output to the ./dist directory

tsconfig.json

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

Explicitly specify a cjs build

tsconfig.json

{
  "extends": "@oakfinch/tsconfig/tsconfig.cjs.json"
}

ESM build

tsconfig.json

{
  "extends": "@oakfinch/tsconfig/tsconfig.esm.json",
}

Multiple builds

You can create multiple builds by having multiple config files, and then specifying them with the --build flag.

When using multiple builds, you'll want to reference the files as @oakfinch/tsconfig/<type> rather than @oakfinch/tsconfig/tsconfig.<type>.json to avoid the builds overriding each other due to having the same outDir.

tsconfig.json

{
  "extends": "@oakfinch/tsconfig/tsconfig.cjs.json"
}

tsconfig.esm.json

{
  "extends": "@oakfinch/tsconfig/tsconfig.esm.json",
}
tsc --build tsconfig.json tsconfig.esm.json 
2.0.5

2 years ago

2.0.6

2 years ago

1.0.11

3 years ago

1.1.14

3 years ago

2.0.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago