innetjs 2.2.7 → 2.2.9
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
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.
|
|
71
|
+
const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.9"};
|
|
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
|
|
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
|
}
|
|
@@ -550,7 +548,9 @@ class InnetJS {
|
|
|
550
548
|
eslint__default["default"]({
|
|
551
549
|
include: lintInclude,
|
|
552
550
|
}),
|
|
553
|
-
injectEnv__default["default"](innetEnv
|
|
551
|
+
injectEnv__default["default"](innetEnv, {
|
|
552
|
+
include: input,
|
|
553
|
+
}),
|
|
554
554
|
],
|
|
555
555
|
};
|
|
556
556
|
if (node) {
|
|
@@ -626,7 +626,9 @@ class InnetJS {
|
|
|
626
626
|
}),
|
|
627
627
|
externals__default["default"](),
|
|
628
628
|
jsx__default["default"](),
|
|
629
|
-
injectEnv__default["default"](innetEnv
|
|
629
|
+
injectEnv__default["default"](innetEnv, {
|
|
630
|
+
include: input,
|
|
631
|
+
}),
|
|
630
632
|
],
|
|
631
633
|
};
|
|
632
634
|
const bundle = yield rollup__default["default"].rollup(options);
|
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
|
|
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
|
}
|
|
@@ -428,7 +426,9 @@ class InnetJS {
|
|
|
428
426
|
eslint__default["default"]({
|
|
429
427
|
include: constants.lintInclude,
|
|
430
428
|
}),
|
|
431
|
-
injectEnv__default["default"](innetEnv
|
|
429
|
+
injectEnv__default["default"](innetEnv, {
|
|
430
|
+
include: input,
|
|
431
|
+
}),
|
|
432
432
|
],
|
|
433
433
|
};
|
|
434
434
|
if (node) {
|
|
@@ -504,7 +504,9 @@ class InnetJS {
|
|
|
504
504
|
}),
|
|
505
505
|
externals__default["default"](),
|
|
506
506
|
jsx__default["default"](),
|
|
507
|
-
injectEnv__default["default"](innetEnv
|
|
507
|
+
injectEnv__default["default"](innetEnv, {
|
|
508
|
+
include: input,
|
|
509
|
+
}),
|
|
508
510
|
],
|
|
509
511
|
};
|
|
510
512
|
const bundle = yield rollup__default["default"].rollup(options);
|
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
|
|
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
|
}
|
|
@@ -394,7 +392,9 @@ class InnetJS {
|
|
|
394
392
|
eslint({
|
|
395
393
|
include: lintInclude,
|
|
396
394
|
}),
|
|
397
|
-
injectEnv(innetEnv
|
|
395
|
+
injectEnv(innetEnv, {
|
|
396
|
+
include: input,
|
|
397
|
+
}),
|
|
398
398
|
],
|
|
399
399
|
};
|
|
400
400
|
if (node) {
|
|
@@ -470,7 +470,9 @@ class InnetJS {
|
|
|
470
470
|
}),
|
|
471
471
|
externals(),
|
|
472
472
|
jsx(),
|
|
473
|
-
injectEnv(innetEnv
|
|
473
|
+
injectEnv(innetEnv, {
|
|
474
|
+
include: input,
|
|
475
|
+
}),
|
|
474
476
|
],
|
|
475
477
|
};
|
|
476
478
|
const bundle = yield rollup.rollup(options);
|