nestia 2.0.3 → 2.0.4-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.
@@ -3,7 +3,10 @@ on: [push, pull_request]
3
3
 
4
4
  jobs:
5
5
  Ubuntu:
6
- runs-on: ubuntu-latest
6
+ runs-on: ${{ matrix.os }}
7
+ strategy:
8
+ matrix:
9
+ os: [ubuntu-latest, windows-latest, macos-latest]
7
10
  steps:
8
11
  - uses: actions/checkout@v1
9
12
  - uses: actions/setup-node@v1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestia",
3
- "version": "2.0.3",
3
+ "version": "2.0.4-dev.20220413",
4
4
  "description": "Automatic SDK and Document generator for the NestJS",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
@@ -36,7 +36,7 @@
36
36
  "cli": "^1.0.1",
37
37
  "del": "^6.0.0",
38
38
  "glob": "^7.2.0",
39
- "ts-node": "^10.4.0",
39
+ "ts-node": "^9.1.1",
40
40
  "tstl": "^2.5.3",
41
41
  "ttypescript": "^1.5.13",
42
42
  "typescript": "^4.6.3",
package/src/bin/nestia.ts CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  import * as cp from "child_process";
4
4
  import * as fs from "fs";
5
+ import * as path from "path";
6
+ import * as proccess from "process";
5
7
 
6
8
  import { CompilerOptions } from "../internal/CompilerOptions";
7
9
  import { stripJsonComments } from "../utils/stripJsonComments";
@@ -26,7 +28,7 @@ function sdk(): void
26
28
  // PREPARE COMMAND
27
29
  const parameters: string[] = [
28
30
  "npx ts-node -C ttypescript",
29
- __dirname + "/../executable/sdk",
31
+ '"' + path.relative(proccess.cwd(), __dirname + "/../executable/sdk") + '"',
30
32
  ...process.argv.slice(3)
31
33
  ];
32
34
  const command: string = parameters.join(" ");
@@ -36,4 +36,4 @@ export namespace SdkGenerator
36
36
  }
37
37
  }
38
38
 
39
- const BUNDLE = __dirname + "/../bundle"
39
+ const BUNDLE = __dirname + "/../bundle";