{"version":3,"sources":["../src/package/isTypeScriptPackage.ts"],"names":["isTypeScriptPackage","entry","projectFolder","getPackageRootPath","fileIsExists","path"],"mappings":";;;;AASO,SAASA,CAAAA,CAAoBC,CAAsB,CAAA,CACtD,IAAIC,CAAAA,CAAgBC,GAAmBF,CAAAA,CAAK,CAC5C,CAAA,OAAGC,CACOE,CAAAA,GAAAA,CAAaC,CAAK,CAAA,IAAA,CAAKH,CAAc,CAAA,eAAe,CAAC,CAAA,EACpDE,GAAaC,CAAAA,CAAAA,CAAK,IAAKH,CAAAA,CAAAA,CAAc,KAAM,CAAA,eAAe,CAAC,CAAA,CAE/D,KACX","file":"chunk-6MTRZVX5.mjs","sourcesContent":["import { fileIsExists } from \"../fs/fileIsExists\"\nimport { getPackageRootPath } from \"./getPackageRootPath\"\nimport path from \"node:path\"\n\n/**\n * 判断当前是否是Typescript工程\n * \n * \n */\nexport function isTypeScriptPackage(entry?:string):boolean{\n    let projectFolder = getPackageRootPath(entry)\n    if(projectFolder){\n       return fileIsExists(path.join(projectFolder,\"tsconfig.json\"))\n            || fileIsExists(path.join(projectFolder,\"src\",\"tsconfig.json\"))\n    }\n    return false\n}\n"]}