diff --git a/svg-generator/generator.ts b/svg-generator/generator.ts index 0be09f5..54f3b39 100644 --- a/svg-generator/generator.ts +++ b/svg-generator/generator.ts @@ -5,6 +5,10 @@ import { GeneratorConfig, defaultConfig } from './config'; import { createTree, INDEX } from './tree'; import { createTypeFile } from './create-types'; +function skipTsCheck(fileContent: string) { + return `// @ts-nocheck\n${fileContent}`; +} + export function generateSVGIcons(config: GeneratorConfig | null) { if (!config) { console.log(`Can't find a config object!`); @@ -24,7 +28,7 @@ export function generateSVGIcons(config: GeneratorConfig | null) { .filter(({ name }) => name !== INDEX) .map(({ content }) => content) .join('\n\n'); - outputFileSync(join(mergedConfig.outputPath, `${mergedConfig.rootBarrelFileName}.ts`), allExports, { + outputFileSync(join(mergedConfig.outputPath, `${mergedConfig.rootBarrelFileName}.ts`), skipTsCheck(allExports), { encoding: 'utf-8', }); @@ -32,7 +36,7 @@ export function generateSVGIcons(config: GeneratorConfig | null) { } else { virtualTree.forEach(({ path, content, name }) => { name !== INDEX && names.push(name); - outputFileSync(path, content, { encoding: 'utf-8' }); + outputFileSync(path, skipTsCheck(content), { encoding: 'utf-8' }); }); } diff --git a/svg-generator/package.json b/svg-generator/package.json index a52b722..172c1c1 100644 --- a/svg-generator/package.json +++ b/svg-generator/package.json @@ -1,6 +1,6 @@ { "name": "@ngneat/svg-generator", - "version": "7.0.1", + "version": "7.0.2", "description": "svg generator", "main": "generator.js", "bin": {