mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 08:58:11 +00:00
fix json generator plugin
This commit is contained in:
@@ -68,8 +68,7 @@ export function generateAssetsPlugin(isDev = false) {
|
||||
await fs.copy("./themes/codeMirror/customThemes", editorThemesBuildDir);
|
||||
|
||||
const editorThemeFiles = fs.readdirSync(editorThemesBuildDir);
|
||||
await fs.outputFile(
|
||||
"./themes/codeMirror/editorThemes.json",
|
||||
await fs.outputFile(`${buildDir}/homebrew/codeMirror/editorThemes.json`,
|
||||
JSON.stringify(["default", ...editorThemeFiles.map((f) => f.slice(0, -4))], null, 2),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user