mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tsconfig) {
|
if (tsconfig?.config) {
|
||||||
// Build without diagnostics in case schemas have changed
|
// Build without diagnostics in case schemas have changed
|
||||||
await cleanupDistDirectory({ tsconfig, logger, timer });
|
await cleanupDistDirectory({ tsconfig, logger, timer });
|
||||||
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });
|
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });
|
||||||
@ -126,7 +126,7 @@ const develop = async ({
|
|||||||
cluster.on('message', async (worker, message) => {
|
cluster.on('message', async (worker, message) => {
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case 'reload': {
|
case 'reload': {
|
||||||
if (tsconfig) {
|
if (tsconfig?.config) {
|
||||||
// Build without diagnostics in case schemas have changed
|
// Build without diagnostics in case schemas have changed
|
||||||
await cleanupDistDirectory({ tsconfig, logger, timer });
|
await cleanupDistDirectory({ tsconfig, logger, timer });
|
||||||
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });
|
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: true } });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user