Skip to content

Commit ae76ae7

Browse files
chore(package): fix npm script "lint:tsc"
1 parent ad987e2 commit ae76ae7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"lint": "eslint .",
3535
"lint:fix": "npm run lint -- --fix",
3636
"lint:package": "publint",
37-
"lint:tsc": "tsc --noEmit",
37+
"lint:tsc": "tsc --project tsconfig.test.json",
3838
"prepare": "husky",
39-
"prepublishOnly": "npm run lint && npm run lint:tsc && npm run test:ci && npm run clean && npm run build",
39+
"prepublishOnly": "npm run build && npm run lint && npm run lint:tsc && npm run lint:package && npm run test:ci",
4040
"size-limit": "size-limit",
4141
"test": "jest --testPathIgnorePatterns __tests__/integration",
4242
"test:ci": "CI=true npm test -- --ci --colors",

tsconfig.test.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
22
"extends": "./tsconfig.build.json",
3-
"include": ["__tests__", "benchmark", "src", "*.mjs", "*.ts"]
3+
"compilerOptions": {
4+
"target": "esnext",
5+
"module": "nodenext",
6+
"moduleResolution": "nodenext",
7+
"noEmit": true,
8+
"allowJs": true
9+
},
10+
"include": ["__tests__", "benchmark", "lib", "src", "umd", "*.mjs", "*.ts"]
411
}

0 commit comments

Comments
 (0)