Skip to content

Commit

Permalink
Add docs folder tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWilliams2 authored and marcvelmer committed Apr 2, 2024
1 parent ad333ae commit f93eb42
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
"include": ["../src"],
"compilerOptions": {
"lib": ["esnext"],
"allowJs": true,
"target": "esnext",
"resolveJsonModule": true,
// match output dir to input dir. e.g. dist/index instead of dist/src/index
"rootDir": "../",
// use Node's module resolution algorithm, instead of the legacy TS one
"moduleResolution": "nodenext",
"module": "nodenext",
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// output .js.map sourcemap files for consumers
"sourceMap": true,
// match output dir to input dir. e.g. dist/index instead of dist/src/index
// "rootDir": "./src",
"rootDir": "./src",
// stricter type-checking for stronger correctness. Recommended by TS
"strict": false,
// linter checks for common issues
Expand Down

0 comments on commit f93eb42

Please sign in to comment.