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

12 lines
293 B

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