@codecompose/typescript-config 1.0.0-2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,31 @@
1
1
  # typescript-config
2
2
 
3
- Reusable strict Typescript configurations.
3
+ Opinionated reusable Typescript configurations.
4
+
5
+ It assumes:
6
+
7
+ - A monorepo setup
8
+ - You transpile using a bundler
9
+ - Strict rules
10
+ - src and dist directories
11
+ - ~/ as path alias for src
12
+
13
+ ## Install
14
+
15
+ pnpm i @codecompose/typescript-config
16
+
17
+ ## Usage
18
+
19
+ ```json
20
+ {
21
+ "extends": "@codecompose/typescript-config/library.json"
22
+ }
23
+ ```
24
+
25
+ ## Available Configurations
26
+
27
+ - base
28
+ - library
29
+ - react-library
30
+ - service
31
+ - nextjs
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecompose/typescript-config",
3
- "description": "Reusable strict TypeScript configurations",
4
- "version": "1.0.0-2",
3
+ "description": "Opinionated reusable TypeScript configurations",
4
+ "version": "1.0.1",
5
5
  "license": "MIT",
6
6
  "author": "Thijs Koerselman",
7
7
  "publishConfig": {
@@ -22,6 +22,7 @@
22
22
  "base.json",
23
23
  "nextjs.json",
24
24
  "library.json",
25
+ "react-library.json",
25
26
  "service.json"
26
27
  ],
27
28
  "devDependencies": {
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "A React Component Library",
4
+ "extends": "./base.json",
5
+ "compilerOptions": {
6
+ "lib": ["dom", "dom.iterable", "es2023"],
7
+ "jsx": "preserve",
8
+ /* If transpiling with TypeScript: */
9
+ "sourceMap": true,
10
+
11
+ /* AND if you're building for a library: */
12
+ "declaration": true,
13
+
14
+ /* AND if you're building for a library in a monorepo: */
15
+ "composite": true,
16
+ "declarationMap": true
17
+ }
18
+ }