fix(nuxi): handle missing typescript options in build (#1972)

This commit is contained in:
Daniel Roe 2021-11-16 15:20:27 +00:00 committed by GitHub
parent 86a47a2fea
commit f3a1ac5c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
module: 'ESNext', module: 'ESNext',
moduleResolution: 'Node', moduleResolution: 'Node',
skipLibCheck: true, skipLibCheck: true,
strict: nuxt.options.typescript.strict, strict: nuxt.options.typescript?.strict ?? false,
allowJs: true, allowJs: true,
noEmit: true, noEmit: true,
resolveJsonModule: true, resolveJsonModule: true,