innetjs 2.5.0 → 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.
- package/_virtual/_rollup-plugin-process-env.js +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +13 -7
- package/index.js +12 -6
- package/index.mjs +12 -6
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -291,11 +291,10 @@ class InnetJS {
|
|
|
291
291
|
plugins: [
|
|
292
292
|
commonjs__default["default"](),
|
|
293
293
|
json__default["default"](),
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
},
|
|
294
|
+
typescript__default["default"]({
|
|
295
|
+
noEmitOnError: true,
|
|
296
|
+
compilerOptions: {
|
|
297
|
+
declaration: false,
|
|
299
298
|
},
|
|
300
299
|
}),
|
|
301
300
|
jsx__default["default"](),
|
|
@@ -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
|
};
|
|
@@ -461,7 +467,7 @@ class InnetJS {
|
|
|
461
467
|
logger__default["default"].end('Bundling', e.error.message);
|
|
462
468
|
console.log(`ERROR in ${file}:${line + 1}:${column + 1}`);
|
|
463
469
|
}
|
|
464
|
-
else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
|
|
470
|
+
else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs', 'typescript'].includes(e.error.plugin)) {
|
|
465
471
|
const [, file, line, column] = e.error.message
|
|
466
472
|
.replace(REG_CLEAR_TEXT, '')
|
|
467
473
|
.match(REG_RPT_ERROR_FILE) || [];
|
|
@@ -802,7 +808,7 @@ class InnetJS {
|
|
|
802
808
|
}
|
|
803
809
|
|
|
804
810
|
(function () {
|
|
805
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.5.
|
|
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
|
@@ -180,11 +180,10 @@ class InnetJS {
|
|
|
180
180
|
plugins: [
|
|
181
181
|
commonjs__default["default"](),
|
|
182
182
|
json__default["default"](),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
183
|
+
typescript__default["default"]({
|
|
184
|
+
noEmitOnError: true,
|
|
185
|
+
compilerOptions: {
|
|
186
|
+
declaration: false,
|
|
188
187
|
},
|
|
189
188
|
}),
|
|
190
189
|
jsx__default["default"](),
|
|
@@ -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
|
};
|
|
@@ -350,7 +356,7 @@ class InnetJS {
|
|
|
350
356
|
logger__default["default"].end('Bundling', e.error.message);
|
|
351
357
|
console.log(`ERROR in ${file}:${line + 1}:${column + 1}`);
|
|
352
358
|
}
|
|
353
|
-
else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
|
|
359
|
+
else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs', 'typescript'].includes(e.error.plugin)) {
|
|
354
360
|
const [, file, line, column] = e.error.message
|
|
355
361
|
.replace(REG_CLEAR_TEXT, '')
|
|
356
362
|
.match(REG_RPT_ERROR_FILE) || [];
|
package/index.mjs
CHANGED
|
@@ -144,11 +144,10 @@ class InnetJS {
|
|
|
144
144
|
plugins: [
|
|
145
145
|
commonjs(),
|
|
146
146
|
json(),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
},
|
|
147
|
+
typescript({
|
|
148
|
+
noEmitOnError: true,
|
|
149
|
+
compilerOptions: {
|
|
150
|
+
declaration: false,
|
|
152
151
|
},
|
|
153
152
|
}),
|
|
154
153
|
jsx(),
|
|
@@ -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
|
};
|
|
@@ -314,7 +320,7 @@ class InnetJS {
|
|
|
314
320
|
logger.end('Bundling', e.error.message);
|
|
315
321
|
console.log(`ERROR in ${file}:${line + 1}:${column + 1}`);
|
|
316
322
|
}
|
|
317
|
-
else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
|
|
323
|
+
else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs', 'typescript'].includes(e.error.plugin)) {
|
|
318
324
|
const [, file, line, column] = e.error.message
|
|
319
325
|
.replace(REG_CLEAR_TEXT, '')
|
|
320
326
|
.match(REG_RPT_ERROR_FILE) || [];
|