5.0.4 • Published 8 months ago
@repodog/ts-config v5.0.4
@repodog/ts-config
The Repodog tsconfig.
Install package and peer dependency
# terminal
npm install @repodog/ts-config typescript --save-dev
Use package
Configure
Project root
If you are building the project from the root.
// tsconfig.json
{
"extends": "@repodog/ts-config/index.json",
"include": [
"src/**/*"
]
}
// tsconfig.build.json
{
"extends": ["./tsconfig.json", "@repodog/ts-config/build.json"],
"compilerOptions": {
"outDir": "dist/types",
"rootDir": "src"
},
"exclude": [
"**/*.test.*"
]
}
Workspace root
If you are building the project from each workspace root.
// tsconfig.json
{
"extends": "@repodog/ts-config/index.json",
"include": [
"packages/**/*"
]
}
// <workspace>/tsconfig.json
{
"extends": ["@repodog/ts-config/index.json", "@repodog/ts-config/build.json"],
"include": [
"src/**/*"
],
"references": []
}
// <workspace>/tsconfig.build.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/types",
"rootDir": "src"
},
"exclude": [
"**/*.test.*"
]
}
Execute
// package.json
{
"scripts": {
"compile:types": "tsc --project ./tsconfig.build.json",
"type-check": "tsc --noEmit"
}
}
5.0.4
8 months ago
5.0.3
8 months ago
5.0.2
9 months ago
5.0.1
9 months ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.1
2 years ago
1.0.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.0-alpha.0
2 years ago
1.0.1-alpha.0
2 years ago
1.0.2-alpha.0
2 years ago
1.0.0-alpha.0
2 years ago
0.3.25
5 years ago
0.3.24
5 years ago
0.3.23
6 years ago
0.3.22
6 years ago
0.3.21
6 years ago
0.3.20
6 years ago
0.3.18
6 years ago
0.3.17
6 years ago
0.3.16
6 years ago
0.3.15
6 years ago
0.3.12
6 years ago
0.3.10
6 years ago
0.2.26
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago