innetjs 2.2.24 → 2.3.1
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/bin/innet +5 -4
- package/index.js +6 -2
- package/index.mjs +6 -2
- package/package.json +3 -3
- package/bin/innet.d.ts +0 -2
package/bin/innet
CHANGED
|
@@ -443,6 +443,10 @@ class InnetJS {
|
|
|
443
443
|
if (file) {
|
|
444
444
|
console.log(`ERROR in ${file}:${line}:${column}`);
|
|
445
445
|
}
|
|
446
|
+
else if (e.error.loc) {
|
|
447
|
+
console.log(`ERROR in ${e.error.loc.file}:${e.error.loc.line}:${e.error.loc.column}`);
|
|
448
|
+
console.log(e.error.frame);
|
|
449
|
+
}
|
|
446
450
|
}
|
|
447
451
|
else {
|
|
448
452
|
logger__default["default"].end('Bundling', error ? e.error.stack : e.error.message);
|
|
@@ -764,7 +768,7 @@ class InnetJS {
|
|
|
764
768
|
}
|
|
765
769
|
|
|
766
770
|
(function () {
|
|
767
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.
|
|
771
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.1"};
|
|
768
772
|
if (typeof process === 'undefined') {
|
|
769
773
|
globalThis.process = { env: env };
|
|
770
774
|
} else if (process.env) {
|
|
@@ -776,8 +780,6 @@ class InnetJS {
|
|
|
776
780
|
updateDotenv();
|
|
777
781
|
const innetJS = new InnetJS();
|
|
778
782
|
const errorOption = new commander.Option('-e, --error', 'Show error details');
|
|
779
|
-
const releaseOption = new commander.Option('-r, --release <release>', 'Select release type')
|
|
780
|
-
.choices(['patch', 'minor', 'major']);
|
|
781
783
|
commander.program
|
|
782
784
|
.version(process.env.__INNETJS__PACKAGE_VERSION, '-v, --version');
|
|
783
785
|
commander.program
|
|
@@ -838,7 +840,6 @@ commander.program
|
|
|
838
840
|
.description('Release new version of your library')
|
|
839
841
|
.option('-i, --index <index>', 'Root index file name', 'index')
|
|
840
842
|
.option('-p, --public', 'Public the package')
|
|
841
|
-
.addOption(releaseOption)
|
|
842
843
|
.addOption(errorOption)
|
|
843
844
|
.action(({ error, index, public: pub }) => {
|
|
844
845
|
innetJS.release({ index, pub }).catch(e => {
|
package/index.js
CHANGED
|
@@ -72,8 +72,8 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
|
72
72
|
var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
|
|
73
73
|
var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
|
|
74
74
|
|
|
75
|
-
(function () {
|
|
76
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.
|
|
75
|
+
;(function () {
|
|
76
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.1"};
|
|
77
77
|
if (typeof process === 'undefined') {
|
|
78
78
|
globalThis.process = { env: env };
|
|
79
79
|
} else if (process.env) {
|
|
@@ -342,6 +342,10 @@ class InnetJS {
|
|
|
342
342
|
if (file) {
|
|
343
343
|
console.log(`ERROR in ${file}:${line}:${column}`);
|
|
344
344
|
}
|
|
345
|
+
else if (e.error.loc) {
|
|
346
|
+
console.log(`ERROR in ${e.error.loc.file}:${e.error.loc.line}:${e.error.loc.column}`);
|
|
347
|
+
console.log(e.error.frame);
|
|
348
|
+
}
|
|
345
349
|
}
|
|
346
350
|
else {
|
|
347
351
|
logger__default["default"].end('Bundling', error ? e.error.stack : e.error.message);
|
package/index.mjs
CHANGED
|
@@ -37,8 +37,8 @@ import { Extract } from './extract.mjs';
|
|
|
37
37
|
import { reporter, convertIndexFile, getFile } from './helpers.mjs';
|
|
38
38
|
import { updateDotenv } from './updateDotenv.mjs';
|
|
39
39
|
|
|
40
|
-
(function () {
|
|
41
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.
|
|
40
|
+
;(function () {
|
|
41
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.1"};
|
|
42
42
|
if (typeof process === 'undefined') {
|
|
43
43
|
globalThis.process = { env: env };
|
|
44
44
|
} else if (process.env) {
|
|
@@ -307,6 +307,10 @@ class InnetJS {
|
|
|
307
307
|
if (file) {
|
|
308
308
|
console.log(`ERROR in ${file}:${line}:${column}`);
|
|
309
309
|
}
|
|
310
|
+
else if (e.error.loc) {
|
|
311
|
+
console.log(`ERROR in ${e.error.loc.file}:${e.error.loc.line}:${e.error.loc.column}`);
|
|
312
|
+
console.log(e.error.frame);
|
|
313
|
+
}
|
|
310
314
|
}
|
|
311
315
|
else {
|
|
312
316
|
logger.end('Bundling', error ? e.error.stack : e.error.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "innetjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "CLI for innet boilerplate",
|
|
5
5
|
"homepage": "https://github.com/d8corp/innetjs",
|
|
6
6
|
"author": "Mikhail Lysikov <d8corp@mail.ru>",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"innetjs": "bin/innet"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "innetjs release
|
|
17
|
+
"build": "innetjs release",
|
|
18
18
|
"test": "jest",
|
|
19
19
|
"lint": "eslint src --ext .ts,.tsx",
|
|
20
20
|
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
21
21
|
"start": "npm run build && cd release && npm link",
|
|
22
22
|
"stop": "npm unlink innetjs -g",
|
|
23
23
|
"restart": "npm run stop && npm start",
|
|
24
|
-
"release": "innetjs release -
|
|
24
|
+
"release": "innetjs release -p",
|
|
25
25
|
"patch": "innetjs patch",
|
|
26
26
|
"minor": "innetjs minor",
|
|
27
27
|
"major": "innetjs major"
|
package/bin/innet.d.ts
DELETED