diff --git a/package.json b/package.json index 34946a6c8..fef208e7c 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "rollup_api_d": "tsc --declaration --emitDeclarationOnly --declarationMap --declarationDir ./ue4_api/types --project apitsconfig.json", "ue4": "rollup --config ./config/ue4_api.rollup.config.js && tsc --declaration --emitDeclarationOnly --declarationMap --declarationDir ./ue4_api/types --project apitsconfig.json && ts-node ./utils/replace_api_file.ts", "copyue4": "ts-node ./utils/copy_ue4_files.ts", + "copyapi": "ts-node ./utils/copy_api_files.ts", "core": "ts-node ./utils/GenEntityExp.ts", "test": "jest", "testu": "jest -u", diff --git a/src/api.ts b/src/api.ts index dc25c892e..31ba9557b 100644 --- a/src/api.ts +++ b/src/api.ts @@ -15,6 +15,9 @@ export * from "./GraphicsSystem/ToolPath/VKnifToolPath"; export * from "./Production/Product"; export * from "./Geometry/ConverToPolylineAndSplitArc"; export * from "./DatabaseServices/Room/ParseService/ParseRegionTextPos";//放置文字的算法 +export * from "./DatabaseServices/Contour"; +export * from "./DatabaseServices/Shape"; +export * from "./DatabaseServices/ShapeManager"; //del_exp_start */ diff --git a/utils/copy_api_files.ts b/utils/copy_api_files.ts new file mode 100644 index 000000000..631db6aa7 --- /dev/null +++ b/utils/copy_api_files.ts @@ -0,0 +1,11 @@ +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();