mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
workspace: ensure plugins dir
This commit is contained in:
1 parent
ff0d172dd3
commit
6ac3ea11f2
1 file changed
+4
-3
+4
-3
@@ -68,6 +68,10 @@ fs.writeFileSync(path.resolve(process.cwd(), 'packages', 'ui-default', 'tsconfig
|
||||
},
|
||||
}));
|
||||
|
||||
if (!fs.existsSync(path.resolve(process.cwd(), 'plugins'))) {
|
||||
fs.mkdirSync(path.resolve(process.cwd(), 'plugins'));
|
||||
}
|
||||
|
||||
for (const type of ['packages', 'plugins']) {
|
||||
const packages = fs.readdirSync(path.resolve(process.cwd(), type));
|
||||
for (const package of packages) {
|
||||
@@ -94,6 +98,3 @@ for (const type of ['packages', 'plugins']) {
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(path.resolve(process.cwd(), 'tsconfig.json'), JSON.stringify(config));
|
||||
if (!fs.existsSync(path.resolve(process.cwd(), 'plugins'))) {
|
||||
fs.mkdirSync(path.resolve(process.cwd(), 'plugins'));
|
||||
}
|
||||
Reference in new issue
Block a user