innetjs 2.2.1 → 2.2.3

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.
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ (function() {
4
+ const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.2"};
5
+ try {
6
+ if (process) {
7
+ process.env = Object.assign({}, process.env);
8
+ Object.assign(process.env, env);
9
+ return;
10
+ }
11
+ } catch (e) {} // avoid ReferenceError: process is not defined
12
+ globalThis.process = { env:env };
13
+ })();
@@ -0,0 +1,11 @@
1
+ (function() {
2
+ const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.2"};
3
+ try {
4
+ if (process) {
5
+ process.env = Object.assign({}, process.env);
6
+ Object.assign(process.env, env);
7
+ return;
8
+ }
9
+ } catch (e) {} // avoid ReferenceError: process is not defined
10
+ globalThis.process = { env:env };
11
+ })();
package/bin/innet CHANGED
@@ -67,6 +67,18 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
67
67
  var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
68
68
  var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
69
69
 
70
+ (function() {
71
+ const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.2"};
72
+ try {
73
+ if (process) {
74
+ process.env = Object.assign({}, process.env);
75
+ Object.assign(process.env, env);
76
+ return;
77
+ }
78
+ } catch (e) {} // avoid ReferenceError: process is not defined
79
+ globalThis.process = { env:env };
80
+ })();
81
+
70
82
  const lintInclude = [
71
83
  '**/*.ts',
72
84
  '**/*.tsx',
@@ -297,9 +309,7 @@ class InnetJS {
297
309
  if (node) {
298
310
  outputOptions.format = 'cjs';
299
311
  inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
300
- inputOptions.plugins.push(pluginNodeResolve.nodeResolve({
301
- moduleDirectories: [path__default["default"].resolve(this.buildFolder, 'node_modules')],
302
- }), string({
312
+ inputOptions.plugins.push(string({
303
313
  include: '**/*.*',
304
314
  exclude: stringExcludeNode,
305
315
  }));
@@ -388,9 +398,7 @@ class InnetJS {
388
398
  // @ts-expect-error
389
399
  options.output.format = 'cjs';
390
400
  options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
391
- options.plugins.push(pluginNodeResolve.nodeResolve({
392
- moduleDirectories: [path__default["default"].resolve(this.srcFolder, 'node_modules')],
393
- }), string({
401
+ options.plugins.push(string({
394
402
  include: '**/*.*',
395
403
  exclude: stringExcludeNode,
396
404
  }), this.createServer());
@@ -557,6 +565,7 @@ class InnetJS {
557
565
  eslint__default["default"]({
558
566
  include: lintInclude,
559
567
  }),
568
+ injectEnv__default["default"](innetEnv),
560
569
  ],
561
570
  };
562
571
  if (node) {
@@ -586,7 +595,6 @@ class InnetJS {
586
595
  modules: cssModules,
587
596
  minimize: true,
588
597
  }),
589
- injectEnv__default["default"](innetEnv),
590
598
  ];
591
599
  }
592
600
  const bundle = yield rollup__default["default"].rollup(options);
@@ -633,6 +641,7 @@ class InnetJS {
633
641
  }),
634
642
  externals__default["default"](),
635
643
  jsx__default["default"](),
644
+ injectEnv__default["default"](innetEnv),
636
645
  ],
637
646
  };
638
647
  const bundle = yield rollup__default["default"].rollup(options);
@@ -744,8 +753,6 @@ class InnetJS {
744
753
  }
745
754
  }
746
755
 
747
- var version = "2.2.0";
748
-
749
756
  const dotenvConfigOutput = require('dotenv').config();
750
757
  require('dotenv-expand').expand(dotenvConfigOutput);
751
758
  const innetJS = new InnetJS();
@@ -753,7 +760,7 @@ const errorOption = new commander.Option('-e, --error', 'Show error details');
753
760
  const releaseOption = new commander.Option('-r, --release <release>', 'Select release type')
754
761
  .choices(['patch', 'minor', 'major']);
755
762
  commander.program
756
- .version(version, '-v, --version');
763
+ .version(process.env.INNETJS_INNETJS_PACKAGE_VERSION, '-v, --version');
757
764
  commander.program
758
765
  .command('init <app-name>')
759
766
  .description('Create innet boilerplate')
package/constants.js CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('./_virtual/_rollup-plugin-inject-process-env.js');
6
+
5
7
  const lintInclude = [
6
8
  '**/*.ts',
7
9
  '**/*.tsx',
package/constants.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import './_virtual/_rollup-plugin-inject-process-env.mjs';
2
+
1
3
  const lintInclude = [
2
4
  '**/*.ts',
3
5
  '**/*.tsx',
package/extract.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('./_virtual/_rollup-plugin-inject-process-env.js');
5
6
  var unzipper = require('unzipper');
6
7
 
7
8
  const Writer = require('fstream').Writer;
package/extract.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import './_virtual/_rollup-plugin-inject-process-env.mjs';
1
2
  import { Parse } from 'unzipper';
2
3
 
3
4
  const Writer = require('fstream').Writer;
package/helpers.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('./_virtual/_rollup-plugin-inject-process-env.js');
5
6
  var tslib = require('tslib');
6
7
  var logger = require('@cantinc/logger');
7
8
  var chalk = require('chalk');
package/helpers.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import './_virtual/_rollup-plugin-inject-process-env.mjs';
1
2
  import { __awaiter } from 'tslib';
2
3
  import logger from '@cantinc/logger';
3
4
  import chalk from 'chalk';
package/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('./_virtual/_rollup-plugin-inject-process-env.js');
5
6
  var tslib = require('tslib');
6
7
  var logger = require('@cantinc/logger');
7
8
  var commonjs = require('@rollup/plugin-commonjs');
@@ -194,9 +195,7 @@ class InnetJS {
194
195
  if (node) {
195
196
  outputOptions.format = 'cjs';
196
197
  inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
197
- inputOptions.plugins.push(pluginNodeResolve.nodeResolve({
198
- moduleDirectories: [path__default["default"].resolve(this.buildFolder, 'node_modules')],
199
- }), string({
198
+ inputOptions.plugins.push(string({
200
199
  include: '**/*.*',
201
200
  exclude: constants.stringExcludeNode,
202
201
  }));
@@ -285,9 +284,7 @@ class InnetJS {
285
284
  // @ts-expect-error
286
285
  options.output.format = 'cjs';
287
286
  options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
288
- options.plugins.push(pluginNodeResolve.nodeResolve({
289
- moduleDirectories: [path__default["default"].resolve(this.srcFolder, 'node_modules')],
290
- }), string({
287
+ options.plugins.push(string({
291
288
  include: '**/*.*',
292
289
  exclude: constants.stringExcludeNode,
293
290
  }), this.createServer());
@@ -454,6 +451,7 @@ class InnetJS {
454
451
  eslint__default["default"]({
455
452
  include: constants.lintInclude,
456
453
  }),
454
+ injectEnv__default["default"](innetEnv),
457
455
  ],
458
456
  };
459
457
  if (node) {
@@ -483,7 +481,6 @@ class InnetJS {
483
481
  modules: cssModules,
484
482
  minimize: true,
485
483
  }),
486
- injectEnv__default["default"](innetEnv),
487
484
  ];
488
485
  }
489
486
  const bundle = yield rollup__default["default"].rollup(options);
@@ -530,6 +527,7 @@ class InnetJS {
530
527
  }),
531
528
  externals__default["default"](),
532
529
  jsx__default["default"](),
530
+ injectEnv__default["default"](innetEnv),
533
531
  ],
534
532
  };
535
533
  const bundle = yield rollup__default["default"].rollup(options);
package/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import './_virtual/_rollup-plugin-inject-process-env.mjs';
1
2
  import { __awaiter } from 'tslib';
2
3
  import logger from '@cantinc/logger';
3
4
  import commonjs from '@rollup/plugin-commonjs';
@@ -160,9 +161,7 @@ class InnetJS {
160
161
  if (node) {
161
162
  outputOptions.format = 'cjs';
162
163
  inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
163
- inputOptions.plugins.push(nodeResolve({
164
- moduleDirectories: [path.resolve(this.buildFolder, 'node_modules')],
165
- }), string({
164
+ inputOptions.plugins.push(string({
166
165
  include: '**/*.*',
167
166
  exclude: stringExcludeNode,
168
167
  }));
@@ -251,9 +250,7 @@ class InnetJS {
251
250
  // @ts-expect-error
252
251
  options.output.format = 'cjs';
253
252
  options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
254
- options.plugins.push(nodeResolve({
255
- moduleDirectories: [path.resolve(this.srcFolder, 'node_modules')],
256
- }), string({
253
+ options.plugins.push(string({
257
254
  include: '**/*.*',
258
255
  exclude: stringExcludeNode,
259
256
  }), this.createServer());
@@ -420,6 +417,7 @@ class InnetJS {
420
417
  eslint({
421
418
  include: lintInclude,
422
419
  }),
420
+ injectEnv(innetEnv),
423
421
  ],
424
422
  };
425
423
  if (node) {
@@ -449,7 +447,6 @@ class InnetJS {
449
447
  modules: cssModules,
450
448
  minimize: true,
451
449
  }),
452
- injectEnv(innetEnv),
453
450
  ];
454
451
  }
455
452
  const bundle = yield rollup.rollup(options);
@@ -496,6 +493,7 @@ class InnetJS {
496
493
  }),
497
494
  externals(),
498
495
  jsx(),
496
+ injectEnv(innetEnv),
499
497
  ],
500
498
  };
501
499
  const bundle = yield rollup.rollup(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -18,12 +18,12 @@
18
18
  "test": "jest",
19
19
  "lint": "eslint src --ext .ts,.tsx",
20
20
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
21
- "start": "npm run build && cd lib && npm link",
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
- "patch": "innetjs release -n -r patch",
25
- "minor": "innetjs release -n -r minor",
26
- "major": "innetjs release -n -r major"
24
+ "patch": "innetjs release -n -p -r patch",
25
+ "minor": "innetjs release -n -p -r minor",
26
+ "major": "innetjs release -n -p -r major"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",