{"version":3,"file":"is-using-typescript.mjs","sources":["../../src/utils/is-using-typescript.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 isUsingTypeScript = (\n  dir: string,\n  filename: string | undefined = undefined\n): Promise<boolean> => {\n  const filePath = getConfigPath(dir, { filename });\n\n  return fse.pathExists(filePath as string);\n};\n"],"names":["isUsingTypeScript","dir","filename","undefined","filePath","getConfigPath","fse","pathExists"],"mappings":";;;AAIA;;AAEC,IACM,MAAMA,iBAAAA,GAAoB,CAC/BC,GAAAA,EACAC,WAA+BC,SAAS,GAAA;IAExC,MAAMC,QAAAA,GAAWC,cAAcJ,GAAAA,EAAK;AAAEC,QAAAA;AAAS,KAAA,CAAA;IAE/C,OAAOI,GAAAA,CAAIC,UAAU,CAACH,QAAAA,CAAAA;AACxB;;;;"}