build: inject tsconfig

pull/304/head
undefined 3 years ago
parent a2d5996311
commit 64a2c6ff82

@ -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;

Loading…
Cancel
Save