generated from nhcarrigan/template
docs: update instructions for rootDir and outDir
This commit is contained in:
parent
7f786e4c3a
commit
236e11fbbd
14
README.md
14
README.md
@ -22,24 +22,18 @@ This package is compatible with TypeScript 5.
|
||||
|
||||
To use this package, add the following to your `tsconfig.json` file:
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@nhcarrigan/typescript-config"
|
||||
}
|
||||
```
|
||||
|
||||
By default, the root directory is `src` and the output directory is `prod`. To override these:
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@nhcarrigan/typescript-config",
|
||||
"compilerOptions": {
|
||||
"rootDir": "code",
|
||||
"outDir": "dist"
|
||||
"rootDir": "./src",
|
||||
"outDir": "./prod"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You may set `rootDir` and `outDir` to any directory in your project you'd like. As of V4.0.0 this package no longer sets them by default due to incompatibilities with some package managers.
|
||||
|
||||
## Feedback and Bugs
|
||||
|
||||
If you have feedback or a bug report, please feel free to open a GitHub issue!
|
||||
|
Loading…
x
Reference in New Issue
Block a user