0.4.5 • Published 10 months ago

@apitree.cz/ts-config v0.4.5

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

TS Config

NPM Version

TypeScript configuration for ApiTree projects

Installation

pnpm add --save-dev @apitree.cz/ts-config typescript

In a monorepo, install the package in the root, then create configs in each workspace.

Usage

Add one of the following configurations to your tsconfig.json:

Root

Suitable for monorepo root.

{
  "extends": "@apitree.cz/ts-config",
  "include": ["./*.js", "./*.ts"],
  "exclude": ["node_modules"]
}

⚠️ Do not use this configuration in monorepo workspaces or single-package repositories. Pick one of the following instead.

App

Suitable for React SPAs.

{
  "extends": "@apitree.cz/ts-config/app",
  "include": ["**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": ["build", "node_modules"]
}

Library

Suitable for distributable npm packages (framework-agnostic).

{
  "extends": "@apitree.cz/ts-config/library",
  "include": ["**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": ["dist", "node_modules"]
}

Node.js

Suitable for Node.js services and apps.

{
  "extends": "@apitree.cz/ts-config/nodejs",
  "include": ["**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": ["build", "node_modules"]
}

Next.js

Suitable for Next.js apps.

{
  "extends": "@apitree.cz/ts-config/nextjs",
  "include": [".next/types/**/*.ts", "**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": [".next/**/*.js", "node_modules"]
}

Nest.js

Suitable for Nest.js apps.

{
  "extends": "@apitree.cz/ts-config/nestjs",
  "include": ["**/*.js", "**/*.ts"],
  "exclude": ["build", "node_modules"]
}
0.3.0

1 year ago

0.4.5

10 months ago

0.4.4

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.2.4

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago