innetjs 3.2.2 → 3.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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  ;(function () {
4
- const env = {"__INNETJS__PACKAGE_VERSION":"3.2.2"};
4
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.2.3"};
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.2"};
2
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.2.3"};
3
3
  if (typeof process === 'undefined') {
4
4
  globalThis.process = { env: env };
5
5
  } else if (process.env) {
package/bin/innet CHANGED
@@ -698,7 +698,7 @@ class InnetJS {
698
698
  }));
699
699
  if (pkg.bin) {
700
700
  yield logger__default["default"].start('Build bin', () => tslib.__awaiter(this, void 0, void 0, function* () {
701
- const { bin } = pkg;
701
+ const { bin, type } = pkg;
702
702
  for (const name in bin) {
703
703
  const value = bin[name];
704
704
  const input = glob__default["default"].sync(`src/${value}.{${indexExt}}`);
@@ -708,7 +708,7 @@ class InnetJS {
708
708
  external: [...Object.keys(pkg.dependencies), 'tslib'],
709
709
  output: {
710
710
  file,
711
- format: 'cjs',
711
+ format: type === 'module' ? 'es' : 'cjs',
712
712
  },
713
713
  plugins: [
714
714
  rollupPluginPreserveShebangs.preserveShebangs(),
@@ -909,7 +909,7 @@ class InnetJS {
909
909
  }
910
910
 
911
911
  (function () {
912
- const env = {"__INNETJS__PACKAGE_VERSION":"3.2.2"};
912
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.2.3"};
913
913
  if (typeof process === 'undefined') {
914
914
  globalThis.process = { env: env };
915
915
  } else if (process.env) {
package/index.js CHANGED
@@ -626,7 +626,7 @@ class InnetJS {
626
626
  }));
627
627
  if (pkg.bin) {
628
628
  yield logger__default["default"].start('Build bin', () => tslib.__awaiter(this, void 0, void 0, function* () {
629
- const { bin } = pkg;
629
+ const { bin, type } = pkg;
630
630
  for (const name in bin) {
631
631
  const value = bin[name];
632
632
  const input = glob__default["default"].sync(`src/${value}.{${indexExt}}`);
@@ -636,7 +636,7 @@ class InnetJS {
636
636
  external: [...Object.keys(pkg.dependencies), 'tslib'],
637
637
  output: {
638
638
  file,
639
- format: 'cjs',
639
+ format: type === 'module' ? 'es' : 'cjs',
640
640
  },
641
641
  plugins: [
642
642
  rollupPluginPreserveShebangs.preserveShebangs(),
package/index.mjs CHANGED
@@ -589,7 +589,7 @@ class InnetJS {
589
589
  }));
590
590
  if (pkg.bin) {
591
591
  yield logger.start('Build bin', () => __awaiter(this, void 0, void 0, function* () {
592
- const { bin } = pkg;
592
+ const { bin, type } = pkg;
593
593
  for (const name in bin) {
594
594
  const value = bin[name];
595
595
  const input = glob.sync(`src/${value}.{${indexExt}}`);
@@ -599,7 +599,7 @@ class InnetJS {
599
599
  external: [...Object.keys(pkg.dependencies), 'tslib'],
600
600
  output: {
601
601
  file,
602
- format: 'cjs',
602
+ format: type === 'module' ? 'es' : 'cjs',
603
603
  },
604
604
  plugins: [
605
605
  preserveShebangs(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "3.2.2",
3
+ "version": "3.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>",