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_api_files.ts

13 lines
335 B

import * as fs from "fs-extra-plus";
import { resolve } from "path";
async function main()
{
let dir = "E:\\NodeProject\\webcad-api\\";
if (fs.existsSync(dir + "types"))
fs.rmSync(dir + "types", { recursive: true });
fs.copySync(resolve(__dirname, "../api"), dir, { overwrite: true, recursive: true });
}
main();