mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
build: inject tsconfig
This commit is contained in:
1 parent
a2d5996311
commit
64a2c6ff82
1 file changed
+23
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user