nestia 2.0.1-dev.20220412 → 2.0.1-dev.20220413

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestia",
3
- "version": "2.0.1-dev.20220412",
3
+ "version": "2.0.1-dev.20220413",
4
4
  "description": "Automatic SDK and Document generator for the NestJS",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
- import * as fs from "fs";
2
- import * as path from "path";
3
- import * as tsc from "typescript";
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import tsc from "typescript";
4
4
  import { Pair } from "tstl/utility/Pair";
5
5
  import { Singleton } from "tstl/thread/Singleton";
6
6
 
@@ -1,5 +1,5 @@
1
- import * as NodePath from "path";
2
- import * as tsc from "typescript";
1
+ import NodePath from "path";
2
+ import tsc from "typescript";
3
3
  import { HashMap } from "tstl/container/HashMap";
4
4
 
5
5
  import { IController } from "../structures/IController";
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import tsc from "typescript";
2
2
 
3
3
  export namespace GenericAnalyzer
4
4
  {
@@ -1,4 +1,4 @@
1
- import * as tsc from "typescript";
1
+ import tsc from "typescript";
2
2
 
3
3
  import { HashMap } from "tstl/container/HashMap";
4
4
  import { HashSet } from "tstl/container/HashSet";
@@ -1,4 +1,4 @@
1
- import * as Pather from "path";
1
+ import Pather from "path";
2
2
 
3
3
  import { ArrayUtil } from "../utils/ArrayUtil";
4
4
  import { StringUtil } from "../utils/StringUtil";
@@ -1,6 +1,6 @@
1
- import * as fs from "fs";
1
+ import fs from "fs";
2
2
  import glob from "glob";
3
- import * as path from "path";
3
+ import path from "path";
4
4
 
5
5
  import { IConfiguration } from "../IConfiguration";
6
6
 
package/src/bin/nestia.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ts-node
2
2
 
3
- import * as cp from "child_process";
4
- import * as fs from "fs";
3
+ import cp from "child_process";
4
+ import fs from "fs";
5
5
  import { CompilerOptions } from "../internal/CompilerOptions";
6
6
 
7
7
  import { stripJsonComments } from "../utils/stripJsonComments";
@@ -122,7 +122,7 @@ async function tsconfig(task: () => void): Promise<void>
122
122
  throw error;
123
123
  }
124
124
 
125
- async function main(): Promise<void>
125
+ async function main()
126
126
  {
127
127
  if (process.argv[2] === "install")
128
128
  await install();
@@ -1,7 +1,7 @@
1
- import * as cli from "cli";
2
- import * as fs from "fs";
3
- import * as path from "path";
4
- import * as tsc from "typescript";
1
+ import cli from "cli";
2
+ import fs from "fs";
3
+ import path from "path";
4
+ import tsc from "typescript";
5
5
  import { Primitive } from "nestia-fetcher";
6
6
 
7
7
  import { IConfiguration } from "../IConfiguration";
@@ -1,4 +1,4 @@
1
- import * as fs from "fs";
1
+ import fs from "fs";
2
2
  import { HashMap } from "tstl/container/HashMap";
3
3
  import { IConfiguration } from "../IConfiguration";
4
4
 
@@ -1,4 +1,4 @@
1
- import type * as tsc from "typescript";
1
+ import type tsc from "typescript";
2
2
  import { Pair } from "tstl/utility/Pair";
3
3
  import { Vector } from "tstl/container/Vector";
4
4
 
@@ -1,4 +1,4 @@
1
- import * as fs from "fs";
1
+ import fs from "fs";
2
2
  import { DirectoryUtil } from "../utils/DirectoryUtil";
3
3
 
4
4
  import { IRoute } from "../structures/IRoute";
@@ -1,4 +1,4 @@
1
- import type * as tsc from "typescript";
1
+ import type tsc from "typescript";
2
2
  import { ParamCategory } from "./ParamCategory";
3
3
 
4
4
  export interface IRoute
@@ -1,5 +1,5 @@
1
1
  import del from "del";
2
- import * as fs from "fs";
2
+ import fs from "fs";
3
3
 
4
4
  export namespace DirectoryUtil
5
5
  {
@@ -1,4 +1,4 @@
1
- import * as path from "path";
1
+ import path from "path";
2
2
 
3
3
  import { HashMap } from "tstl/container/HashMap";
4
4
  import { HashSet } from "tstl/container/HashSet";
package/tsconfig.json CHANGED
@@ -17,7 +17,7 @@
17
17
  // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
18
18
  // "sourceMap": true, /* Generates corresponding '.map' file. */
19
19
  // "outFile": "./", /* Concatenate and emit output to single file. */
20
- // "outDir": "./lib", /* Redirect output structure to the directory. */
20
+ "outDir": "./lib", /* Redirect output structure to the directory. */
21
21
  // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
22
22
  // "composite": true, /* Enable project compilation */
23
23
  // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */