innetjs 3.2.1 → 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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  ;(function () {
4
- const env = {"__INNETJS__PACKAGE_VERSION":"3.2.1"};
4
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.2.2"};
5
5
  if (typeof process === 'undefined') {
6
6
  globalThis.process = { env: env };
7
7
  } else if (process.env) {
@@ -1,5 +1,5 @@
1
1
  ;(function () {
2
- const env = {"__INNETJS__PACKAGE_VERSION":"3.2.1"};
2
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.2.2"};
3
3
  if (typeof process === 'undefined') {
4
4
  globalThis.process = { env: env };
5
5
  } else if (process.env) {
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
- yield logger__default["default"].start('Build cjs bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
679
- yield build('cjs');
680
- }));
681
- yield logger__default["default"].start('Build es6 bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
682
- yield build('es');
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
- yield fs__default["default"].writeFile(path__default["default"].resolve(this.releaseFolder, 'package.json'), JSON.stringify(data, undefined, 2), 'UTF-8');
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* () {
@@ -905,7 +909,7 @@ class InnetJS {
905
909
  }
906
910
 
907
911
  (function () {
908
- const env = {"__INNETJS__PACKAGE_VERSION":"3.2.1"};
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
- yield logger__default["default"].start('Build cjs bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
607
- yield build('cjs');
608
- }));
609
- yield logger__default["default"].start('Build es6 bundle', () => tslib.__awaiter(this, void 0, void 0, function* () {
610
- yield build('es');
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
- yield fs__default["default"].writeFile(path__default["default"].resolve(this.releaseFolder, 'package.json'), JSON.stringify(data, undefined, 2), 'UTF-8');
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* () {
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
- yield logger.start('Build cjs bundle', () => __awaiter(this, void 0, void 0, function* () {
570
- yield build('cjs');
571
- }));
572
- yield logger.start('Build es6 bundle', () => __awaiter(this, void 0, void 0, function* () {
573
- yield build('es');
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
- yield fs.writeFile(path.resolve(this.releaseFolder, 'package.json'), JSON.stringify(data, undefined, 2), 'UTF-8');
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* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",