diff --git a/build/prepare.js b/build/prepare.js index 2fe5b1cf..7a1eee6e 100644 --- a/build/prepare.js +++ b/build/prepare.js @@ -44,6 +44,29 @@ const configFlat = { exclude: [], }; +fs.writeFileSync(path.resolve(process.cwd(), 'packages', 'ui-default', 'tsconfig.json'), JSON.stringify({ + exclude: [ + './public', + ], + compilerOptions: { + resolveJsonModule: true, + jsx: 'react', + module: 'es2020', + allowSyntheticDefaultImports: true, + target: 'ES2020', + lib: [ + 'ES2020', + ], + baseUrl: '.', + moduleResolution: 'node', + paths: { + 'vj/*': [ + './*', + ], + }, + }, +})); + const packages = fs.readdirSync(path.resolve(process.cwd(), 'packages')); for (const package of packages) { if (package === 'ui-default') continue;