{"version":3,"file":"is-using-typescript-sync.mjs","sources":["../../src/utils/is-using-typescript-sync.ts"],"sourcesContent":["import fse from 'fs-extra';\n\nimport { getConfigPath } from './get-config-path';\n\n/**\n * Checks if `dir` is a using TypeScript (whether there is a tsconfig file or not)\n */\nexport const isUsingTypeScriptSync = (\n  dir: string,\n  filename: string | undefined = undefined\n): boolean => {\n  const filePath = getConfigPath(dir, { filename });\n\n  return filePath ? fse.pathExistsSync(filePath) : false;\n};\n"],"names":["isUsingTypeScriptSync","dir","filename","undefined","filePath","getConfigPath","fse","pathExistsSync"],"mappings":";;;AAIA;;AAEC,IACM,MAAMA,qBAAAA,GAAwB,CACnCC,GAAAA,EACAC,WAA+BC,SAAS,GAAA;IAExC,MAAMC,QAAAA,GAAWC,cAAcJ,GAAAA,EAAK;AAAEC,QAAAA;AAAS,KAAA,CAAA;AAE/C,IAAA,OAAOE,QAAAA,GAAWE,GAAAA,CAAIC,cAAc,CAACH,QAAAA,CAAAA,GAAY,KAAA;AACnD;;;;"}