1.4.1 • Published 3 months ago
@repodog/ts-config v1.4.1
@repodog/ts-config
The Repodog tsconfig.
Install package and dependencies
# 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"
}
}
1.4.1
3 months ago
1.4.0
3 months ago
1.3.1
3 months ago
1.3.0
4 months ago
1.2.0
4 months ago
1.1.7
6 months ago
1.1.6
6 months ago
1.1.5
9 months ago
1.1.4
9 months ago
1.1.1
1 year ago
1.0.0
1 year ago
1.1.3
11 months ago
1.1.2
11 months ago
1.1.0-alpha.0
1 year ago
1.0.1-alpha.0
1 year ago
1.0.2-alpha.0
1 year ago
1.0.0-alpha.0
1 year ago
0.3.25
4 years ago
0.3.24
4 years ago
0.3.23
5 years ago
0.3.22
5 years ago
0.3.21
5 years ago
0.3.20
5 years ago
0.3.18
5 years ago
0.3.17
5 years ago
0.3.16
5 years ago
0.3.15
5 years ago
0.3.12
5 years ago
0.3.10
5 years ago
0.2.26
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago