innetjs 2.2.7 → 2.2.8

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  (function() {
4
- const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.7"};
4
+ const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.8"};
5
5
  try {
6
6
  if (process) {
7
7
  process.env = Object.assign({}, process.env);
@@ -1,5 +1,5 @@
1
1
  (function() {
2
- const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.7"};
2
+ const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.8"};
3
3
  try {
4
4
  if (process) {
5
5
  process.env = Object.assign({}, process.env);
package/bin/innet CHANGED
@@ -68,7 +68,7 @@ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
68
68
  var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
69
69
 
70
70
  (function() {
71
- const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.7"};
71
+ const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.8"};
72
72
  try {
73
73
  if (process) {
74
74
  process.env = Object.assign({}, process.env);
@@ -525,9 +525,7 @@ class InnetJS {
525
525
  const ext = format === 'es'
526
526
  ? ((_a = (pkg.module || pkg.esnext || pkg['jsnext:main'])) === null || _a === void 0 ? void 0 : _a.replace('index', '')) || '.mjs'
527
527
  : ((_b = pkg.main) === null || _b === void 0 ? void 0 : _b.replace('index', '')) || '.js';
528
- const indexFiles = scriptExtensions.map(ext => `src/${index}.${ext}`).join(',');
529
- const otherFiles = scriptExtensions.map(ext => `src/**/index.${ext}`).join(',');
530
- const input = glob__default["default"].sync(`{${indexFiles},${otherFiles}}`);
528
+ const input = glob__default["default"].sync(`src/${index}.{${indexExt}}`);
531
529
  if (!input.length) {
532
530
  throw Error('index file is not detected');
533
531
  }
package/index.js CHANGED
@@ -403,9 +403,7 @@ class InnetJS {
403
403
  const ext = format === 'es'
404
404
  ? ((_a = (pkg.module || pkg.esnext || pkg['jsnext:main'])) === null || _a === void 0 ? void 0 : _a.replace('index', '')) || '.mjs'
405
405
  : ((_b = pkg.main) === null || _b === void 0 ? void 0 : _b.replace('index', '')) || '.js';
406
- const indexFiles = scriptExtensions.map(ext => `src/${index}.${ext}`).join(',');
407
- const otherFiles = scriptExtensions.map(ext => `src/**/index.${ext}`).join(',');
408
- const input = glob__default["default"].sync(`{${indexFiles},${otherFiles}}`);
406
+ const input = glob__default["default"].sync(`src/${index}.{${indexExt}}`);
409
407
  if (!input.length) {
410
408
  throw Error('index file is not detected');
411
409
  }
package/index.mjs CHANGED
@@ -369,9 +369,7 @@ class InnetJS {
369
369
  const ext = format === 'es'
370
370
  ? ((_a = (pkg.module || pkg.esnext || pkg['jsnext:main'])) === null || _a === void 0 ? void 0 : _a.replace('index', '')) || '.mjs'
371
371
  : ((_b = pkg.main) === null || _b === void 0 ? void 0 : _b.replace('index', '')) || '.js';
372
- const indexFiles = scriptExtensions.map(ext => `src/${index}.${ext}`).join(',');
373
- const otherFiles = scriptExtensions.map(ext => `src/**/index.${ext}`).join(',');
374
- const input = glob.sync(`{${indexFiles},${otherFiles}}`);
372
+ const input = glob.sync(`src/${index}.{${indexExt}}`);
375
373
  if (!input.length) {
376
374
  throw Error('index file is not detected');
377
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",