nestia 2.0.7-dev.20220414 → 2.0.7-dev.20220414-5

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 (34) hide show
  1. package/bin/NestiaApplication.d.ts.map +1 -1
  2. package/bin/NestiaApplication.js +17 -14
  3. package/bin/executable/internal/CompilerOptions.d.ts +1 -0
  4. package/bin/executable/internal/CompilerOptions.d.ts.map +1 -1
  5. package/bin/executable/internal/CompilerOptions.js +4 -10
  6. package/bin/executable/internal/NestiaConfig.d.ts.map +1 -1
  7. package/bin/executable/internal/NestiaConfig.js +6 -1
  8. package/bin/executable/nestia.js +1 -2
  9. package/bin/executable/sdk.js +1 -1
  10. package/bin/generates/SdkGenerator.d.ts +1 -0
  11. package/bin/generates/SdkGenerator.d.ts.map +1 -1
  12. package/bin/generates/SdkGenerator.js +5 -4
  13. package/bundle/HttpError.ts +1 -0
  14. package/bundle/IConnection.ts +1 -0
  15. package/bundle/Primitive.ts +1 -0
  16. package/bundle/__internal/AesPkcs5.ts +1 -0
  17. package/bundle/__internal/Fetcher.ts +1 -0
  18. package/package.json +1 -1
  19. package/bin/bundle/HttpError.d.ts +0 -2
  20. package/bin/bundle/HttpError.d.ts.map +0 -1
  21. package/bin/bundle/HttpError.js +0 -6
  22. package/bin/bundle/IConnection.d.ts +0 -2
  23. package/bin/bundle/IConnection.d.ts.map +0 -1
  24. package/bin/bundle/IConnection.js +0 -3
  25. package/bin/bundle/Primitive.d.ts +0 -2
  26. package/bin/bundle/Primitive.d.ts.map +0 -1
  27. package/bin/bundle/Primitive.js +0 -6
  28. package/bin/bundle/__internal/AesPkcs5.d.ts +0 -2
  29. package/bin/bundle/__internal/AesPkcs5.d.ts.map +0 -1
  30. package/bin/bundle/__internal/AesPkcs5.js +0 -6
  31. package/bin/bundle/__internal/Fetcher.d.ts +0 -2
  32. package/bin/bundle/__internal/Fetcher.d.ts.map +0 -1
  33. package/bin/bundle/__internal/Fetcher.js +0 -6
  34. package/tsconfig.json +0 -83
@@ -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();
@@ -72,7 +72,6 @@ var __values = (this && this.__values) || function(o) {
72
72
  };
73
73
  Object.defineProperty(exports, "__esModule", { value: true });
74
74
  var cp = __importStar(require("child_process"));
75
- var path = __importStar(require("path"));
76
75
  var process = __importStar(require("process"));
77
76
  function install() {
78
77
  var e_1, _a;
@@ -98,7 +97,7 @@ function sdk() {
98
97
  switch (_a.label) {
99
98
  case 0:
100
99
  // EXECUTE THE COMMAND, BUT IGNORE WARNINGS
101
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require(path.relative(process.cwd(), "".concat(__dirname, "/../executable/sdk")))); })];
100
+ return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("".concat(__dirname, "/sdk.js"))); })];
102
101
  case 1:
103
102
  // EXECUTE THE COMMAND, BUT IGNORE WARNINGS
104
103
  _a.sent();
@@ -97,7 +97,7 @@ function get_nestia_config() {
97
97
  switch (_a.label) {
98
98
  case 0:
99
99
  connector = new WorkerConnector_1.WorkerConnector(null, null, "process");
100
- return [4 /*yield*/, connector.connect(path.relative(process.cwd(), __dirname + "/internal/nestia.config.getter.js"))];
100
+ return [4 /*yield*/, connector.connect(__dirname + "/internal/nestia.config.getter.js")];
101
101
  case 1:
102
102
  _a.sent();
103
103
  return [4 /*yield*/, connector.getDriver()];
@@ -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
+ "version": "2.0.7-dev.20220414-5",
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
- }