Files
admin 810c5d5aef Fix various bugs and toolchain
- Fix an issue where dist might not have the proper package.json
- Fix an issue with PublicServers adding button to guild list
- Fix the placement of BD in settings
- Change default modal button to `primary`
- Change restart prompts to have `danger` prop
- Change tooltips to use `primary` rather than `black`
- Remove VoiceMode
- Remove DarkMode
- Give a hover effect to the public servers button
- Fix expanding icon in emote menu
- Fix over-bolded text in setting descriptions
2021-03-06 15:26:48 -05:00

18 lines
503 B
JavaScript

const fs = require("fs");
const path = require("path");
module.exports = function(dist) {
console.log("");
console.log("Ensuring build validity");
const files = [
path.join(dist, "injector.js"),
path.join(dist, "preload.js"),
path.join(dist, "renderer.js")
];
for (const file of files) {
const exists = fs.existsSync(file);
if (!exists) throw new Error(` ❌ File missing: ${file}`);
console.log(` ✅ Found ${file}`);
}
};