@xiaoguomeiyitian/core 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -15,7 +15,7 @@ if (cmd == "copy") {
15
15
  const destDir = path_1.default.resolve(cwd, process.argv[4]); // 目标目录
16
16
  (0, index_1.copyDir)(sourceDir, destDir);
17
17
  }
18
- //删除文件或者目录
18
+ //删除文件或目录
19
19
  if (cmd == "del") {
20
20
  const targetDir = path_1.default.resolve(cwd, process.argv[3]); // 目标目录
21
21
  (0, index_1.delFiles)(targetDir, process.argv.splice(4, process.argv.length));
package/dist/index.js CHANGED
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
- var _a;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
3
5
  Object.defineProperty(exports, "__esModule", { value: true });
4
6
  exports.GenServiceFunc = exports.GenEntityDefs = exports.delFiles = exports.copyDir = exports.Entity = exports.Global = void 0;
5
7
  require("bytenode");
6
- _a = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc'), exports.Global = _a.Global, exports.Entity = _a.Entity, exports.copyDir = _a.copyDir, exports.delFiles = _a.delFiles, exports.GenEntityDefs = _a.GenEntityDefs, exports.GenServiceFunc = _a.GenServiceFunc;
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const path_1 = __importDefault(require("path"));
10
+ let lib = null;
11
+ if (fs_1.default.existsSync(path_1.default.resolve(process.cwd(), './lib'))) {
12
+ lib = require(path_1.default.resolve(process.cwd(), './lib/lib'));
13
+ }
14
+ else {
15
+ lib = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc');
16
+ }
17
+ exports.Global = lib.Global, exports.Entity = lib.Entity, exports.copyDir = lib.copyDir, exports.delFiles = lib.delFiles, exports.GenEntityDefs = lib.GenEntityDefs, exports.GenServiceFunc = lib.GenServiceFunc;
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaoguomeiyitian/core",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "types/lib.d.ts",
6
6
  "bin": {