-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f55468c
commit 2556bf1
Showing
3 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{ | ||
"extends": "@tsconfig/node20/tsconfig.json", | ||
"compilerOptions": { | ||
"allowImportingTsExtensions": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["test", "node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"extends": "@tsconfig/node20/tsconfig.json", | ||
"compilerOptions": { | ||
// Allows you to use the newest syntax, and have access to console.log | ||
// https://www.typescriptlang.org/tsconfig#lib | ||
"lib": ["ES2020", "dom"], | ||
// Make sure typescript is configured to output ESM | ||
// https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm | ||
"module": "Node16", | ||
// Since this project is using babel, TypeScript may target something very | ||
// high, and babel will make sure it runs on your local Node version. | ||
// https://babeljs.io/docs/en/ | ||
"target": "ES2020", // ESLint doesn't support this yet: "es2022", | ||
|
||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
|
||
// Because jest-resolve isn't like node resolve, the absolute path must be .ts | ||
"allowImportingTsExtensions": true, | ||
"noEmit": true, | ||
|
||
// Because we'll be using babel: ensure that Babel can safely transpile | ||
// files in the TypeScript project. | ||
// | ||
// https://babeljs.io/docs/en/babel-plugin-transform-typescript/#caveats | ||
"isolatedModules": true | ||
}, | ||
"exclude": [".meta/*", "__typetests__/*", "*.test.ts", "*.tst.ts"] | ||
} |