mirror of
https://github.com/strapi/strapi.git
synced 2025-11-07 21:58:23 +00:00
Ignore diagnostics when generating types from the cli
This commit is contained in:
parent
795b9c4df4
commit
f5a5fac40f
@ -10,7 +10,7 @@ module.exports = async ({ debug, silent, verbose, outDir }) => {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const appContext = await strapi.compile();
|
const appContext = await strapi.compile({ ignoreDiagnostics: true });
|
||||||
const app = await strapi(appContext).register();
|
const app = await strapi(appContext).register();
|
||||||
|
|
||||||
await tsUtils.generators.generate({
|
await tsUtils.generators.generate({
|
||||||
@ -25,5 +25,5 @@ module.exports = async ({ debug, silent, verbose, outDir }) => {
|
|||||||
artifacts: { contentTypes: true, components: true },
|
artifacts: { contentTypes: true, components: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
app.destroy();
|
await app.destroy();
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user