You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/utils/copy_ue4_files.ts

17 lines
557 B

import * as fs from "fs-extra-plus";
import { resolve } from "path";
async function main()
{
let dir = "E:\\WebProject\\webcad-ue4-api\\";
fs.rmSync(dir + "types", { recursive: true });
fs.copySync(resolve(__dirname, "../ue4_api"), dir, { overwrite: true, recursive: true });
// 弃用 使用link:
// dir = "E:\\UE_Project\\ArtistRenderer\\node_modules\\webcad_ue4_api\\";
// fs.rmSync(dir + "types", { recursive: true });
// fs.copySync(resolve(__dirname, "../ue4_api"), dir, { overwrite: true, recursive: true });
}
main();