mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
fix: use tsconfig.config for ts project check
This commit is contained in:
parent
cf6fc4e024
commit
dffb2ce6d6
@ -85,7 +85,7 @@ const develop = async ({
|
||||
return;
|
||||
}
|
||||
|
||||
if (tsconfig) {
|
||||
if (tsconfig?.config) {
|
||||
// Build without diagnostics in case schemas have changed
|
||||
await cleanupDistDirectory({ tsconfig, logger, timer });
|
||||
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });
|
||||
@ -126,7 +126,7 @@ const develop = async ({
|
||||
cluster.on('message', async (worker, message) => {
|
||||
switch (message) {
|
||||
case 'reload': {
|
||||
if (tsconfig) {
|
||||
if (tsconfig?.config) {
|
||||
// Build without diagnostics in case schemas have changed
|
||||
await cleanupDistDirectory({ tsconfig, logger, timer });
|
||||
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });
|
||||
|
Loading…
x
Reference in New Issue
Block a user