export-table-pulgin-csharp 1.1.107 → 1.1.109

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ExportLiteDBUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportLiteDBUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAUxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuFnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAsDzE;AAED,qBAAa,uBAAwB,SAAQ,UAAU;IACtD,IAAI,SAAgB;IACpB,IAAI,EAAE,MAAM,EAAE,CAAkB;IAEhC,WAAW,CAAC,KAAK,EAAE,iBAAiB;IA0DpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
1
+ {"version":3,"file":"ExportLiteDBUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportLiteDBUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAWxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuFnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAsDzE;AAED,qBAAa,uBAAwB,SAAQ,UAAU;IACtD,IAAI,SAAgB;IACpB,IAAI,EAAE,MAAM,EAAE,CAAkB;IAEhC,WAAW,CAAC,KAAK,EAAE,iBAAiB;IA4DpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
@@ -33,6 +33,7 @@ const CSParseTool_1 = require("./CSParseTool");
33
33
  const path_1 = __importDefault(require("path"));
34
34
  const cp = __importStar(require("child_process"));
35
35
  const commander_1 = __importDefault(require("commander"));
36
+ const yargs_1 = __importDefault(require("yargs"));
36
37
  var isSkipIndexLoader0 = process.argv.findIndex(v => v == "--SkipIndexLoader") >= 0;
37
38
  let firstLetterUpper = export_table_lib_1.makeFirstLetterUpper;
38
39
  function exportUJson(paras) {
@@ -200,6 +201,8 @@ class ExportLiteDBUJsonPlugin extends export_table_lib_1.PluginBase {
200
201
  var options = new commander_1.default.Command().option("--litedbpath <string>").parse(process.argv).opts();
201
202
  let litedbpath = options["litedbpath"];
202
203
  console.log(`litedbpath: ${litedbpath}`);
204
+ let litedbpath2 = yargs_1.default.command("export", false).string("from").string("to").string("litedbpath").parseSync().litedbpath;
205
+ console.log(`litedbpath2: ${litedbpath2}`);
203
206
  if (litedbpath != null) {
204
207
  let modulePath = require.resolve(".");
205
208
  let binPath = path_1.default.resolve(modulePath, "../../bin/Json2LiteDB.exe");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.107",
3
+ "version": "1.1.109",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {},
@@ -5,6 +5,7 @@ import { TryConvValue, convMemberName } from "./CSParseTool";
5
5
  import path from "path";
6
6
  import * as cp from "child_process"
7
7
  import program from "commander"
8
+ import yargs from "yargs";
8
9
 
9
10
  var isSkipIndexLoader0 = process.argv.findIndex(v => v == "--SkipIndexLoader") >= 0
10
11
 
@@ -197,6 +198,8 @@ export class ExportLiteDBUJsonPlugin extends PluginBase {
197
198
  var options = new program.Command().option("--litedbpath <string>").parse(process.argv).opts()
198
199
  let litedbpath = options["litedbpath"]
199
200
  console.log(`litedbpath: ${litedbpath}`);
201
+ let litedbpath2 = yargs.command("export", false).string("from").string("to").string("litedbpath").parseSync().litedbpath;
202
+ console.log(`litedbpath2: ${litedbpath2}`);
200
203
  if (litedbpath != null) {
201
204
  let modulePath = require.resolve(".")
202
205
  let binPath = path.resolve(modulePath, "../../bin/Json2LiteDB.exe")