mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 20:29:01 +00:00
Merge branch 'master' into dependabot/npm_and_yarn/googleapis/drive-27.0.0
This commit is contained in:
@@ -28,7 +28,9 @@ export function generateAssetsPlugin(isDev = false) {
|
||||
|
||||
// Compile Legacy themes
|
||||
const themes = { Legacy: {}, V3: {} };
|
||||
const legacyDirs = fs.readdirSync('./themes/Legacy');
|
||||
const legacyDirs = fs.readdirSync('./themes/Legacy', { withFileTypes: true })
|
||||
.filter(entry => entry.isDirectory())
|
||||
.map(entry => entry.name);
|
||||
for (const dir of legacyDirs) {
|
||||
const themeData = JSON.parse(fs.readFileSync(`./themes/Legacy/${dir}/settings.json`, 'utf-8'));
|
||||
themeData.path = dir;
|
||||
@@ -41,7 +43,9 @@ export function generateAssetsPlugin(isDev = false) {
|
||||
}
|
||||
|
||||
// Compile V3 themes
|
||||
const v3Dirs = fs.readdirSync('./themes/V3');
|
||||
const v3Dirs = fs.readdirSync('./themes/V3', { withFileTypes: true })
|
||||
.filter(entry => entry.isDirectory())
|
||||
.map(entry => entry.name);
|
||||
for (const dir of v3Dirs) {
|
||||
const themeData = JSON.parse(fs.readFileSync(`./themes/V3/${dir}/settings.json`, 'utf-8'));
|
||||
themeData.path = dir;
|
||||
|
||||
Reference in New Issue
Block a user