Ignore diagnostics when generating types from the cli

This commit is contained in:
Convly 2023-09-06 17:25:21 +02:00
parent 795b9c4df4
commit f5a5fac40f

View File

@ -10,7 +10,7 @@ module.exports = async ({ debug, silent, verbose, outDir }) => {
process.exit(1);
}
const appContext = await strapi.compile();
const appContext = await strapi.compile({ ignoreDiagnostics: true });
const app = await strapi(appContext).register();
await tsUtils.generators.generate({
@ -25,5 +25,5 @@ module.exports = async ({ debug, silent, verbose, outDir }) => {
artifacts: { contentTypes: true, components: true },
});
app.destroy();
await app.destroy();
};