Skip to content

Commit 9f68132

Browse files
committed
add types-specific tsconfig template
1 parent 75768e3 commit 9f68132

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

tsconfig-templates/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# `tsconfig` Templates
22

3-
Every package should get its own copy of these four files. Package-specific options should go in `tsconfig.json` and
4-
test-specific options in `tsconfig.test.json`. The `cjs` and `esm` files shouldn't need to be modified, and only exist
5-
because tsconfigs don't support multiple inheritence.
3+
Every package should get its own copy of these five files. Package-specific options should go in `tsconfig.json` and
4+
test-specific options in `tsconfig.test.json`. The `cjs`, `esm`, and `types` files shouldn't need to be modified, and
5+
only exist because tsconfigs don't support multiple inheritence.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
4+
"compilerOptions": {
5+
"declaration": true,
6+
"declarationMap": true,
7+
"emitDeclarationOnly": true,
8+
"outDir": "build/types"
9+
}
10+
}

0 commit comments

Comments
 (0)