UNPKG

@digicms/cms

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

21 lines (15 loc) 490 B
'use strict'; const tsUtils = require('@strapi/typescript-utils'); module.exports = async (dir) => { const appDir = dir || process.cwd(); const isTSProject = await tsUtils.isUsingTypeScript(appDir); const outDir = await tsUtils.resolveOutDir(appDir); if (isTSProject) { await tsUtils.compile(appDir, { watch: false, configOptions: { options: { incremental: true } }, }); } const distDir = isTSProject ? outDir : appDir; return { appDir, distDir }; };