Skip to content

Commit

Permalink
(fix) make --not-tsconfig flag work (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jan 24, 2023
1 parent 6c5d99b commit c614a23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/svelte-check/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ function findFile(searchPath: string, fileName: string) {
}

function getTsconfig(myArgs: Record<string, any>, workspacePath: string) {
if (myArgs['no-tsconfig']) {
// Work around undocumented behavior in Sade where `no-tsconfig` is never true / means "tsconfig is false"
if (myArgs['no-tsconfig'] || process.argv.includes('--no-tsconfig')) {
return undefined;
}
let tsconfig: string | undefined = myArgs.tsconfig;
Expand Down

0 comments on commit c614a23

Please sign in to comment.