innetjs 2.2.13 → 2.2.14

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 (4) hide show
  1. package/bin/innet +10 -5
  2. package/index.js +10 -5
  3. package/index.mjs +10 -5
  4. package/package.json +2 -2
package/bin/innet CHANGED
@@ -757,11 +757,16 @@ class InnetJS {
757
757
  }
758
758
  }
759
759
 
760
- if (typeof process === 'undefined') {
761
- process = { env: {"__INNETJS__PACKAGE_VERSION":"2.2.12"} };
762
- } else {
763
- Object.assign(process.env, {"__INNETJS__PACKAGE_VERSION":"2.2.12"});
764
- }
760
+ (function () {
761
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.14"};
762
+ if (typeof process === 'undefined') {
763
+ process = { env };
764
+ } else if (process.env) {
765
+ Object.assign(process.env, env);
766
+ } else {
767
+ process.env = env;
768
+ }
769
+ })();
765
770
  updateDotenv();
766
771
  const innetJS = new InnetJS();
767
772
  const errorOption = new commander.Option('-e, --error', 'Show error details');
package/index.js CHANGED
@@ -70,11 +70,16 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
70
70
  var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
71
71
  var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
72
72
 
73
- if (typeof process === 'undefined') {
74
- process = { env: {"__INNETJS__PACKAGE_VERSION":"2.2.12"} };
75
- } else {
76
- Object.assign(process.env, {"__INNETJS__PACKAGE_VERSION":"2.2.12"});
77
- }
73
+ (function () {
74
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.14"};
75
+ if (typeof process === 'undefined') {
76
+ process = { env };
77
+ } else if (process.env) {
78
+ Object.assign(process.env, env);
79
+ } else {
80
+ process.env = env;
81
+ }
82
+ })();
78
83
  const livereload = require('rollup-plugin-livereload');
79
84
  const { string } = require('rollup-plugin-string');
80
85
  const { exec, spawn } = require('child_process');
package/index.mjs CHANGED
@@ -36,11 +36,16 @@ import { Extract } from './extract.mjs';
36
36
  import { reporter, convertIndexFile, getFile } from './helpers.mjs';
37
37
  import { updateDotenv } from './updateDotenv.mjs';
38
38
 
39
- if (typeof process === 'undefined') {
40
- process = { env: {"__INNETJS__PACKAGE_VERSION":"2.2.12"} };
41
- } else {
42
- Object.assign(process.env, {"__INNETJS__PACKAGE_VERSION":"2.2.12"});
43
- }
39
+ (function () {
40
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.2.14"};
41
+ if (typeof process === 'undefined') {
42
+ process = { env };
43
+ } else if (process.env) {
44
+ Object.assign(process.env, env);
45
+ } else {
46
+ process.env = env;
47
+ }
48
+ })();
44
49
  const livereload = require('rollup-plugin-livereload');
45
50
  const { string } = require('rollup-plugin-string');
46
51
  const { exec, spawn } = require('child_process');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -72,7 +72,7 @@
72
72
  "prompts": "^2.4.2",
73
73
  "rollup": "^2.79.1",
74
74
  "rollup-plugin-filesize": "^9.1.2",
75
- "rollup-plugin-process-env": "^1.0.0",
75
+ "rollup-plugin-process-env": "^1.0.3",
76
76
  "rollup-plugin-innet-jsx": "^1.3.2",
77
77
  "rollup-plugin-livereload": "^2.0.5",
78
78
  "rollup-plugin-node-externals": "^5.0.2",