mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 17:29:14 +00:00
fix: remove leftover testing
This commit is contained in:
parent
33ca1358cc
commit
25ae5d28f4
@ -49,7 +49,6 @@ const cleanupDistDirectory = async ({
|
|||||||
for (const filename of validFilenames) {
|
for (const filename of validFilenames) {
|
||||||
await fs.remove(path.resolve(distDir, filename));
|
await fs.remove(path.resolve(distDir, filename));
|
||||||
}
|
}
|
||||||
throw new Error('asdf');
|
|
||||||
} catch (err: unknown) {
|
} catch (err: unknown) {
|
||||||
const generatingDuration = timer.end(timerName);
|
const generatingDuration = timer.end(timerName);
|
||||||
cleaningSpinner.text = `Error cleaning dist dir: ${err} (${prettyTime(generatingDuration)})`;
|
cleaningSpinner.text = `Error cleaning dist dir: ${err} (${prettyTime(generatingDuration)})`;
|
||||||
@ -188,10 +187,8 @@ const develop = async ({
|
|||||||
timer.start('compilingTS');
|
timer.start('compilingTS');
|
||||||
const compilingTsSpinner = logger.spinner(`Compiling TS`).start();
|
const compilingTsSpinner = logger.spinner(`Compiling TS`).start();
|
||||||
|
|
||||||
if (tsconfig) {
|
|
||||||
await cleanupDistDirectory({ tsconfig, logger, timer });
|
await cleanupDistDirectory({ tsconfig, logger, timer });
|
||||||
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: false } });
|
await tsUtils.compile(cwd, { configOptions: { ignoreDiagnostics: false } });
|
||||||
}
|
|
||||||
|
|
||||||
const compilingDuration = timer.end('compilingTS');
|
const compilingDuration = timer.end('compilingTS');
|
||||||
compilingTsSpinner.text = `Compiling TS (${prettyTime(compilingDuration)})`;
|
compilingTsSpinner.text = `Compiling TS (${prettyTime(compilingDuration)})`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user