innetjs 2.2.11 → 2.2.12
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 +3 -3
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -758,9 +758,9 @@ class InnetJS {
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
if (typeof process === 'undefined') {
|
|
761
|
-
process = { env: {"
|
|
761
|
+
process = { env: {"__INNETJS__PACKAGE_VERSION":"2.2.12"} };
|
|
762
762
|
} else {
|
|
763
|
-
Object.assign(process.env, {"
|
|
763
|
+
Object.assign(process.env, {"__INNETJS__PACKAGE_VERSION":"2.2.12"});
|
|
764
764
|
}
|
|
765
765
|
updateDotenv();
|
|
766
766
|
const innetJS = new InnetJS();
|
|
@@ -768,7 +768,7 @@ const errorOption = new commander.Option('-e, --error', 'Show error details');
|
|
|
768
768
|
const releaseOption = new commander.Option('-r, --release <release>', 'Select release type')
|
|
769
769
|
.choices(['patch', 'minor', 'major']);
|
|
770
770
|
commander.program
|
|
771
|
-
.version(process.env.
|
|
771
|
+
.version(process.env.__INNETJS__PACKAGE_VERSION, '-v, --version');
|
|
772
772
|
commander.program
|
|
773
773
|
.command('init <app-name>')
|
|
774
774
|
.description('Create innet boilerplate')
|
package/index.js
CHANGED
|
@@ -71,9 +71,9 @@ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
|
|
|
71
71
|
var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
|
|
72
72
|
|
|
73
73
|
if (typeof process === 'undefined') {
|
|
74
|
-
process = { env: {"
|
|
74
|
+
process = { env: {"__INNETJS__PACKAGE_VERSION":"2.2.12"} };
|
|
75
75
|
} else {
|
|
76
|
-
Object.assign(process.env, {"
|
|
76
|
+
Object.assign(process.env, {"__INNETJS__PACKAGE_VERSION":"2.2.12"});
|
|
77
77
|
}
|
|
78
78
|
const livereload = require('rollup-plugin-livereload');
|
|
79
79
|
const { string } = require('rollup-plugin-string');
|
package/index.mjs
CHANGED
|
@@ -37,9 +37,9 @@ import { reporter, convertIndexFile, getFile } from './helpers.mjs';
|
|
|
37
37
|
import { updateDotenv } from './updateDotenv.mjs';
|
|
38
38
|
|
|
39
39
|
if (typeof process === 'undefined') {
|
|
40
|
-
process = { env: {"
|
|
40
|
+
process = { env: {"__INNETJS__PACKAGE_VERSION":"2.2.12"} };
|
|
41
41
|
} else {
|
|
42
|
-
Object.assign(process.env, {"
|
|
42
|
+
Object.assign(process.env, {"__INNETJS__PACKAGE_VERSION":"2.2.12"});
|
|
43
43
|
}
|
|
44
44
|
const livereload = require('rollup-plugin-livereload');
|
|
45
45
|
const { string } = require('rollup-plugin-string');
|