blob: 5b4b97f22a595f81637c401592fb889e2aa20b7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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"));
});
};
|