We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1e6e3e commit d046879Copy full SHA for d046879
src/index.ts
@@ -447,7 +447,8 @@ export function create (rawOptions: CreateOptions = {}): Register {
447
448
const readFile = options.readFile || ts.sys.readFile
449
const fileExists = options.fileExists || ts.sys.fileExists
450
- const transpileOnly = options.transpileOnly === true || options.typeCheck === false
+ // typeCheck can override transpileOnly, useful for CLI flag to override config file
451
+ const transpileOnly = options.transpileOnly === true && options.typeCheck !== true
452
const transformers = options.transformers || undefined
453
const ignoreDiagnostics = [
454
6059, // "'rootDir' is expected to contain all source files."
0 commit comments