typia 3.7.4-dev.20230410-5 → 3.7.4-dev.20230410-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.
@@ -1,2 +1,4 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ declare const USAGE = "Wrong command has been detected. Use like below:\n\n npx typia setup \\\n --compiler (ttypescript|ts-patch) \\\n --manager (npm|pnpm|yarn) \\\n --project {tsconfig.json file path}\n\n - npx typia setup\n - npx typia setup --compiler ts-patch\n - npx typia setup --manager pnpm\n - npx typia setup --project tsconfig.test.json\n\n npx typia generate \n --input {directory} \\\n --output {directory}\n\n --npx typia generate --input src/templates --output src/functinoal\n";
3
+ declare function halt(desc: string): never;
4
+ declare function main(): Promise<void>;
@@ -59,8 +59,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
59
59
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
60
  }
61
61
  };
62
- Object.defineProperty(exports, "__esModule", { value: true });
63
- var TypiaSetupWizard_1 = require("./TypiaSetupWizard");
64
62
  var USAGE = "Wrong command has been detected. Use like below:\n\n npx typia setup \\\n --compiler (ttypescript|ts-patch) \\\n --manager (npm|pnpm|yarn) \\\n --project {tsconfig.json file path}\n\n - npx typia setup\n - npx typia setup --compiler ts-patch\n - npx typia setup --manager pnpm\n - npx typia setup --project tsconfig.test.json\n\n npx typia generate \n --input {directory} \\\n --output {directory}\n\n --npx typia generate --input src/templates --output src/functinoal\n";
65
63
  function halt(desc) {
66
64
  console.error(desc);
@@ -68,7 +66,7 @@ function halt(desc) {
68
66
  }
69
67
  function main() {
70
68
  return __awaiter(this, void 0, void 0, function () {
71
- var _a, type, TypiaGenerateWizard;
69
+ var _a, type, TypiaSetupWizard, TypiaGenerateWizard;
72
70
  return __generator(this, function (_b) {
73
71
  switch (_b.label) {
74
72
  case 0:
@@ -88,27 +86,28 @@ function main() {
88
86
  halt("Please install typia first.\n\nnpm install --save typia");
89
87
  return [3, 5];
90
88
  case 5:
91
- console.log("process", process);
92
- console.log("process.argv", process.argv);
93
89
  type = process.argv[2];
94
- if (!(type === "setup")) return [3, 7];
95
- return [4, TypiaSetupWizard_1.TypiaSetupWizard.setup()];
90
+ if (!(type === "setup")) return [3, 8];
91
+ return [4, Promise.resolve().then(function () { return __importStar(require("./TypiaSetupWizard")); })];
96
92
  case 6:
97
- _b.sent();
98
- return [3, 11];
93
+ TypiaSetupWizard = (_b.sent()).TypiaSetupWizard;
94
+ return [4, TypiaSetupWizard.setup()];
99
95
  case 7:
100
- if (!(type === "generate")) return [3, 10];
101
- return [4, Promise.resolve().then(function () { return __importStar(require("./TypiaGenerateWizard")); })];
96
+ _b.sent();
97
+ return [3, 12];
102
98
  case 8:
99
+ if (!(type === "generate")) return [3, 11];
100
+ return [4, Promise.resolve().then(function () { return __importStar(require("./TypiaGenerateWizard")); })];
101
+ case 9:
103
102
  TypiaGenerateWizard = (_b.sent()).TypiaGenerateWizard;
104
103
  return [4, TypiaGenerateWizard.generate()];
105
- case 9:
106
- _b.sent();
107
- return [3, 11];
108
104
  case 10:
105
+ _b.sent();
106
+ return [3, 12];
107
+ case 11:
109
108
  halt(USAGE);
110
- _b.label = 11;
111
- case 11: return [2];
109
+ _b.label = 12;
110
+ case 12: return [2];
112
111
  }
113
112
  });
114
113
  });
@@ -1 +1 @@
1
- {"version":3,"file":"typia.js","sourceRoot":"","sources":["../../src/executable/typia.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uDAAsD;AAEtD,IAAM,KAAK,GAAG,wfAiBb,CAAC;AAEF,SAAS,IAAI,CAAC,IAAY;IACtB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;AAED,SAAe,IAAI;;;;;;;oBAEX,4EAAa,cAAc,QAAC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C;AACrB,CAAC;AAED,SAAe,IAAI;;;;;;;oBAEX,4EAAa,cAAc,QAAC;;oBAA5B,SAA4B,CAAC;oBAC7B,4EAAa,UAAU,QAAC;;oBAAxB,SAAwB,CAAC;oBACzB,4EAAa,WAAW,QAAC;;oBAAzB,SAAyB,CAAC;;;;oBAE1B,IAAI,CAAC,yDAAyD,CAAC,CAAC;;;oBAG9D,IAAI,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;yBAC7C,CAAA,IAAI,KAAK,OAAO,CAAA,EAAhB,cAAgB;oBACa,4EAAa,oBAAoB,QAAC;;oBAAvD,gBAAgB,GAAK,CAAA,SAAkC,CAAA,iBAAvC;oBACxB,WAAM,gBAAgB,CAAC,KAAK,EAAE,EAAA;;oBAA9B,SAA8B,CAAC;;;yBACxB,CAAA,IAAI,KAAK,UAAU,CAAA,EAAnB,eAAmB;oBACM,4EAAa,uBAAuB,QAAC;;oBAA7D,mBAAmB,GAAK,CAAA,SAAqC,CAAA,oBAA1C;oBAC3B,WAAM,mBAAmB,CAAC,QAAQ,EAAE,EAAA;;oBAApC,SAAoC,CAAC;;;oBAClC,IAAI,CAAC,KAAK,CAAC,CAAC;;;;;;CACtB;AACD,IAAI,EAAE,CAAC,KAAK,CAAC,UAAC,GAAG;IACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typia",
3
- "version": "3.7.4-dev.20230410-5",
3
+ "version": "3.7.4-dev.20230410-6",
4
4
  "description": "Superfast runtime validators with only one line",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { TypiaSetupWizard } from "./TypiaSetupWizard";
3
-
4
2
  const USAGE = `Wrong command has been detected. Use like below:
5
3
 
6
4
  npx typia setup \\
@@ -34,12 +32,11 @@ async function main(): Promise<void> {
34
32
  halt("Please install typia first.\n\nnpm install --save typia");
35
33
  }
36
34
 
37
- console.log("process", process);
38
- console.log("process.argv", process.argv);
39
-
40
35
  const type: string | undefined = process.argv[2];
41
- if (type === "setup") await TypiaSetupWizard.setup();
42
- else if (type === "generate") {
36
+ if (type === "setup") {
37
+ const { TypiaSetupWizard } = await import("./TypiaSetupWizard");
38
+ await TypiaSetupWizard.setup();
39
+ } else if (type === "generate") {
43
40
  const { TypiaGenerateWizard } = await import("./TypiaGenerateWizard");
44
41
  await TypiaGenerateWizard.generate();
45
42
  } else halt(USAGE);