@asyncapi/generator 1.9.7 → 1.9.8

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 (2) hide show
  1. package/lib/utils.js +2 -1
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -152,7 +152,8 @@ utils.registerSourceMap = () => {
152
152
  utils.registerTypeScript = () => {
153
153
  const { REGISTER_INSTANCE, register } = require('ts-node');
154
154
  // if the ts-node has already been registered before, do not register it again.
155
- if (process[REGISTER_INSTANCE]) {
155
+ // Check the env. TS_NODE_ENV if ts-node started via ts-node-dev package
156
+ if (process[REGISTER_INSTANCE] || process.env.TS_NODE_DEV) {
156
157
  return;
157
158
  }
158
159
  register();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asyncapi/generator",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "description": "The AsyncAPI generator. It can generate documentation, code, anything!",
5
5
  "main": "./lib/generator.js",
6
6
  "bin": {