innetjs 3.2.0 → 3.2.2
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/_virtual/_rollup-plugin-process-env.js +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +13 -9
- package/index.js +12 -8
- package/index.mjs +12 -8
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -675,12 +675,16 @@ class InnetJS {
|
|
|
675
675
|
yield bundle.write(options.output);
|
|
676
676
|
yield bundle.close();
|
|
677
677
|
});
|
|
678
|
-
|
|
679
|
-
yield
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
678
|
+
if (!pkg.type || pkg.type === 'commonjs') {
|
|
679
|
+
yield logger__default["default"].start('Build cjs bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
680
|
+
yield build('cjs');
|
|
681
|
+
}));
|
|
682
|
+
}
|
|
683
|
+
if (!pkg.type || pkg.type === 'module') {
|
|
684
|
+
yield logger__default["default"].start('Build es6 bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
685
|
+
yield build('es');
|
|
686
|
+
}));
|
|
687
|
+
}
|
|
684
688
|
if (min) {
|
|
685
689
|
yield logger__default["default"].start('Build min bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
686
690
|
yield build('iife');
|
|
@@ -690,7 +694,7 @@ class InnetJS {
|
|
|
690
694
|
const data = Object.assign({}, pkg);
|
|
691
695
|
delete data.private;
|
|
692
696
|
delete data.devDependencies;
|
|
693
|
-
|
|
697
|
+
fs__default["default"].writeFile(path__default["default"].resolve(this.releaseFolder, 'package.json'), JSON.stringify(data, undefined, 2), 'UTF-8');
|
|
694
698
|
}));
|
|
695
699
|
if (pkg.bin) {
|
|
696
700
|
yield logger__default["default"].start('Build bin', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -886,7 +890,7 @@ class InnetJS {
|
|
|
886
890
|
return;
|
|
887
891
|
}
|
|
888
892
|
const child = spawn('node', ['-r', 'source-map-support/register', filePath], {
|
|
889
|
-
stdio: ['inherit', '
|
|
893
|
+
stdio: ['inherit', 'inherit'],
|
|
890
894
|
});
|
|
891
895
|
apps[name] = child;
|
|
892
896
|
child.stderr.on('data', (chunk) => {
|
|
@@ -905,7 +909,7 @@ class InnetJS {
|
|
|
905
909
|
}
|
|
906
910
|
|
|
907
911
|
(function () {
|
|
908
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"3.2.
|
|
912
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"3.2.2"};
|
|
909
913
|
if (typeof process === 'undefined') {
|
|
910
914
|
globalThis.process = { env: env };
|
|
911
915
|
} else if (process.env) {
|
package/index.js
CHANGED
|
@@ -603,12 +603,16 @@ class InnetJS {
|
|
|
603
603
|
yield bundle.write(options.output);
|
|
604
604
|
yield bundle.close();
|
|
605
605
|
});
|
|
606
|
-
|
|
607
|
-
yield
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
606
|
+
if (!pkg.type || pkg.type === 'commonjs') {
|
|
607
|
+
yield logger__default["default"].start('Build cjs bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
yield build('cjs');
|
|
609
|
+
}));
|
|
610
|
+
}
|
|
611
|
+
if (!pkg.type || pkg.type === 'module') {
|
|
612
|
+
yield logger__default["default"].start('Build es6 bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
yield build('es');
|
|
614
|
+
}));
|
|
615
|
+
}
|
|
612
616
|
if (min) {
|
|
613
617
|
yield logger__default["default"].start('Build min bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
614
618
|
yield build('iife');
|
|
@@ -618,7 +622,7 @@ class InnetJS {
|
|
|
618
622
|
const data = Object.assign({}, pkg);
|
|
619
623
|
delete data.private;
|
|
620
624
|
delete data.devDependencies;
|
|
621
|
-
|
|
625
|
+
fs__default["default"].writeFile(path__default["default"].resolve(this.releaseFolder, 'package.json'), JSON.stringify(data, undefined, 2), 'UTF-8');
|
|
622
626
|
}));
|
|
623
627
|
if (pkg.bin) {
|
|
624
628
|
yield logger__default["default"].start('Build bin', () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -814,7 +818,7 @@ class InnetJS {
|
|
|
814
818
|
return;
|
|
815
819
|
}
|
|
816
820
|
const child = spawn('node', ['-r', 'source-map-support/register', filePath], {
|
|
817
|
-
stdio: ['inherit', '
|
|
821
|
+
stdio: ['inherit', 'inherit'],
|
|
818
822
|
});
|
|
819
823
|
apps[name] = child;
|
|
820
824
|
child.stderr.on('data', (chunk) => {
|
package/index.mjs
CHANGED
|
@@ -566,12 +566,16 @@ class InnetJS {
|
|
|
566
566
|
yield bundle.write(options.output);
|
|
567
567
|
yield bundle.close();
|
|
568
568
|
});
|
|
569
|
-
|
|
570
|
-
yield
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
569
|
+
if (!pkg.type || pkg.type === 'commonjs') {
|
|
570
|
+
yield logger.start('Build cjs bundle', () => __awaiter(this, void 0, void 0, function* () {
|
|
571
|
+
yield build('cjs');
|
|
572
|
+
}));
|
|
573
|
+
}
|
|
574
|
+
if (!pkg.type || pkg.type === 'module') {
|
|
575
|
+
yield logger.start('Build es6 bundle', () => __awaiter(this, void 0, void 0, function* () {
|
|
576
|
+
yield build('es');
|
|
577
|
+
}));
|
|
578
|
+
}
|
|
575
579
|
if (min) {
|
|
576
580
|
yield logger.start('Build min bundle', () => __awaiter(this, void 0, void 0, function* () {
|
|
577
581
|
yield build('iife');
|
|
@@ -581,7 +585,7 @@ class InnetJS {
|
|
|
581
585
|
const data = Object.assign({}, pkg);
|
|
582
586
|
delete data.private;
|
|
583
587
|
delete data.devDependencies;
|
|
584
|
-
|
|
588
|
+
fs.writeFile(path.resolve(this.releaseFolder, 'package.json'), JSON.stringify(data, undefined, 2), 'UTF-8');
|
|
585
589
|
}));
|
|
586
590
|
if (pkg.bin) {
|
|
587
591
|
yield logger.start('Build bin', () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -777,7 +781,7 @@ class InnetJS {
|
|
|
777
781
|
return;
|
|
778
782
|
}
|
|
779
783
|
const child = spawn('node', ['-r', 'source-map-support/register', filePath], {
|
|
780
|
-
stdio: ['inherit', '
|
|
784
|
+
stdio: ['inherit', 'inherit'],
|
|
781
785
|
});
|
|
782
786
|
apps[name] = child;
|
|
783
787
|
child.stderr.on('data', (chunk) => {
|