Skip to content

Commit a71c437

Browse files
committed
chore: update tsconfig.json
1 parent 86cf87c commit a71c437

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"prepare": "pnpm simple-git-hooks",
5353
"build": "pkgroll --minify",
5454
"lint": "lintroll --node --cache .",
55-
"type-check": "tsc --noEmit",
55+
"type-check": "tsc",
5656
"test": "pnpm build && node ./dist/cli.mjs tests/index.ts",
5757
"prepack": "pnpm build && clean-pkg-json",
5858
"docs:dev": "pnpm --filter=docs dev",

src/utils/transform/apply-transformers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import remapping, { type SourceMap, SourceMapInput } from '@ampproject/remapping';
1+
import remapping, { type SourceMap, type SourceMapInput } from '@ampproject/remapping';
22

33
type MaybePromise<T> = T | Promise<T>;
44

src/utils/transform/cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class FileCache<ReturnType> extends Map<string, ReturnType> {
5151
});
5252
}
5353

54-
get(key: string) {
54+
override get(key: string) {
5555
const memoryCacheHit = super.get(key);
5656

5757
if (memoryCacheHit) {
@@ -85,7 +85,7 @@ class FileCache<ReturnType> extends Map<string, ReturnType> {
8585
return cachedResult;
8686
}
8787

88-
set(key: string, value: ReturnType) {
88+
override set(key: string, value: ReturnType) {
8989
super.set(key, value);
9090

9191
if (value) {

tests/tsconfig.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

tsconfig.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "Preserve",
3+
"target": "es2022",
4+
"moduleDetection": "force",
5+
6+
7+
"module": "preserve",
8+
"resolveJsonModule": true,
9+
"allowJs": true,
510
"strict": true,
11+
// "noUncheckedIndexedAccess": true,
12+
"noImplicitOverride": true,
613
"noEmit": true,
714
"esModuleInterop": true,
8-
"isolatedModules": true,
9-
"skipLibCheck": true
10-
},
11-
"include": [
12-
"src"
13-
]
15+
"verbatimModuleSyntax": true,
16+
"skipLibCheck": true,
17+
}
1418
}

0 commit comments

Comments
 (0)