tsconfigs 0.1.1-sha.a49a8f53843772f36dff33e22108685a9a801a95
Install from the command line:
Learn more about npm packages
$ npm install @darkpatternsdigital/tsconfigs@0.1.1-sha.a49a8f53843772f36dff33e22108685a9a801a95
Install via package.json:
"@darkpatternsdigital/tsconfigs": "0.1.1-sha.a49a8f53843772f36dff33e22108685a9a801a95"
About this version
Provides a standard set of TypeScript configs commonly used with projects.
All configs are intended for use with "composite" structures, with one TypeScript project structure config for the full repository.
-
Install
@darkpatternsdigital/tsconfigs
via your npm client. -
Set up your tsconfig with:
- a reference to the corresponding config
compilerOptions.outDir
compilerOptions.rootDir
- Any other settings you need, such as references.
See an example below:
{ "extends": "@darkpatternsdigital/tsconfigs/configs/tsconfig.base.json", "compilerOptions": { "outDir": "./dist", "rootDir": "./src" } }
Intended to be a common baseline for most tsconfigs.
- Composite project structure
- Targets ESNext with a bundler
-
skipLibCheck
to improve performance -
forceConsistentCasingInFileNames
to avoid deployment issues later - Uses
strict
mode but disables some things normally checked by eslint.
Intended for the root project of a monorepo.
- Based on
@darkpatternsdigital/tsconfigs/configs/tsconfig.base.json
- Disables build outputs
Intended for maximum legacy compatibility.
- Based on
@darkpatternsdigital/tsconfigs/configs/tsconfig.base.json
- Switches to ES5-compatible output, commonjs, and node module resolution.
- Adds type reference to
@types/node
.
Intended for modern node work, such as libraries or server utilities.
- Based on
@darkpatternsdigital/tsconfigs/configs/tsconfig.base.json
- Adds type reference to
@types/node
.
Alias for @darkpatternsdigital/tsconfigs/configs/tsconfig.node-esm.json
.
A starting point for a React project as used with Vite.
- Based on
@darkpatternsdigital/tsconfigs/configs/tsconfig.base.json
- Uses the React JSX runtime
- Enables libraries for browsers, including the DOM and web workers.
Details
- tsconfigs
-
darkpatternsdigital
- 7 months ago
- MIT
- 2 dependencies
Assets
- tsconfigs-0.1.1-sha.a49a8f53843772f36dff33e22108685a9a801a95.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all- 0.1.1-sha.a49a8f53843772f36dff33e22108685a9a801a95
- 0.1.1-sha.45e1bd71bf502881da248009fa76b5e9ff7ee480
- 0.1.1-sha.ec71920987df8d75ed002adb3c6d1dd304ef7de0
- 0.1.1-sha.c22184f0baba90f4042d4fff92ca782c023ce454
- 0.1.1-sha.196e9386444bbd34f62ba09dfd57e0afa222829d
- 0.1.1-sha.7f8c95448722d8873ca58e910836a5c4f76d687d
- 0.1.1-sha.b643a5d6bc2bc4205000c672d678690cd4a1ebb6
- 0.1.1-sha.1107d8bd4a543b36bf07b50810ce0d37cf5327b8
- 0.1.1-sha.34953676a20cb98b70fdcf2d4451fa19a5e204ec
- 0.1.1-sha.625ef91c0a3e4b91af8b90a4fae2b2fd2dbd3836