dtsgenerator 3.16.2 → 3.17.0

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/README.md CHANGED
@@ -143,7 +143,12 @@ Output debug message by [debug](https://www.npmjs.com/package/debug) library.
143
143
 
144
144
  ## ChangeLog
145
145
 
146
- ### [v3.16.1](https://github.com/horiuchi/dtsgenerator/releases/tag/v3.16.1) (2022-12-20)
146
+ ### [v3.17.0](https://github.com/horiuchi/dtsgenerator/releases/tag/v3.17.0) (2023-02-21)
147
+
148
+ - features:
149
+ - Return exit code 1 when error occurs by #549. Thank you @lhotamir :+1:
150
+
151
+ ### [v3.16.2](https://github.com/horiuchi/dtsgenerator/releases/tag/v3.16.2) (2022-12-20)
147
152
 
148
153
  - fixed:
149
154
  - Fix to remove deprecated decorators parameters for #547. Thank you @mcollina :+1:
package/dist/cli.js CHANGED
@@ -52,4 +52,5 @@ async function exec() {
52
52
  exec().catch((err) => {
53
53
  var _a;
54
54
  console.error((_a = err.stack) !== null && _a !== void 0 ? _a : err);
55
+ process.exitCode = 1;
55
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtsgenerator",
3
- "version": "3.16.2",
3
+ "version": "3.17.0",
4
4
  "description": "TypeScript d.ts file generator for JSON Schema file",
5
5
  "bin": {
6
6
  "dtsgen": "bin/dtsgen"
@@ -44,14 +44,14 @@
44
44
  "node": ">= 14.0"
45
45
  },
46
46
  "dependencies": {
47
- "commander": "^9.4.1",
47
+ "commander": "^10.0.0",
48
48
  "cross-fetch": "^3.1.5",
49
49
  "debug": "^4.3.4",
50
- "glob": "^8.0.3",
50
+ "glob": "^8.1.0",
51
51
  "https-proxy-agent": "^5.0.1",
52
52
  "js-yaml": "^4.1.0",
53
- "tslib": "^2.4.1",
54
- "typescript": "^4.9.4"
53
+ "tslib": "^2.5.0",
54
+ "typescript": "^4.9.5"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@dtsgenerator/do-nothing": "^2.5.3",
@@ -60,19 +60,18 @@
60
60
  "@dtsgenerator/single-quote": "^1.6.3",
61
61
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
62
62
  "@types/debug": "^4.1.7",
63
- "@types/glob": "^8.0.0",
63
+ "@types/glob": "^8.0.1",
64
64
  "@types/js-yaml": "^4.0.5",
65
- "@types/mkdirp": "^1.0.2",
66
65
  "@types/mocha": "^10.0.1",
67
- "@types/node": "^16.18.10",
66
+ "@types/node": "^16.18.12",
68
67
  "cross-env": "^7.0.3",
69
- "eslint": "^8.30.0",
70
- "husky": "^8.0.2",
71
- "lint-staged": "^13.1.0",
68
+ "eslint": "^8.34.0",
69
+ "husky": "^8.0.3",
70
+ "lint-staged": "^13.1.2",
72
71
  "mocha": "^10.2.0",
73
72
  "nyc": "^15.1.0",
74
- "prettier": "^2.8.1",
75
- "rimraf": "^3.0.2",
73
+ "prettier": "^2.8.4",
74
+ "rimraf": "^4.1.2",
76
75
  "source-map-support": "^0.5.21",
77
76
  "ts-node": "^10.9.1"
78
77
  },
package/src/cli.ts CHANGED
@@ -62,4 +62,5 @@ async function exec(): Promise<void> {
62
62
  }
63
63
  exec().catch((err: Error) => {
64
64
  console.error(err.stack ?? err);
65
+ process.exitCode = 1;
65
66
  });