innetjs 2.5.1 → 2.5.2

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  ;(function () {
4
- const env = {"__INNETJS__PACKAGE_VERSION":"2.5.1"};
4
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.5.2"};
5
5
  if (typeof process === 'undefined') {
6
6
  globalThis.process = { env: env };
7
7
  } else if (process.env) {
@@ -1,5 +1,5 @@
1
1
  ;(function () {
2
- const env = {"__INNETJS__PACKAGE_VERSION":"2.5.1"};
2
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.5.2"};
3
3
  if (typeof process === 'undefined') {
4
4
  globalThis.process = { env: env };
5
5
  } else if (process.env) {
package/bin/innet CHANGED
@@ -393,7 +393,6 @@ class InnetJS {
393
393
  commonjs__default["default"](),
394
394
  json__default["default"](),
395
395
  typescript__default["default"]({
396
- noEmitOnError: true,
397
396
  compilerOptions: {
398
397
  declaration: false,
399
398
  sourceMap: true,
@@ -404,6 +403,13 @@ class InnetJS {
404
403
  onwarn(warning, warn) {
405
404
  if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
406
405
  return;
406
+ if (warning.plugin === 'typescript') {
407
+ const { loc: { line, column, file }, frame, message } = warning;
408
+ console.log(`ERROR in ${file}:${line}:${column}`);
409
+ console.log(message);
410
+ console.log(frame);
411
+ return;
412
+ }
407
413
  warn(warning);
408
414
  },
409
415
  };
@@ -802,7 +808,7 @@ class InnetJS {
802
808
  }
803
809
 
804
810
  (function () {
805
- const env = {"__INNETJS__PACKAGE_VERSION":"2.5.1"};
811
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.5.2"};
806
812
  if (typeof process === 'undefined') {
807
813
  globalThis.process = { env: env };
808
814
  } else if (process.env) {
package/index.js CHANGED
@@ -282,7 +282,6 @@ class InnetJS {
282
282
  commonjs__default["default"](),
283
283
  json__default["default"](),
284
284
  typescript__default["default"]({
285
- noEmitOnError: true,
286
285
  compilerOptions: {
287
286
  declaration: false,
288
287
  sourceMap: true,
@@ -293,6 +292,13 @@ class InnetJS {
293
292
  onwarn(warning, warn) {
294
293
  if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
295
294
  return;
295
+ if (warning.plugin === 'typescript') {
296
+ const { loc: { line, column, file }, frame, message } = warning;
297
+ console.log(`ERROR in ${file}:${line}:${column}`);
298
+ console.log(message);
299
+ console.log(frame);
300
+ return;
301
+ }
296
302
  warn(warning);
297
303
  },
298
304
  };
package/index.mjs CHANGED
@@ -246,7 +246,6 @@ class InnetJS {
246
246
  commonjs(),
247
247
  json(),
248
248
  typescript({
249
- noEmitOnError: true,
250
249
  compilerOptions: {
251
250
  declaration: false,
252
251
  sourceMap: true,
@@ -257,6 +256,13 @@ class InnetJS {
257
256
  onwarn(warning, warn) {
258
257
  if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
259
258
  return;
259
+ if (warning.plugin === 'typescript') {
260
+ const { loc: { line, column, file }, frame, message } = warning;
261
+ console.log(`ERROR in ${file}:${line}:${column}`);
262
+ console.log(message);
263
+ console.log(frame);
264
+ return;
265
+ }
260
266
  warn(warning);
261
267
  },
262
268
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",