mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-24 17:13:13 +00:00
Cleanup, reformat, fix some todos, git hook
fixup! Cleanup, reformat, fix some todos, git hook
This commit is contained in:
114 files changed
+750
-689
No files matched your search
+5
-5
@@ -29,7 +29,7 @@ if (silent) console.error = console.log = function () {};
|
||||
|
||||
if (argv.includes("clean")) {
|
||||
console.log(`[${++i}/${steps}] Cleaning...`);
|
||||
let d = "dist";
|
||||
let d = "../" + "/dist";
|
||||
if (fs.existsSync(d)) {
|
||||
fs.rmSync(d, { recursive: true });
|
||||
if (verbose) console.log(`Deleted ${d}!`);
|
||||
@@ -110,7 +110,7 @@ if (!argv.includes("copyonly")) {
|
||||
}
|
||||
|
||||
console.log(`[${++i}/${steps}] Copying plugin data...`);
|
||||
let pluginFiles = walk(pluginDir).filter((x) => !x.endsWith(".ts"));
|
||||
pluginFiles.forEach((x) => {
|
||||
fs.copyFileSync(x, x.replace("src", "dist"));
|
||||
});
|
||||
let pluginFiles = walk(pluginDir).filter(x=>!x.endsWith('.ts'));
|
||||
pluginFiles.forEach(x=>{
|
||||
fs.copyFileSync(x, x.replace('src','dist'))
|
||||
})
|
||||
@@ -5,6 +5,8 @@ const { execSync } = require("child_process");
|
||||
const { argv, stdout, exit } = require("process");
|
||||
const { execIn, getLines } = require("./utils");
|
||||
|
||||
const { execIn, getLines } = require("./utils");
|
||||
|
||||
const bundleRequired = ["@ovos-media/ts-transform-paths"];
|
||||
const removeModules = argv.includes("cleanup");
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ let lines3 = lines2.filter((y) => y.includes(": BitFlag("));
|
||||
let lines4 = lines3.map((x) => x.split("//")[0].trim());
|
||||
|
||||
function BitFlag(int) {
|
||||
return 1n << BigInt(int);
|
||||
return 1n << eval(`${int}n`);
|
||||
}
|
||||
|
||||
let rights = [];
|
||||
|
||||
Reference in new issue
Block a user