typia 13.0.0-dev.20260507 → 13.0.0-dev.20260509
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/lib/executable/TypiaGenerateWizard.js +54 -45
- package/lib/executable/TypiaGenerateWizard.js.map +1 -1
- package/lib/executable/TypiaGenerateWizard2.mjs +64 -55
- package/lib/executable/TypiaGenerateWizard2.mjs.map +1 -1
- package/lib/executable/typia.d.ts +1 -1
- package/lib/executable/typia.js +1 -14
- package/lib/executable/typia.js.map +1 -1
- package/lib/executable/typia2.mjs +1 -16
- package/lib/executable/typia2.mjs.map +1 -1
- package/package.json +9 -6
- package/src/executable/TypiaGenerateWizard.ts +25 -23
- package/src/executable/typia.ts +1 -13
- package/lib/_virtual/ArgumentParser.mjs +0 -4
- package/lib/_virtual/ArgumentParser.mjs.map +0 -1
- package/lib/_virtual/CommandExecutor.mjs +0 -4
- package/lib/_virtual/CommandExecutor.mjs.map +0 -1
- package/lib/_virtual/FileRetriever.mjs +0 -4
- package/lib/_virtual/FileRetriever.mjs.map +0 -1
- package/lib/_virtual/PackageManager.mjs +0 -4
- package/lib/_virtual/PackageManager.mjs.map +0 -1
- package/lib/_virtual/PluginConfigurator.mjs +0 -4
- package/lib/_virtual/PluginConfigurator.mjs.map +0 -1
- package/lib/_virtual/TypiaSetupWizard.mjs +0 -4
- package/lib/_virtual/TypiaSetupWizard.mjs.map +0 -1
- package/lib/executable/TypiaSetupWizard.d.ts +0 -7
- package/lib/executable/TypiaSetupWizard.js +0 -133
- package/lib/executable/TypiaSetupWizard.js.map +0 -1
- package/lib/executable/TypiaSetupWizard.mjs +0 -3
- package/lib/executable/TypiaSetupWizard.mjs.map +0 -1
- package/lib/executable/TypiaSetupWizard2.mjs +0 -144
- package/lib/executable/TypiaSetupWizard2.mjs.map +0 -1
- package/lib/executable/setup/ArgumentParser.d.ts +0 -7
- package/lib/executable/setup/ArgumentParser.js +0 -36
- package/lib/executable/setup/ArgumentParser.js.map +0 -1
- package/lib/executable/setup/ArgumentParser.mjs +0 -3
- package/lib/executable/setup/ArgumentParser.mjs.map +0 -1
- package/lib/executable/setup/ArgumentParser2.mjs +0 -41
- package/lib/executable/setup/ArgumentParser2.mjs.map +0 -1
- package/lib/executable/setup/CommandExecutor.d.ts +0 -3
- package/lib/executable/setup/CommandExecutor.js +0 -15
- package/lib/executable/setup/CommandExecutor.js.map +0 -1
- package/lib/executable/setup/CommandExecutor.mjs +0 -3
- package/lib/executable/setup/CommandExecutor.mjs.map +0 -1
- package/lib/executable/setup/CommandExecutor2.mjs +0 -19
- package/lib/executable/setup/CommandExecutor2.mjs.map +0 -1
- package/lib/executable/setup/FileRetriever.d.ts +0 -7
- package/lib/executable/setup/FileRetriever.js +0 -25
- package/lib/executable/setup/FileRetriever.js.map +0 -1
- package/lib/executable/setup/FileRetriever.mjs +0 -3
- package/lib/executable/setup/FileRetriever.mjs.map +0 -1
- package/lib/executable/setup/FileRetriever2.mjs +0 -30
- package/lib/executable/setup/FileRetriever2.mjs.map +0 -1
- package/lib/executable/setup/PackageManager.d.ts +0 -24
- package/lib/executable/setup/PackageManager.js +0 -79
- package/lib/executable/setup/PackageManager.js.map +0 -1
- package/lib/executable/setup/PackageManager.mjs +0 -3
- package/lib/executable/setup/PackageManager.mjs.map +0 -1
- package/lib/executable/setup/PackageManager2.mjs +0 -88
- package/lib/executable/setup/PackageManager2.mjs.map +0 -1
- package/lib/executable/setup/PluginConfigurator.d.ts +0 -4
- package/lib/executable/setup/PluginConfigurator.js +0 -60
- package/lib/executable/setup/PluginConfigurator.js.map +0 -1
- package/lib/executable/setup/PluginConfigurator.mjs +0 -3
- package/lib/executable/setup/PluginConfigurator.mjs.map +0 -1
- package/lib/executable/setup/PluginConfigurator2.mjs +0 -65
- package/lib/executable/setup/PluginConfigurator2.mjs.map +0 -1
- package/src/executable/TypiaSetupWizard.ts +0 -167
- package/src/executable/setup/ArgumentParser.ts +0 -42
- package/src/executable/setup/CommandExecutor.ts +0 -8
- package/src/executable/setup/FileRetriever.ts +0 -19
- package/src/executable/setup/PackageManager.ts +0 -87
- package/src/executable/setup/PluginConfigurator.ts +0 -65
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typia",
|
|
3
|
-
"version": "13.0.0-dev.
|
|
3
|
+
"version": "13.0.0-dev.20260509",
|
|
4
4
|
"description": "Superfast runtime validators with only one line",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"bin": {
|
|
26
26
|
"typia": "./lib/executable/typia.js"
|
|
27
27
|
},
|
|
28
|
+
"ttsc": {
|
|
29
|
+
"plugin": {
|
|
30
|
+
"transform": "typia/lib/transform"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
28
33
|
"repository": {
|
|
29
34
|
"type": "git",
|
|
30
35
|
"url": "https://github.com/samchon/typia"
|
|
@@ -38,12 +43,10 @@
|
|
|
38
43
|
"dependencies": {
|
|
39
44
|
"@standard-schema/spec": "^1.0.0",
|
|
40
45
|
"commander": "^10.0.0",
|
|
41
|
-
"comment-json": "^4.2.3",
|
|
42
46
|
"inquirer": "^8.2.5",
|
|
43
|
-
"package-manager-detector": "^0.2.0",
|
|
44
47
|
"randexp": "^0.5.3",
|
|
45
|
-
"@typia/interface": "^13.0.0-dev.
|
|
46
|
-
"@typia/utils": "^13.0.0-dev.
|
|
48
|
+
"@typia/interface": "^13.0.0-dev.20260509",
|
|
49
|
+
"@typia/utils": "^13.0.0-dev.20260509"
|
|
47
50
|
},
|
|
48
51
|
"devDependencies": {
|
|
49
52
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
"rollup-plugin-node-externals": "^8.1.2",
|
|
62
65
|
"suppress-warnings": "^1.0.2",
|
|
63
66
|
"tinyglobby": "^0.2.12",
|
|
64
|
-
"ttsc": "^0.
|
|
67
|
+
"ttsc": "^0.9.0"
|
|
65
68
|
},
|
|
66
69
|
"sideEffects": [
|
|
67
70
|
"./lib/_virtual/*.mjs",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import commander from "commander";
|
|
1
2
|
import fs from "fs";
|
|
3
|
+
import inquirer from "inquirer";
|
|
2
4
|
import { createRequire } from "module";
|
|
3
5
|
import path from "path";
|
|
4
6
|
import {
|
|
@@ -7,33 +9,26 @@ import {
|
|
|
7
9
|
TtscCompiler,
|
|
8
10
|
} from "ttsc";
|
|
9
11
|
|
|
10
|
-
import { ArgumentParser } from "./setup/ArgumentParser";
|
|
11
|
-
import { PackageManager } from "./setup/PackageManager";
|
|
12
|
-
|
|
13
12
|
export namespace TypiaGenerateWizard {
|
|
14
13
|
export async function generate(): Promise<void> {
|
|
15
14
|
console.log("----------------------------------------");
|
|
16
15
|
console.log(" Typia Generate Wizard");
|
|
17
16
|
console.log("----------------------------------------");
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
const pack: PackageManager = await PackageManager.mount();
|
|
21
|
-
const options: IArguments = await ArgumentParser.parse(pack, inquiry);
|
|
18
|
+
const options: IArguments = await parseArguments();
|
|
22
19
|
await build(options);
|
|
23
20
|
}
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
command.option("--input [path]", "input directory");
|
|
33
|
-
command.option("--output [directory]", "output directory");
|
|
34
|
-
command.option("--project [project]", "tsconfig.json file location");
|
|
22
|
+
async function parseArguments(): Promise<IArguments> {
|
|
23
|
+
commander.program.option("--input [path]", "input directory");
|
|
24
|
+
commander.program.option("--output [directory]", "output directory");
|
|
25
|
+
commander.program.option(
|
|
26
|
+
"--project [project]",
|
|
27
|
+
"tsconfig.json file location",
|
|
28
|
+
);
|
|
35
29
|
|
|
36
30
|
const questioned = { value: false };
|
|
31
|
+
const prompt = inquirer.createPromptModule;
|
|
37
32
|
|
|
38
33
|
const input = (name: string) => async (message: string) => {
|
|
39
34
|
const result = await prompt()({
|
|
@@ -72,13 +67,21 @@ export namespace TypiaGenerateWizard {
|
|
|
72
67
|
return select("tsconfig")("TS Config File")(files);
|
|
73
68
|
};
|
|
74
69
|
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
return new Promise<IArguments>((resolve, reject) => {
|
|
71
|
+
commander.program.action(async (options: Partial<IArguments>) => {
|
|
72
|
+
try {
|
|
73
|
+
options.input ??= await input("input")("input directory");
|
|
74
|
+
options.output ??= await input("output")("output directory");
|
|
75
|
+
options.project ??= await configure();
|
|
76
|
+
if (questioned.value) console.log("");
|
|
77
|
+
resolve(options as IArguments);
|
|
78
|
+
} catch (exp) {
|
|
79
|
+
reject(exp);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
commander.program.parseAsync().catch(reject);
|
|
80
83
|
});
|
|
81
|
-
}
|
|
84
|
+
}
|
|
82
85
|
|
|
83
86
|
export interface IArguments {
|
|
84
87
|
input: string;
|
|
@@ -144,7 +147,6 @@ export namespace TypiaGenerateWizard {
|
|
|
144
147
|
const result: ITtscCompilerTransformation = new TtscCompiler({
|
|
145
148
|
binary: props.binary,
|
|
146
149
|
cwd: props.cwd,
|
|
147
|
-
plugins: [{ transform: "typia/lib/transform" }],
|
|
148
150
|
tsconfig: props.tsconfig,
|
|
149
151
|
}).transform();
|
|
150
152
|
if (result.type === "success") {
|
package/src/executable/typia.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const USAGE = `Wrong command has been detected. Use like below:
|
|
3
3
|
|
|
4
|
-
npx typia setup \\
|
|
5
|
-
--manager (npm|pnpm|yarn) \\
|
|
6
|
-
--project {tsconfig.json file path}
|
|
7
|
-
|
|
8
|
-
- npx typia setup
|
|
9
|
-
- npx typia setup --manager pnpm
|
|
10
|
-
- npx typia setup --project tsconfig.test.json
|
|
11
|
-
|
|
12
4
|
npx typia generate
|
|
13
5
|
--input {directory} \\
|
|
14
6
|
--output {directory}
|
|
@@ -42,7 +34,6 @@ const loadNativePreview = (): void => {
|
|
|
42
34
|
|
|
43
35
|
const main = async (): Promise<void> => {
|
|
44
36
|
try {
|
|
45
|
-
await import("comment-json");
|
|
46
37
|
await import("inquirer");
|
|
47
38
|
await import("commander");
|
|
48
39
|
} catch {
|
|
@@ -50,10 +41,7 @@ const main = async (): Promise<void> => {
|
|
|
50
41
|
}
|
|
51
42
|
|
|
52
43
|
const type: string | undefined = process.argv[2];
|
|
53
|
-
if (type === "
|
|
54
|
-
const { TypiaSetupWizard } = await import("./TypiaSetupWizard");
|
|
55
|
-
await TypiaSetupWizard.setup();
|
|
56
|
-
} else if (type === "generate") {
|
|
44
|
+
if (type === "generate") {
|
|
57
45
|
loadNativePreview();
|
|
58
46
|
const { TypiaGenerateWizard } = await import("./TypiaGenerateWizard");
|
|
59
47
|
await TypiaGenerateWizard.generate();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentParser.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandExecutor.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileRetriever.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PackageManager.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PluginConfigurator.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypiaSetupWizard.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.TypiaSetupWizard = void 0;
|
|
16
|
-
const fs_1 = __importDefault(require("fs"));
|
|
17
|
-
const package_manager_detector_1 = require("package-manager-detector");
|
|
18
|
-
const ArgumentParser_1 = require("./setup/ArgumentParser");
|
|
19
|
-
const PackageManager_1 = require("./setup/PackageManager");
|
|
20
|
-
const PluginConfigurator_1 = require("./setup/PluginConfigurator");
|
|
21
|
-
var TypiaSetupWizard;
|
|
22
|
-
(function (TypiaSetupWizard) {
|
|
23
|
-
const TTSC_PACKAGE = "ttsc";
|
|
24
|
-
const TSGO_COMPILER_PACKAGE = "@typescript/native-preview";
|
|
25
|
-
TypiaSetupWizard.setup = () => __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
var _a;
|
|
27
|
-
console.log("----------------------------------------");
|
|
28
|
-
console.log(" Typia Setup Wizard");
|
|
29
|
-
console.log("----------------------------------------");
|
|
30
|
-
// PREPARE ASSETS
|
|
31
|
-
const pack = yield PackageManager_1.PackageManager.mount();
|
|
32
|
-
const args = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);
|
|
33
|
-
(_a = args.project) !== null && _a !== void 0 ? _a : (args.project = (() => {
|
|
34
|
-
fs_1.default.writeFileSync("tsconfig.json", `${JSON.stringify({ compilerOptions: {} }, null, 2)}\n`, "utf8");
|
|
35
|
-
return (args.project = "tsconfig.json");
|
|
36
|
-
})());
|
|
37
|
-
// CONFIGURE TYPIA
|
|
38
|
-
yield PluginConfigurator_1.PluginConfigurator.configure(args);
|
|
39
|
-
// NORMALIZE PROJECT SETTINGS
|
|
40
|
-
yield pack.save((data) => {
|
|
41
|
-
var _a, _b, _c;
|
|
42
|
-
if (typeof ((_a = data.scripts) === null || _a === void 0 ? void 0 : _a.prepare) === "string") {
|
|
43
|
-
const prepare = removeLegacyCompilerPatchSteps(data.scripts.prepare);
|
|
44
|
-
if (prepare.length !== 0)
|
|
45
|
-
data.scripts.prepare = prepare;
|
|
46
|
-
else
|
|
47
|
-
delete data.scripts.prepare;
|
|
48
|
-
if (Object.keys(data.scripts).length === 0)
|
|
49
|
-
delete data.scripts;
|
|
50
|
-
}
|
|
51
|
-
if (((_b = data.devDependencies) === null || _b === void 0 ? void 0 : _b["ts-patch"]) !== undefined) {
|
|
52
|
-
delete data.devDependencies["ts-patch"];
|
|
53
|
-
if (Object.keys(data.devDependencies).length === 0)
|
|
54
|
-
delete data.devDependencies;
|
|
55
|
-
}
|
|
56
|
-
if (((_c = data.dependencies) === null || _c === void 0 ? void 0 : _c["ts-patch"]) !== undefined) {
|
|
57
|
-
delete data.dependencies["ts-patch"];
|
|
58
|
-
if (Object.keys(data.dependencies).length === 0)
|
|
59
|
-
delete data.dependencies;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
// INSTALL TSGO TOOLCHAIN
|
|
63
|
-
pack.install({
|
|
64
|
-
dev: true,
|
|
65
|
-
modulo: TSGO_COMPILER_PACKAGE,
|
|
66
|
-
version: "latest",
|
|
67
|
-
});
|
|
68
|
-
pack.install({ dev: true, modulo: TTSC_PACKAGE, version: "latest" });
|
|
69
|
-
});
|
|
70
|
-
const inquiry = (pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
// PREPARE ASSETS
|
|
72
|
-
command.option("--manager [manager", "package manager");
|
|
73
|
-
command.option("--project [project]", "tsconfig.json file location");
|
|
74
|
-
// INTERNAL PROCEDURES
|
|
75
|
-
const questioned = { value: false };
|
|
76
|
-
const select = (name) => (message) => (choices, filter) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
questioned.value = true;
|
|
78
|
-
return (yield prompt()(Object.assign({ type: "list", name: name, message: message, choices: choices }, (filter ? { filter } : {}))))[name];
|
|
79
|
-
});
|
|
80
|
-
const configure = () => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
const fileList = yield (yield fs_1.default.promises.readdir(process.cwd()))
|
|
82
|
-
.filter((str) => str.substring(0, 8) === "tsconfig" &&
|
|
83
|
-
str.substring(str.length - 5) === ".json")
|
|
84
|
-
.sort((x, y) => x === "tsconfig.json"
|
|
85
|
-
? -1
|
|
86
|
-
: y === "tsconfig.json"
|
|
87
|
-
? 1
|
|
88
|
-
: x < y
|
|
89
|
-
? -1
|
|
90
|
-
: 1);
|
|
91
|
-
if (fileList.length === 0) {
|
|
92
|
-
if (process.cwd() !== pack.directory)
|
|
93
|
-
throw new URIError(`Unable to find "tsconfig.json" file.`);
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
|
-
else if (fileList.length === 1)
|
|
97
|
-
return fileList[0];
|
|
98
|
-
return select("tsconfig")("TS Config File")(fileList);
|
|
99
|
-
});
|
|
100
|
-
// DO CONSTRUCT
|
|
101
|
-
return action((options) => __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
var _a, _b, _c;
|
|
103
|
-
pack.manager = (_a = options.manager) !== null && _a !== void 0 ? _a : (options.manager = (_b = (yield detectManager())) !== null && _b !== void 0 ? _b : (yield select("manager")("Package Manager")([
|
|
104
|
-
"npm",
|
|
105
|
-
"pnpm",
|
|
106
|
-
"bun",
|
|
107
|
-
"yarn (berry is not supported)",
|
|
108
|
-
], (value) => value.split(" ")[0])));
|
|
109
|
-
(_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());
|
|
110
|
-
if (questioned.value)
|
|
111
|
-
console.log("");
|
|
112
|
-
return options;
|
|
113
|
-
}));
|
|
114
|
-
});
|
|
115
|
-
const detectManager = () => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
var _a;
|
|
117
|
-
const result = yield (0, package_manager_detector_1.detect)({ cwd: process.cwd() });
|
|
118
|
-
switch (result === null || result === void 0 ? void 0 : result.name) {
|
|
119
|
-
case "npm":
|
|
120
|
-
case "deno":
|
|
121
|
-
return null; // NPM case is still selectable & Deno is not supported
|
|
122
|
-
default:
|
|
123
|
-
return (_a = result === null || result === void 0 ? void 0 : result.name) !== null && _a !== void 0 ? _a : null;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
const isLegacyCompilerPatchStep = (str) => str === "typia patch" || str.includes("ts-patch install");
|
|
127
|
-
const removeLegacyCompilerPatchSteps = (script) => script
|
|
128
|
-
.split("&&")
|
|
129
|
-
.map((str) => str.trim())
|
|
130
|
-
.filter((str) => str.length !== 0 && isLegacyCompilerPatchStep(str) === false)
|
|
131
|
-
.join(" && ");
|
|
132
|
-
})(TypiaSetupWizard || (exports.TypiaSetupWizard = TypiaSetupWizard = {}));
|
|
133
|
-
//# sourceMappingURL=TypiaSetupWizard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypiaSetupWizard.js","sourceRoot":"","sources":["../../src/executable/TypiaSetupWizard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,uEAAgE;AAEhE,2DAAwD;AACxD,2DAAwD;AACxD,mEAAgE;AAEhE,IAAiB,gBAAgB,CA+JhC;AA/JD,WAAiB,gBAAgB;IAC/B,MAAM,YAAY,GAAG,MAAM,CAAC;IAC5B,MAAM,qB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CAAE,IAAI,mCAAI,IAAI,CAAC;QAChC,CAAC;IACH,CAAC,CAAA,CAAC;IAEF,MAAM,yBAAyB,GAAG,CAAC,GAAW,EAAW,EAAE,CACzD,GAAG,KAAK,aAAa,IAAI,GAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAE5D,MAAM,8BAA8B,GAAG,CAAC,MAAc,EAAU,EAAE,CAChE,MAAM;SACH,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;SACxB,MAAM,CACL,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,yBAAyB,CAAC,GAAG,CAAC,KAAK,KAAK,CACtE;SACA,IAAI,CAAC,MAAM,CAAC,CAAC;AACpB,CAAC,EA/JgB,gBAAgB,aAAhB,gBAAgB,GAAhB,gBAAgB,QA+JhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypiaSetupWizard.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { __exports as TypiaSetupWizard$1 } from '../_virtual/TypiaSetupWizard.mjs';
|
|
2
|
-
import require$$0 from 'fs';
|
|
3
|
-
import require$$1 from 'package-manager-detector';
|
|
4
|
-
import './setup/ArgumentParser2.mjs';
|
|
5
|
-
import './setup/PackageManager2.mjs';
|
|
6
|
-
import './setup/PluginConfigurator2.mjs';
|
|
7
|
-
import { __exports as PackageManager } from '../_virtual/PackageManager.mjs';
|
|
8
|
-
import { __exports as ArgumentParser } from '../_virtual/ArgumentParser.mjs';
|
|
9
|
-
import { __exports as PluginConfigurator } from '../_virtual/PluginConfigurator.mjs';
|
|
10
|
-
|
|
11
|
-
var __awaiter = (TypiaSetupWizard$1 && TypiaSetupWizard$1.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
var __importDefault = (TypiaSetupWizard$1 && TypiaSetupWizard$1.__importDefault) || function (mod) {
|
|
21
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(TypiaSetupWizard$1, "__esModule", { value: true });
|
|
24
|
-
var TypiaSetupWizard_2 = TypiaSetupWizard$1.TypiaSetupWizard = void 0;
|
|
25
|
-
const fs_1 = __importDefault(require$$0);
|
|
26
|
-
const package_manager_detector_1 = require$$1;
|
|
27
|
-
const ArgumentParser_1 = ArgumentParser;
|
|
28
|
-
const PackageManager_1 = PackageManager;
|
|
29
|
-
const PluginConfigurator_1 = PluginConfigurator;
|
|
30
|
-
var TypiaSetupWizard;
|
|
31
|
-
(function (TypiaSetupWizard) {
|
|
32
|
-
const TTSC_PACKAGE = "ttsc";
|
|
33
|
-
const TSGO_COMPILER_PACKAGE = "@typescript/native-preview";
|
|
34
|
-
TypiaSetupWizard.setup = () => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
var _a;
|
|
36
|
-
console.log("----------------------------------------");
|
|
37
|
-
console.log(" Typia Setup Wizard");
|
|
38
|
-
console.log("----------------------------------------");
|
|
39
|
-
// PREPARE ASSETS
|
|
40
|
-
const pack = yield PackageManager_1.PackageManager.mount();
|
|
41
|
-
const args = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);
|
|
42
|
-
(_a = args.project) !== null && _a !== void 0 ? _a : (args.project = (() => {
|
|
43
|
-
fs_1.default.writeFileSync("tsconfig.json", `${JSON.stringify({ compilerOptions: {} }, null, 2)}\n`, "utf8");
|
|
44
|
-
return (args.project = "tsconfig.json");
|
|
45
|
-
})());
|
|
46
|
-
// CONFIGURE TYPIA
|
|
47
|
-
yield PluginConfigurator_1.PluginConfigurator.configure(args);
|
|
48
|
-
// NORMALIZE PROJECT SETTINGS
|
|
49
|
-
yield pack.save((data) => {
|
|
50
|
-
var _a, _b, _c;
|
|
51
|
-
if (typeof ((_a = data.scripts) === null || _a === void 0 ? void 0 : _a.prepare) === "string") {
|
|
52
|
-
const prepare = removeLegacyCompilerPatchSteps(data.scripts.prepare);
|
|
53
|
-
if (prepare.length !== 0)
|
|
54
|
-
data.scripts.prepare = prepare;
|
|
55
|
-
else
|
|
56
|
-
delete data.scripts.prepare;
|
|
57
|
-
if (Object.keys(data.scripts).length === 0)
|
|
58
|
-
delete data.scripts;
|
|
59
|
-
}
|
|
60
|
-
if (((_b = data.devDependencies) === null || _b === void 0 ? void 0 : _b["ts-patch"]) !== undefined) {
|
|
61
|
-
delete data.devDependencies["ts-patch"];
|
|
62
|
-
if (Object.keys(data.devDependencies).length === 0)
|
|
63
|
-
delete data.devDependencies;
|
|
64
|
-
}
|
|
65
|
-
if (((_c = data.dependencies) === null || _c === void 0 ? void 0 : _c["ts-patch"]) !== undefined) {
|
|
66
|
-
delete data.dependencies["ts-patch"];
|
|
67
|
-
if (Object.keys(data.dependencies).length === 0)
|
|
68
|
-
delete data.dependencies;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
// INSTALL TSGO TOOLCHAIN
|
|
72
|
-
pack.install({
|
|
73
|
-
dev: true,
|
|
74
|
-
modulo: TSGO_COMPILER_PACKAGE,
|
|
75
|
-
version: "latest",
|
|
76
|
-
});
|
|
77
|
-
pack.install({ dev: true, modulo: TTSC_PACKAGE, version: "latest" });
|
|
78
|
-
});
|
|
79
|
-
const inquiry = (pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
// PREPARE ASSETS
|
|
81
|
-
command.option("--manager [manager", "package manager");
|
|
82
|
-
command.option("--project [project]", "tsconfig.json file location");
|
|
83
|
-
// INTERNAL PROCEDURES
|
|
84
|
-
const questioned = { value: false };
|
|
85
|
-
const select = (name) => (message) => (choices, filter) => __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
questioned.value = true;
|
|
87
|
-
return (yield prompt()(Object.assign({ type: "list", name: name, message: message, choices: choices }, (filter ? { filter } : {}))))[name];
|
|
88
|
-
});
|
|
89
|
-
const configure = () => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const fileList = yield (yield fs_1.default.promises.readdir(process.cwd()))
|
|
91
|
-
.filter((str) => str.substring(0, 8) === "tsconfig" &&
|
|
92
|
-
str.substring(str.length - 5) === ".json")
|
|
93
|
-
.sort((x, y) => x === "tsconfig.json"
|
|
94
|
-
? -1
|
|
95
|
-
: y === "tsconfig.json"
|
|
96
|
-
? 1
|
|
97
|
-
: x < y
|
|
98
|
-
? -1
|
|
99
|
-
: 1);
|
|
100
|
-
if (fileList.length === 0) {
|
|
101
|
-
if (process.cwd() !== pack.directory)
|
|
102
|
-
throw new URIError(`Unable to find "tsconfig.json" file.`);
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
else if (fileList.length === 1)
|
|
106
|
-
return fileList[0];
|
|
107
|
-
return select("tsconfig")("TS Config File")(fileList);
|
|
108
|
-
});
|
|
109
|
-
// DO CONSTRUCT
|
|
110
|
-
return action((options) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
var _a, _b, _c;
|
|
112
|
-
pack.manager = (_a = options.manager) !== null && _a !== void 0 ? _a : (options.manager = (_b = (yield detectManager())) !== null && _b !== void 0 ? _b : (yield select("manager")("Package Manager")([
|
|
113
|
-
"npm",
|
|
114
|
-
"pnpm",
|
|
115
|
-
"bun",
|
|
116
|
-
"yarn (berry is not supported)",
|
|
117
|
-
], (value) => value.split(" ")[0])));
|
|
118
|
-
(_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());
|
|
119
|
-
if (questioned.value)
|
|
120
|
-
console.log("");
|
|
121
|
-
return options;
|
|
122
|
-
}));
|
|
123
|
-
});
|
|
124
|
-
const detectManager = () => __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
var _a;
|
|
126
|
-
const result = yield (0, package_manager_detector_1.detect)({ cwd: process.cwd() });
|
|
127
|
-
switch (result === null || result === void 0 ? void 0 : result.name) {
|
|
128
|
-
case "npm":
|
|
129
|
-
case "deno":
|
|
130
|
-
return null; // NPM case is still selectable & Deno is not supported
|
|
131
|
-
default:
|
|
132
|
-
return (_a = result === null || result === void 0 ? void 0 : result.name) !== null && _a !== void 0 ? _a : null;
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
const isLegacyCompilerPatchStep = (str) => str === "typia patch" || str.includes("ts-patch install");
|
|
136
|
-
const removeLegacyCompilerPatchSteps = (script) => script
|
|
137
|
-
.split("&&")
|
|
138
|
-
.map((str) => str.trim())
|
|
139
|
-
.filter((str) => str.length !== 0 && isLegacyCompilerPatchStep(str) === false)
|
|
140
|
-
.join(" && ");
|
|
141
|
-
})(TypiaSetupWizard || (TypiaSetupWizard_2 = TypiaSetupWizard$1.TypiaSetupWizard = TypiaSetupWizard = {}));
|
|
142
|
-
|
|
143
|
-
export { TypiaSetupWizard_2 as TypiaSetupWizard, TypiaSetupWizard$1 as default };
|
|
144
|
-
//# sourceMappingURL=TypiaSetupWizard2.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypiaSetupWizard2.mjs","sources":["TypiaSetupWizard.js"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TypiaSetupWizard = void 0;\nconst fs_1 = __importDefault(require(\"fs\"));\nconst package_manager_detector_1 = require(\"package-manager-detector\");\nconst ArgumentParser_1 = require(\"./setup/ArgumentParser\");\nconst PackageManager_1 = require(\"./setup/PackageManager\");\nconst PluginConfigurator_1 = require(\"./setup/PluginConfigurator\");\nvar TypiaSetupWizard;\n(function (TypiaSetupWizard) {\n const TTSC_PACKAGE = \"ttsc\";\n const TSGO_COMPILER_PACKAGE = \"@typescript/native-preview\";\n TypiaSetupWizard.setup = () => __awaiter(this, void 0, void 0, function* () {\n var _a;\n console.log(\"----------------------------------------\");\n console.log(\" Typia Setup Wizard\");\n console.log(\"----------------------------------------\");\n // PREPARE ASSETS\n const pack = yield PackageManager_1.PackageManager.mount();\n const args = yield ArgumentParser_1.ArgumentParser.parse(pack, inquiry);\n (_a = args.project) !== null && _a !== void 0 ? _a : (args.project = (() => {\n fs_1.default.writeFileSync(\"tsconfig.json\", `${JSON.stringify({ compilerOptions: {} }, null, 2)}\\n`, \"utf8\");\n return (args.project = \"tsconfig.json\");\n })());\n // CONFIGURE TYPIA\n yield PluginConfigurator_1.PluginConfigurator.configure(args);\n // NORMALIZE PROJECT SETTINGS\n yield pack.save((data) => {\n var _a, _b, _c;\n if (typeof ((_a = data.scripts) === null || _a === void 0 ? void 0 : _a.prepare) === \"string\") {\n const prepare = removeLegacyCompilerPatchSteps(data.scripts.prepare);\n if (prepare.length !== 0)\n data.scripts.prepare = prepare;\n else\n delete data.scripts.prepare;\n if (Object.keys(data.scripts).length === 0)\n delete data.scripts;\n }\n if (((_b = data.devDependencies) === null || _b === void 0 ? void 0 : _b[\"ts-patch\"]) !== undefined) {\n delete data.devDependencies[\"ts-patch\"];\n if (Object.keys(data.devDependencies).length === 0)\n delete data.devDependencies;\n }\n if (((_c = data.dependencies) === null || _c === void 0 ? void 0 : _c[\"ts-patch\"]) !== undefined) {\n delete data.dependencies[\"ts-patch\"];\n if (Object.keys(data.dependencies).length === 0)\n delete data.dependencies;\n }\n });\n // INSTALL TSGO TOOLCHAIN\n pack.install({\n dev: true,\n modulo: TSGO_COMPILER_PACKAGE,\n version: \"latest\",\n });\n pack.install({ dev: true, modulo: TTSC_PACKAGE, version: \"latest\" });\n });\n const inquiry = (pack, command, prompt, action) => __awaiter(this, void 0, void 0, function* () {\n // PREPARE ASSETS\n command.option(\"--manager [manager\", \"package manager\");\n command.option(\"--project [project]\", \"tsconfig.json file location\");\n // INTERNAL PROCEDURES\n const questioned = { value: false };\n const select = (name) => (message) => (choices, filter) => __awaiter(this, void 0, void 0, function* () {\n questioned.value = true;\n return (yield prompt()(Object.assign({ type: \"list\", name: name, message: message, choices: choices }, (filter ? { filter } : {}))))[name];\n });\n const configure = () => __awaiter(this, void 0, void 0, function* () {\n const fileList = yield (yield fs_1.default.promises.readdir(process.cwd()))\n .filter((str) => str.substring(0, 8) === \"tsconfig\" &&\n str.substring(str.length - 5) === \".json\")\n .sort((x, y) => x === \"tsconfig.json\"\n ? -1\n : y === \"tsconfig.json\"\n ? 1\n : x < y\n ? -1\n : 1);\n if (fileList.length === 0) {\n if (process.cwd() !== pack.directory)\n throw new URIError(`Unable to find \"tsconfig.json\" file.`);\n return null;\n }\n else if (fileList.length === 1)\n return fileList[0];\n return select(\"tsconfig\")(\"TS Config File\")(fileList);\n });\n // DO CONSTRUCT\n return action((options) => __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n pack.manager = (_a = options.manager) !== null && _a !== void 0 ? _a : (options.manager = (_b = (yield detectManager())) !== null && _b !== void 0 ? _b : (yield select(\"manager\")(\"Package Manager\")([\n \"npm\",\n \"pnpm\",\n \"bun\",\n \"yarn (berry is not supported)\",\n ], (value) => value.split(\" \")[0])));\n (_c = options.project) !== null && _c !== void 0 ? _c : (options.project = yield configure());\n if (questioned.value)\n console.log(\"\");\n return options;\n }));\n });\n const detectManager = () => __awaiter(this, void 0, void 0, function* () {\n var _a;\n const result = yield (0, package_manager_detector_1.detect)({ cwd: process.cwd() });\n switch (result === null || result === void 0 ? void 0 : result.name) {\n case \"npm\":\n case \"deno\":\n return null; // NPM case is still selectable & Deno is not supported\n default:\n return (_a = result === null || result === void 0 ? void 0 : result.name) !== null && _a !== void 0 ? _a : null;\n }\n });\n const isLegacyCompilerPatchStep = (str) => str === \"typia patch\" || str.includes(\"ts-patch install\");\n const removeLegacyCompilerPatchSteps = (script) => script\n .split(\"&&\")\n .map((str) => str.trim())\n .filter((str) => str.length !== 0 && isLegacyCompilerPatchStep(str) === false)\n .join(\" && \");\n})(TypiaSetupWizard || (exports.TypiaSetupWizard = TypiaSetupWizard = {}));\n//# sourceMappingURL=TypiaSetupWizard.js.map"],"names":["this","TypiaSetupWizard_1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;AACA,IAAI,SAAS,GAAG,CAACA,kBAAI,IAAIA,kBAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA,CAAE,CAAC,CAAC,CAAA;AAC9G,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,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AAI,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,EAAE,GAAG,IAAI;AAC/H;AACA,IAAA,CAAK,CAAC;AACN,IAAI,MAAM,yBAAyB,GAAG,CAAC,GAAG,KAAK,GAAG,KAAK,aAAa,IAAI,GAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC;AACxG,IAAI,MAAM,8BAA8B,GAAG,CAAC,MAAM,KAAK;AACvD,SAAS,KAAK,CAAC,IAAI;AACnB,SAAS,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,EAAE;AAChC,SAAS,MAAM,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,yBAAyB,CAAC,GAAG,CAAC,KAAK,KAAK;AACrF,SAAS,IAAI,CAAC,MAAM,CAAC;AACrB,CAAC,EAAE,gBAAgB,KAAK,kBAAA,GAAAH,kBAAA,CAAA,gBAAwB,GAAG,gBAAgB,GAAG,EAAE,CAAC,CAAC;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import commander from "commander";
|
|
2
|
-
import inquirer from "inquirer";
|
|
3
|
-
import { PackageManager } from "./PackageManager";
|
|
4
|
-
export declare namespace ArgumentParser {
|
|
5
|
-
type Inquiry<T> = (pack: PackageManager, command: commander.Command, prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule, action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>) => Promise<T>;
|
|
6
|
-
const parse: <T>(pack: PackageManager, inquiry: (pack: PackageManager, command: commander.Command, prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule, action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>) => Promise<T>) => Promise<T>;
|
|
7
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ArgumentParser = void 0;
|
|
16
|
-
const commander_1 = __importDefault(require("commander"));
|
|
17
|
-
const inquirer_1 = __importDefault(require("inquirer"));
|
|
18
|
-
var ArgumentParser;
|
|
19
|
-
(function (ArgumentParser) {
|
|
20
|
-
ArgumentParser.parse = (pack, inquiry) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
// TAKE OPTIONS
|
|
22
|
-
const action = (closure) => new Promise((resolve, reject) => {
|
|
23
|
-
commander_1.default.program.action((options) => __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
try {
|
|
25
|
-
resolve(yield closure(options));
|
|
26
|
-
}
|
|
27
|
-
catch (exp) {
|
|
28
|
-
reject(exp);
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
commander_1.default.program.parseAsync().catch(reject);
|
|
32
|
-
});
|
|
33
|
-
return inquiry(pack, commander_1.default.program, inquirer_1.default.createPromptModule, action);
|
|
34
|
-
});
|
|
35
|
-
})(ArgumentParser || (exports.ArgumentParser = ArgumentParser = {}));
|
|
36
|
-
//# sourceMappingURL=ArgumentParser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentParser.js","sourceRoot":"","sources":["../../../src/executable/setup/ArgumentParser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAkC;AAClC,wDAAgC;AAIhC,IAAiB,cAAc,CAoC9B;AApCD,WAAiB,cAAc;IAQhB,oBAAK,GAAG,CACnB,IAAoB,EACpB,OAKe,EACH,EAAE;QACd,eAAe;QACf,MAAM,MAAM,GAAG,CAAC,OAA4C,EAAE,EAAE,CAC9D,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACjC,mBAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAO,OAAO,EAAE,EAAE;gBACzC,IAAI,CAAC;oBACH,OAAO,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;gBAClC,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,MAAM,CAAC,GAAG,CAAC,CAAC;gBACd,CAAC;YACH,CAAC,CAAA,CAAC,CAAC;YACH,mBAAS,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QACL,OAAO,OAAO,CACZ,IAAI,EACJ,mBAAS,CAAC,OAAO,EACjB,kBAAQ,CAAC,kBAAkB,EAC3B,MAAM,CACP,CAAC;IACJ,CAAC,CAAA,CAAC;AACJ,CAAC,EApCgB,cAAc,aAAd,cAAc,GAAd,cAAc,QAoC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentParser.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|