Skip to content

Commit

Permalink
Workaround this infamous bug: microsoft/TypeScript#27379
Browse files Browse the repository at this point in the history
The bug occurs when you try to pass a file to `tsc`. When passing a file to `tsc`, `tsc` will then proceed to ignore `tsconfig.json` completely. There's also no way to pass a config file, and a specific file at the same time.
  • Loading branch information
abdullah-kasim committed Aug 23, 2023
1 parent a41ddc7 commit b35c765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "ESLint plugin for internal WordPress VIP projects",
"main": "index.js",
"scripts": {
"check-types": "tsc __tests__/**/*.ts",
"check-types": "tsc -p tsconfig.check.json",
"cmd:format": "prettier --ignore-path .gitignore '**/*.(js|json|jsx|md|ts|tsx|yml|yaml)'",
"cmd:jest": "npm run link-plugin && jest",
"cmd:lint": "npm run link-plugin && eslint --ext 'js,jsx,ts,tsx'",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": [ "**/*.ts" ],
"exclude": [ "__fixtures__" ]
}

0 comments on commit b35c765

Please sign in to comment.