From f93eb424a0e5b105ef243ac75540756d0bceb23e Mon Sep 17 00:00:00 2001 From: NateWilliams2 Date: Mon, 1 Apr 2024 11:08:14 -0400 Subject: [PATCH] Add docs folder tsconfig --- docs/tsconfig.json | 15 +++++++++++++++ tsconfig.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 docs/tsconfig.json diff --git a/docs/tsconfig.json b/docs/tsconfig.json new file mode 100644 index 00000000..bfeffffc --- /dev/null +++ b/docs/tsconfig.json @@ -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", + } +} diff --git a/tsconfig.json b/tsconfig.json index a3772110..2d23ec22 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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