mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-01 13:35:41 +00:00
14 lines
487 B
JavaScript
14 lines
487 B
JavaScript
const { execSync } = require("child_process");
|
|
const path = require("path");
|
|
const fs = require("fs");
|
|
const { argv, stdout, exit } = require("process");
|
|
const { execIn, parts, getDirs, walk, sanitizeVarName } = require("../utils");
|
|
|
|
module.exports = function (config) {
|
|
console.log(`==> Copying all plugin resources...`);
|
|
let pluginFiles = walk(config.pluginDir).filter((x) => !x.endsWith(".ts"));
|
|
pluginFiles.forEach((x) => {
|
|
fs.copyFileSync(x, x.replace("src", "dist"));
|
|
});
|
|
};
|