Merge pull request #77 from funatic-nl/dont-recompile-typescript-project
Don't recompile typescript project if already compiledpull/84/head
commit
3f02eca41a
|
@ -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