@xiaoguomeiyitian/core 1.1.4 → 1.1.6

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/index.js CHANGED
@@ -1,6 +1,18 @@
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
+ ;
11
+ let lib = null;
12
+ if (fs_1.default.existsSync(path_1.default.resolve(process.cwd(), './core'))) {
13
+ lib = require(path_1.default.resolve(process.cwd(), './core/lib'));
14
+ }
15
+ else {
16
+ lib = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc');
17
+ }
18
+ 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.4",
3
+ "version": "1.1.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "types/lib.d.ts",
6
6
  "bin": {
@@ -13,6 +13,7 @@
13
13
  "dist/lib_*.jsc"
14
14
  ],
15
15
  "scripts": {
16
+ "pull": "git stash && git pull && git stash pop",
16
17
  "build": "tsc --build --diagnostics",
17
18
  "jsc": "node ./gen_jsc.js ./dist/lib.js ./dist/lib.jsc",
18
19
  "pack": "npm pack --pack-destination ../sheShou/server",