nestia 2.0.7-dev.20220414-3 → 2.0.8-dev.20220414

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.
Files changed (38) hide show
  1. package/.github/workflows/build.yml +1 -1
  2. package/bin/NestiaApplication.d.ts.map +1 -1
  3. package/bin/NestiaApplication.js +17 -14
  4. package/bin/executable/internal/CompilerOptions.d.ts +1 -0
  5. package/bin/executable/internal/CompilerOptions.d.ts.map +1 -1
  6. package/bin/executable/internal/CompilerOptions.js +4 -10
  7. package/bin/executable/internal/NestiaConfig.d.ts.map +1 -1
  8. package/bin/executable/internal/NestiaConfig.js +6 -1
  9. package/bin/executable/internal/NestiaSdkCli.d.ts +4 -0
  10. package/bin/executable/internal/NestiaSdkCli.d.ts.map +1 -0
  11. package/bin/executable/internal/NestiaSdkCli.js +201 -0
  12. package/bin/executable/nestia.js +1 -1
  13. package/bin/executable/sdk.js +5 -203
  14. package/bin/generates/SdkGenerator.d.ts +1 -0
  15. package/bin/generates/SdkGenerator.d.ts.map +1 -1
  16. package/bin/generates/SdkGenerator.js +5 -4
  17. package/bundle/HttpError.ts +1 -0
  18. package/bundle/IConnection.ts +1 -0
  19. package/bundle/Primitive.ts +1 -0
  20. package/bundle/__internal/AesPkcs5.ts +1 -0
  21. package/bundle/__internal/Fetcher.ts +1 -0
  22. package/package.json +1 -1
  23. package/bin/bundle/HttpError.d.ts +0 -2
  24. package/bin/bundle/HttpError.d.ts.map +0 -1
  25. package/bin/bundle/HttpError.js +0 -6
  26. package/bin/bundle/IConnection.d.ts +0 -2
  27. package/bin/bundle/IConnection.d.ts.map +0 -1
  28. package/bin/bundle/IConnection.js +0 -3
  29. package/bin/bundle/Primitive.d.ts +0 -2
  30. package/bin/bundle/Primitive.d.ts.map +0 -1
  31. package/bin/bundle/Primitive.js +0 -6
  32. package/bin/bundle/__internal/AesPkcs5.d.ts +0 -2
  33. package/bin/bundle/__internal/AesPkcs5.d.ts.map +0 -1
  34. package/bin/bundle/__internal/AesPkcs5.js +0 -6
  35. package/bin/bundle/__internal/Fetcher.d.ts +0 -2
  36. package/bin/bundle/__internal/Fetcher.d.ts.map +0 -1
  37. package/bin/bundle/__internal/Fetcher.js +0 -6
  38. package/tsconfig.json +0 -83
@@ -6,7 +6,7 @@ jobs:
6
6
  runs-on: ${{ matrix.os }}
7
7
  strategy:
8
8
  matrix:
9
- os: [ubuntu-latest, windows-latest, macos-latest]
9
+ os: [windows-latest, macos-latest, ubuntu-latest]
10
10
  steps:
11
11
  - uses: actions/checkout@v1
12
12
  - uses: actions/setup-node@v1
@@ -1 +1 @@
1
- {"version":3,"file":"NestiaApplication.d.ts","sourceRoot":"","sources":["../src/NestiaApplication.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,qBAAa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA+C;gBAE5D,MAAM,EAAE,cAAc;IA0B5B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA8CtC,OAAO,CAAC,OAAO;YAyBD,eAAe;CAKhC"}
1
+ {"version":3,"file":"NestiaApplication.d.ts","sourceRoot":"","sources":["../src/NestiaApplication.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,qBAAa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA+C;gBAE5D,MAAM,EAAE,cAAc;IA2B5B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA8CtC,OAAO,CAAC,OAAO;YA2BD,eAAe;CAKhC"}
@@ -117,16 +117,17 @@ var NestiaApplication = /** @class */ (function () {
117
117
  var _this = this;
118
118
  return __generator(this, function (_a) {
119
119
  switch (_a.label) {
120
- case 0: return [4 /*yield*/, fs.promises.readdir("".concat(__dirname).concat(path.sep, "bundle"))];
120
+ case 0: return [4 /*yield*/, fs.promises.readdir(SdkGenerator_1.SdkGenerator.BUNDLE_PATH)];
121
121
  case 1:
122
122
  bundles = _a.sent();
123
123
  return [4 /*yield*/, ArrayUtil_1.ArrayUtil.asyncMap(bundles, function (file) { return __awaiter(_this, void 0, void 0, function () {
124
- var relative, stats;
124
+ var relative, location, stats;
125
125
  return __generator(this, function (_a) {
126
126
  switch (_a.label) {
127
127
  case 0:
128
- relative = "".concat(this.config_.output).concat(path.sep).concat(file);
129
- return [4 /*yield*/, fs.promises.stat("".concat(__dirname).concat(path.sep, "bundle").concat(path.sep).concat(file))];
128
+ relative = path.join(this.config_.output, file);
129
+ location = path.join(SdkGenerator_1.SdkGenerator.BUNDLE_PATH, file);
130
+ return [4 /*yield*/, fs.promises.stat(location)];
130
131
  case 1:
131
132
  stats = _a.sent();
132
133
  return [2 /*return*/, new Pair_1.Pair(relative, stats.isDirectory())];
@@ -211,7 +212,7 @@ var NestiaApplication = /** @class */ (function () {
211
212
  finally { if (e_2) throw e_2.error; }
212
213
  return [7 /*endfinally*/];
213
214
  case 10:
214
- program = tsc.createProgram(controllerList.map(function (c) { return c.file; }), this.config_.compilerOptions || {});
215
+ program = tsc.createProgram(controllerList.map(function (c) { return c.file; }), this.config_.compilerOptions || { noEmit: true });
215
216
  checker = program.getTypeChecker();
216
217
  routeList = [];
217
218
  try {
@@ -241,19 +242,21 @@ var NestiaApplication = /** @class */ (function () {
241
242
  });
242
243
  };
243
244
  NestiaApplication.prototype.prepare = function () {
244
- var _a;
245
+ var _this = this;
245
246
  // CONSTRUCT OPTIONS
246
- var transformed = false;
247
- var aliased = false;
248
- if (!this.config_.compilerOptions)
249
- this.config_.compilerOptions = CompilerOptions_1.CompilerOptions.DEFAULT_OPTIONS;
250
- else
251
- _a = __read(CompilerOptions_1.CompilerOptions.emend(this.config_.compilerOptions, !!this.config_.assert), 2), transformed = _a[0], aliased = _a[1];
247
+ var predicator = this.config_.compilerOptions
248
+ ? function () { return CompilerOptions_1.CompilerOptions.emend(_this.config_.compilerOptions, !!_this.config_.assert); }
249
+ : function () {
250
+ _this.config_.compilerOptions = CompilerOptions_1.CompilerOptions.DEFAULT_OPTIONS;
251
+ return [false, false];
252
+ };
252
253
  // MOUNT TS-NODE
254
+ var _a = __read(predicator(), 2), transformed = _a[0], absoluted = _a[1];
253
255
  runner.register({
256
+ emit: false,
254
257
  compiler: transformed ? "ttypescript" : "typescript",
255
258
  compilerOptions: this.config_.compilerOptions,
256
- require: aliased
259
+ require: absoluted
257
260
  ? ["tsconfig-paths/register"]
258
261
  : undefined
259
262
  });
@@ -264,7 +267,7 @@ var NestiaApplication = /** @class */ (function () {
264
267
  return __generator(this, function (_b) {
265
268
  switch (_b.label) {
266
269
  case 0:
267
- _a = file.indexOf("".concat(this.config_.output).concat(path.sep, "functional")) === -1;
270
+ _a = file.indexOf(path.join(this.config_.output, "functional")) === -1;
268
271
  if (!_a) return [3 /*break*/, 2];
269
272
  return [4 /*yield*/, this.bundle_checker_.get()];
270
273
  case 1:
@@ -4,6 +4,7 @@ export declare namespace CompilerOptions {
4
4
  target: string;
5
5
  module: string;
6
6
  types: string[];
7
+ noEmit: boolean;
7
8
  esModuleInterop: boolean;
8
9
  experimentalDecorators: boolean;
9
10
  emitDecoratorMetadata: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CompilerOptions.d.ts","sourceRoot":"","sources":["../../../src/executable/internal/CompilerOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAElC,yBAAiB,eAAe,CAChC;IAcW,MAAM,eAAe;;;;;;;KAI3B,CAAC;IAEF,SAAgB,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CA4CvF;CAaJ"}
1
+ {"version":3,"file":"CompilerOptions.d.ts","sourceRoot":"","sources":["../../../src/executable/internal/CompilerOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAElC,yBAAiB,eAAe,CAChC;IAeW,MAAM,eAAe;;;;;;;;KAI3B,CAAC;IAEF,SAAgB,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAoCvF;CAaJ"}
@@ -50,6 +50,7 @@ var CompilerOptions;
50
50
  "node",
51
51
  "reflect-metadata"
52
52
  ],
53
+ noEmit: true,
53
54
  esModuleInterop: true,
54
55
  experimentalDecorators: true,
55
56
  emitDecoratorMetadata: true
@@ -83,7 +84,6 @@ var CompilerOptions;
83
84
  if (!options.plugins || !(options.plugins instanceof Array))
84
85
  options.plugins = [];
85
86
  var transformed = false;
86
- var aliased = false;
87
87
  var plugins = options.plugins;
88
88
  var emplace = function (input) {
89
89
  var found = plugins.find(function (p) { return nestia_fetcher_1.Primitive.equal_to(p, input); });
@@ -95,15 +95,9 @@ var CompilerOptions;
95
95
  emplace({
96
96
  transform: "typescript-is/lib/transform-inline/transformer"
97
97
  });
98
- if (options.baseUrl ||
99
- (options.paths && Object.entries(options.paths).length !== 0)) {
100
- aliased = true;
101
- emplace({
102
- transform: "typescript-transform-paths",
103
- useRootDirs: true,
104
- });
105
- }
106
- return [transformed, aliased];
98
+ if (options.paths && Object.entries(options.paths).length !== 0)
99
+ emplace({ transform: "typescript-transform-paths" });
100
+ return [transformed, !!options.baseUrl];
107
101
  }
108
102
  CompilerOptions.emend = emend;
109
103
  function merge_array(origin, must) {
@@ -1 +1 @@
1
- {"version":3,"file":"NestiaConfig.d.ts","sourceRoot":"","sources":["../../../src/executable/internal/NestiaConfig.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,yBAAiB,YAAY,CAC7B;IACI,SAAgB,GAAG,IAAI,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAGpD;CAuBJ"}
1
+ {"version":3,"file":"NestiaConfig.d.ts","sourceRoot":"","sources":["../../../src/executable/internal/NestiaConfig.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,yBAAiB,YAAY,CAC7B;IACI,SAAgB,GAAG,IAAI,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAGpD;CA4BJ"}
@@ -184,7 +184,12 @@ var NestiaConfig;
184
184
  case 0:
185
185
  if (fs.existsSync("nestia.config.ts") === false)
186
186
  return [2 /*return*/, null];
187
- runner.register();
187
+ runner.register({
188
+ emit: false,
189
+ compilerOptions: {
190
+ noEmit: true
191
+ }
192
+ });
188
193
  return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require(path.resolve("nestia.config.ts"))); })];
189
194
  case 1:
190
195
  config = _a.sent();
@@ -0,0 +1,4 @@
1
+ export declare namespace NestiaSdkCli {
2
+ function main(elements: string[]): Promise<void>;
3
+ }
4
+ //# sourceMappingURL=NestiaSdkCli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestiaSdkCli.d.ts","sourceRoot":"","sources":["../../../src/executable/internal/NestiaSdkCli.ts"],"names":[],"mappings":"AAiBA,yBAAiB,YAAY,CAC7B;IACI,SAAsB,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAe5D;CAwDJ"}
@@ -0,0 +1,201 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __generator = (this && this.__generator) || function (thisArg, body) {
46
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
+ function verb(n) { return function (v) { return step([n, v]); }; }
49
+ function step(op) {
50
+ if (f) throw new TypeError("Generator is already executing.");
51
+ while (_) try {
52
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
+ if (y = 0, t) op = [op[0] & 2, t.value];
54
+ switch (op[0]) {
55
+ case 0: case 1: t = op; break;
56
+ case 4: _.label++; return { value: op[1], done: false };
57
+ case 5: _.label++; y = op[1]; op = [0]; continue;
58
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
+ default:
60
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
+ if (t[2]) _.ops.pop();
65
+ _.trys.pop(); continue;
66
+ }
67
+ op = body.call(thisArg, _);
68
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
+ }
71
+ };
72
+ var __values = (this && this.__values) || function(o) {
73
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
74
+ if (m) return m.call(o);
75
+ if (o && typeof o.length === "number") return {
76
+ next: function () {
77
+ if (o && i >= o.length) o = void 0;
78
+ return { value: o && o[i++], done: !o };
79
+ }
80
+ };
81
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
82
+ };
83
+ var __importDefault = (this && this.__importDefault) || function (mod) {
84
+ return (mod && mod.__esModule) ? mod : { "default": mod };
85
+ };
86
+ Object.defineProperty(exports, "__esModule", { value: true });
87
+ exports.NestiaSdkCli = void 0;
88
+ var cli = __importStar(require("cli"));
89
+ var fs = __importStar(require("fs"));
90
+ var path = __importStar(require("path"));
91
+ var jsonc_simple_parser_1 = __importDefault(require("jsonc-simple-parser"));
92
+ var WorkerConnector_1 = require("tgrid/protocols/workers/WorkerConnector");
93
+ var NestiaApplication_1 = require("../../NestiaApplication");
94
+ var NestiaSdkCli;
95
+ (function (NestiaSdkCli) {
96
+ function main(elements) {
97
+ return __awaiter(this, void 0, void 0, function () {
98
+ var command, inputs, elements_1, elements_1_1, arg;
99
+ var e_1, _a;
100
+ return __generator(this, function (_b) {
101
+ switch (_b.label) {
102
+ case 0:
103
+ command = cli.parse({
104
+ exclude: ["e", "Something to exclude", "string", null],
105
+ out: ["o", "Output path of the SDK files", "string", null],
106
+ });
107
+ inputs = [];
108
+ try {
109
+ for (elements_1 = __values(elements), elements_1_1 = elements_1.next(); !elements_1_1.done; elements_1_1 = elements_1.next()) {
110
+ arg = elements_1_1.value;
111
+ if (arg[0] === "-")
112
+ break;
113
+ inputs.push(arg);
114
+ }
115
+ }
116
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
117
+ finally {
118
+ try {
119
+ if (elements_1_1 && !elements_1_1.done && (_a = elements_1.return)) _a.call(elements_1);
120
+ }
121
+ finally { if (e_1) throw e_1.error; }
122
+ }
123
+ return [4 /*yield*/, generate(inputs, command)];
124
+ case 1:
125
+ _b.sent();
126
+ return [2 /*return*/];
127
+ }
128
+ });
129
+ });
130
+ }
131
+ NestiaSdkCli.main = main;
132
+ function generate(include, command) {
133
+ return __awaiter(this, void 0, void 0, function () {
134
+ var config, parentPath, parentStats, content, options, app;
135
+ return __generator(this, function (_a) {
136
+ switch (_a.label) {
137
+ case 0: return [4 /*yield*/, get_nestia_config()];
138
+ case 1:
139
+ config = _a.sent();
140
+ if (config === null) {
141
+ if (command.out === null)
142
+ throw new Error("Output directory is not specified. Add the \"--out <output_directory>\" option.");
143
+ config = {
144
+ input: {
145
+ include: include,
146
+ exclude: command.exclude
147
+ ? [command.exclude]
148
+ : undefined
149
+ },
150
+ output: command.out
151
+ };
152
+ }
153
+ parentPath = path.resolve(config.output + "/..");
154
+ return [4 /*yield*/, fs.promises.stat(parentPath)];
155
+ case 2:
156
+ parentStats = _a.sent();
157
+ if (parentStats.isDirectory() === false)
158
+ throw new Error("Unable to find parent directory of the output path: \"".concat(parentPath, "\"."));
159
+ if (!(fs.existsSync("tsconfig.json") === true)) return [3 /*break*/, 4];
160
+ return [4 /*yield*/, fs.promises.readFile("tsconfig.json", "utf8")];
161
+ case 3:
162
+ content = _a.sent();
163
+ options = jsonc_simple_parser_1.default.parse(content).compilerOptions;
164
+ config.compilerOptions = __assign(__assign({}, options), (config.compilerOptions || {}));
165
+ _a.label = 4;
166
+ case 4:
167
+ app = new NestiaApplication_1.NestiaApplication(config);
168
+ return [4 /*yield*/, app.generate()];
169
+ case 5:
170
+ _a.sent();
171
+ return [2 /*return*/];
172
+ }
173
+ });
174
+ });
175
+ }
176
+ function get_nestia_config() {
177
+ return __awaiter(this, void 0, void 0, function () {
178
+ var connector, driver, config;
179
+ return __generator(this, function (_a) {
180
+ switch (_a.label) {
181
+ case 0:
182
+ connector = new WorkerConnector_1.WorkerConnector(null, null, "process");
183
+ return [4 /*yield*/, connector.connect("".concat(__dirname, "/nestia.config.getter.").concat(__filename.substr(-2)))];
184
+ case 1:
185
+ _a.sent();
186
+ return [4 /*yield*/, connector.getDriver()];
187
+ case 2:
188
+ driver = _a.sent();
189
+ return [4 /*yield*/, driver.get()];
190
+ case 3:
191
+ config = _a.sent();
192
+ return [4 /*yield*/, connector.close()];
193
+ case 4:
194
+ _a.sent();
195
+ return [2 /*return*/, config];
196
+ }
197
+ });
198
+ });
199
+ }
200
+ })(NestiaSdkCli = exports.NestiaSdkCli || (exports.NestiaSdkCli = {}));
201
+ //# sourceMappingURL=NestiaSdkCli.js.map
@@ -97,7 +97,7 @@ function sdk() {
97
97
  switch (_a.label) {
98
98
  case 0:
99
99
  // EXECUTE THE COMMAND, BUT IGNORE WARNINGS
100
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("".concat(__dirname, "/sdk.js"))); })];
100
+ return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("".concat(__dirname, "/sdk.").concat(__filename.substr(-2)))); })];
101
101
  case 1:
102
102
  // EXECUTE THE COMMAND, BUT IGNORE WARNINGS
103
103
  _a.sent();
@@ -1,206 +1,8 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (_) try {
52
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- var __values = (this && this.__values) || function(o) {
73
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
74
- if (m) return m.call(o);
75
- if (o && typeof o.length === "number") return {
76
- next: function () {
77
- if (o && i >= o.length) o = void 0;
78
- return { value: o && o[i++], done: !o };
79
- }
80
- };
81
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
82
- };
83
- var __importDefault = (this && this.__importDefault) || function (mod) {
84
- return (mod && mod.__esModule) ? mod : { "default": mod };
85
- };
86
2
  Object.defineProperty(exports, "__esModule", { value: true });
87
- var cli = __importStar(require("cli"));
88
- var fs = __importStar(require("fs"));
89
- var path = __importStar(require("path"));
90
- var jsonc_simple_parser_1 = __importDefault(require("jsonc-simple-parser"));
91
- var WorkerConnector_1 = require("tgrid/protocols/workers/WorkerConnector");
92
- var NestiaApplication_1 = require("../NestiaApplication");
93
- function get_nestia_config() {
94
- return __awaiter(this, void 0, void 0, function () {
95
- var connector, driver, config;
96
- return __generator(this, function (_a) {
97
- switch (_a.label) {
98
- case 0:
99
- connector = new WorkerConnector_1.WorkerConnector(null, null, "process");
100
- return [4 /*yield*/, connector.connect(__dirname + "/internal/nestia.config.getter.js")];
101
- case 1:
102
- _a.sent();
103
- return [4 /*yield*/, connector.getDriver()];
104
- case 2:
105
- driver = _a.sent();
106
- return [4 /*yield*/, driver.get()];
107
- case 3:
108
- config = _a.sent();
109
- return [4 /*yield*/, connector.close()];
110
- case 4:
111
- _a.sent();
112
- return [2 /*return*/, config];
113
- }
114
- });
115
- });
116
- }
117
- function generate(include, command) {
118
- return __awaiter(this, void 0, void 0, function () {
119
- var config, parentPath, parentStats, content, options, app;
120
- return __generator(this, function (_a) {
121
- switch (_a.label) {
122
- case 0: return [4 /*yield*/, get_nestia_config()];
123
- case 1:
124
- config = _a.sent();
125
- if (config === null) {
126
- if (command.out === null)
127
- throw new Error("Output directory is not specified. Add the \"--out <output_directory>\" option.");
128
- config = {
129
- input: {
130
- include: include,
131
- exclude: command.exclude
132
- ? [command.exclude]
133
- : undefined
134
- },
135
- output: command.out
136
- };
137
- }
138
- parentPath = path.resolve(config.output + "/..");
139
- return [4 /*yield*/, fs.promises.stat(parentPath)];
140
- case 2:
141
- parentStats = _a.sent();
142
- if (parentStats.isDirectory() === false)
143
- throw new Error("Unable to find parent directory of the output path: \"".concat(parentPath, "\"."));
144
- if (!(fs.existsSync("tsconfig.json") === true)) return [3 /*break*/, 4];
145
- return [4 /*yield*/, fs.promises.readFile("tsconfig.json", "utf8")];
146
- case 3:
147
- content = _a.sent();
148
- options = jsonc_simple_parser_1.default.parse(content).compilerOptions;
149
- config.compilerOptions = __assign(__assign({}, options), (config.compilerOptions || {}));
150
- _a.label = 4;
151
- case 4:
152
- app = new NestiaApplication_1.NestiaApplication(config);
153
- return [4 /*yield*/, app.generate()];
154
- case 5:
155
- _a.sent();
156
- return [2 /*return*/];
157
- }
158
- });
159
- });
160
- }
161
- function main() {
162
- return __awaiter(this, void 0, void 0, function () {
163
- var command, inputs, _a, _b, arg, exp_1;
164
- var e_1, _c;
165
- return __generator(this, function (_d) {
166
- switch (_d.label) {
167
- case 0:
168
- command = cli.parse({
169
- exclude: ["e", "Something to exclude", "string", null],
170
- out: ["o", "Output path of the SDK files", "string", null],
171
- });
172
- _d.label = 1;
173
- case 1:
174
- _d.trys.push([1, 3, , 4]);
175
- inputs = [];
176
- try {
177
- for (_a = __values(process.argv.slice(2)), _b = _a.next(); !_b.done; _b = _a.next()) {
178
- arg = _b.value;
179
- if (arg[0] === "-")
180
- break;
181
- inputs.push(arg);
182
- }
183
- }
184
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
185
- finally {
186
- try {
187
- if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
188
- }
189
- finally { if (e_1) throw e_1.error; }
190
- }
191
- return [4 /*yield*/, generate(inputs, command)];
192
- case 2:
193
- _d.sent();
194
- return [3 /*break*/, 4];
195
- case 3:
196
- exp_1 = _d.sent();
197
- console.log(exp_1);
198
- process.exit(-1);
199
- return [3 /*break*/, 4];
200
- case 4: return [2 /*return*/];
201
- }
202
- });
203
- });
204
- }
205
- main();
3
+ var NestiaSdkCli_1 = require("./internal/NestiaSdkCli");
4
+ NestiaSdkCli_1.NestiaSdkCli.main(process.argv.slice(3)).catch(function (exp) {
5
+ console.log(exp);
6
+ process.exit(-1);
7
+ });
206
8
  //# sourceMappingURL=sdk.js.map
@@ -2,5 +2,6 @@ import { IRoute } from "../structures/IRoute";
2
2
  import { IConfiguration } from "../IConfiguration";
3
3
  export declare namespace SdkGenerator {
4
4
  function generate(config: IConfiguration, routeList: IRoute[]): Promise<void>;
5
+ const BUNDLE_PATH: string;
5
6
  }
6
7
  //# sourceMappingURL=SdkGenerator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SdkGenerator.d.ts","sourceRoot":"","sources":["../../src/generates/SdkGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,yBAAiB,YAAY,CAC7B;IACI,SAAsB,QAAQ,CAEtB,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,IAAI,CAAC,CAsBnB;CACJ"}
1
+ {"version":3,"file":"SdkGenerator.d.ts","sourceRoot":"","sources":["../../src/generates/SdkGenerator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,yBAAiB,YAAY,CAC7B;IACI,SAAsB,QAAQ,CAEtB,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,IAAI,CAAC,CAsBnB;IAEM,MAAM,WAAW,QAA6C,CAAC;CACzE"}
@@ -72,6 +72,7 @@ var __values = (this && this.__values) || function(o) {
72
72
  Object.defineProperty(exports, "__esModule", { value: true });
73
73
  exports.SdkGenerator = void 0;
74
74
  var fs = __importStar(require("fs"));
75
+ var path = __importStar(require("path"));
75
76
  var DirectoryUtil_1 = require("../utils/DirectoryUtil");
76
77
  var FileGenerator_1 = require("./FileGenerator");
77
78
  var SdkGenerator;
@@ -91,7 +92,7 @@ var SdkGenerator;
91
92
  case 2:
92
93
  _a = _c.sent();
93
94
  return [3 /*break*/, 3];
94
- case 3: return [4 /*yield*/, fs.promises.readdir(BUNDLE)];
95
+ case 3: return [4 /*yield*/, fs.promises.readdir(SdkGenerator.BUNDLE_PATH)];
95
96
  case 4:
96
97
  bundle = _c.sent();
97
98
  _c.label = 5;
@@ -102,7 +103,7 @@ var SdkGenerator;
102
103
  case 6:
103
104
  if (!!bundle_1_1.done) return [3 /*break*/, 11];
104
105
  file = bundle_1_1.value;
105
- current = "".concat(BUNDLE, "/").concat(file);
106
+ current = "".concat(SdkGenerator.BUNDLE_PATH, "/").concat(file);
106
107
  return [4 /*yield*/, fs.promises.stat(current)];
107
108
  case 7:
108
109
  stats = _c.sent();
@@ -128,7 +129,7 @@ var SdkGenerator;
128
129
  }
129
130
  finally { if (e_1) throw e_1.error; }
130
131
  return [7 /*endfinally*/];
131
- case 14: return [4 /*yield*/, DirectoryUtil_1.DirectoryUtil.copy(BUNDLE + "/__internal", config.output + "/__internal")];
132
+ case 14: return [4 /*yield*/, DirectoryUtil_1.DirectoryUtil.copy(SdkGenerator.BUNDLE_PATH + "/__internal", config.output + "/__internal")];
132
133
  case 15:
133
134
  _c.sent();
134
135
  // FUNCTIONAL
@@ -142,6 +143,6 @@ var SdkGenerator;
142
143
  });
143
144
  }
144
145
  SdkGenerator.generate = generate;
146
+ SdkGenerator.BUNDLE_PATH = path.join(__dirname, "..", "..", "bundle");
145
147
  })(SdkGenerator = exports.SdkGenerator || (exports.SdkGenerator = {}));
146
- var BUNDLE = __dirname + "/../bundle";
147
148
  //# sourceMappingURL=SdkGenerator.js.map
@@ -0,0 +1 @@
1
+ export { HttpError } from "nestia-fetcher";
@@ -0,0 +1 @@
1
+ export { IConnection } from "nestia-fetcher";
@@ -0,0 +1 @@
1
+ export { Primitive } from "nestia-fetcher";
@@ -0,0 +1 @@
1
+ export { AesPkcs5 } from "nestia-fetcher";
@@ -0,0 +1 @@
1
+ export { Fetcher } from "nestia-fetcher";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestia",
3
- "version": "2.0.7-dev.20220414-3",
3
+ "version": "2.0.8-dev.20220414",
4
4
  "description": "Automatic SDK and Document generator for the NestJS",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -1,2 +0,0 @@
1
- export { HttpError } from "nestia-fetcher";
2
- //# sourceMappingURL=HttpError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpError.d.ts","sourceRoot":"","sources":["../../src/bundle/HttpError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpError = void 0;
4
- var nestia_fetcher_1 = require("nestia-fetcher");
5
- Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return nestia_fetcher_1.HttpError; } });
6
- //# sourceMappingURL=HttpError.js.map
@@ -1,2 +0,0 @@
1
- export { IConnection } from "nestia-fetcher";
2
- //# sourceMappingURL=IConnection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConnection.d.ts","sourceRoot":"","sources":["../../src/bundle/IConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IConnection.js.map
@@ -1,2 +0,0 @@
1
- export { Primitive } from "nestia-fetcher";
2
- //# sourceMappingURL=Primitive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Primitive.d.ts","sourceRoot":"","sources":["../../src/bundle/Primitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Primitive = void 0;
4
- var nestia_fetcher_1 = require("nestia-fetcher");
5
- Object.defineProperty(exports, "Primitive", { enumerable: true, get: function () { return nestia_fetcher_1.Primitive; } });
6
- //# sourceMappingURL=Primitive.js.map
@@ -1,2 +0,0 @@
1
- export { AesPkcs5 } from "nestia-fetcher";
2
- //# sourceMappingURL=AesPkcs5.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AesPkcs5.d.ts","sourceRoot":"","sources":["../../../src/bundle/__internal/AesPkcs5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AesPkcs5 = void 0;
4
- var nestia_fetcher_1 = require("nestia-fetcher");
5
- Object.defineProperty(exports, "AesPkcs5", { enumerable: true, get: function () { return nestia_fetcher_1.AesPkcs5; } });
6
- //# sourceMappingURL=AesPkcs5.js.map
@@ -1,2 +0,0 @@
1
- export { Fetcher } from "nestia-fetcher";
2
- //# sourceMappingURL=Fetcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Fetcher.d.ts","sourceRoot":"","sources":["../../../src/bundle/__internal/Fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fetcher = void 0;
4
- var nestia_fetcher_1 = require("nestia-fetcher");
5
- Object.defineProperty(exports, "Fetcher", { enumerable: true, get: function () { return nestia_fetcher_1.Fetcher; } });
6
- //# sourceMappingURL=Fetcher.js.map
package/tsconfig.json DELETED
@@ -1,83 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
-
5
- /* Basic Options */
6
- // "incremental": true, /* Enable incremental compilation */
7
- "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
- "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9
- "lib": [
10
- "DOM",
11
- "ES2015"
12
- ], /* Specify library files to be included in the compilation. */
13
- // "allowJs": true, /* Allow javascript files to be compiled. */
14
- // "checkJs": true, /* Report errors in .js files. */
15
- // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
16
- "declaration": true, /* Generates corresponding '.d.ts' file. */
17
- "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
18
- "sourceMap": true, /* Generates corresponding '.map' file. */
19
- // "outFile": "./", /* Concatenate and emit output to single file. */
20
- "outDir": "./bin", /* Redirect output structure to the directory. */
21
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
22
- // "composite": true, /* Enable project compilation */
23
- // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
24
- // "removeComments": true, /* Do not emit comments to output. */
25
- // "noEmit": true, /* Do not emit outputs. */
26
- // "importHelpers": true, /* Import emit helpers from 'tslib'. */
27
- "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
28
- // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
29
-
30
- /* Strict Type-Checking Options */
31
- "strict": true, /* Enable all strict type-checking options. */
32
- // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
33
- // "strictNullChecks": true, /* Enable strict null checks. */
34
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
35
- // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
36
- // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
37
- // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
38
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
39
-
40
- /* Additional Checks */
41
- "noUnusedLocals": true, /* Report errors on unused locals. */
42
- "noUnusedParameters": true, /* Report errors on unused parameters. */
43
- "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
44
- "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
45
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
46
-
47
- /* Module Resolution Options */
48
- // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
49
- // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
50
- // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
51
- // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
52
- // "typeRoots": [], /* List of folders to include type definitions from. */
53
- "types": [
54
- "node",
55
- "reflect-metadata"
56
- ], /* Type declaration files to be included in compilation. */
57
- // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
58
- "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
59
- // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
60
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
61
-
62
- /* Source Map Options */
63
- // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
64
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
65
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
66
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
67
-
68
- /* Experimental Options */
69
- "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
70
- "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
71
- "stripInternal": true,
72
-
73
- /* Advanced Options */
74
- "skipLibCheck": true, /* Skip type checking of declaration files. */
75
- "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
76
- "plugins": [
77
- {
78
- "transform": "typescript-is/lib/transform-inline/transformer"
79
- }
80
- ]
81
- },
82
- "include": ["src"]
83
- }