feat: Don't recompile typescript project if already compiled
parent
7206577eed
commit
adae7af409
|
@ -21,8 +21,9 @@ const getStrapiApp = async () => {
|
|||
const appDir = process.cwd();
|
||||
const isTSProject = await tsUtils.isUsingTypeScript(appDir);
|
||||
const outDir = await tsUtils.resolveOutDir(appDir);
|
||||
const alreadyCompiled = await fs.existsSync(outDir);
|
||||
|
||||
if (isTSProject) {
|
||||
if (isTSProject && !alreadyCompiled) {
|
||||
await tsUtils.compile(appDir, {
|
||||
watch: false,
|
||||
configOptions: { options: { incremental: true } },
|
||||
|
|
Loading…
Reference in New Issue