@form8ion/javascript 5.1.0 → 5.4.0

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/lib/index.es.js CHANGED
@@ -141,7 +141,7 @@ async function removeNyc ({
141
141
  force: true
142
142
  }), removeDependencies({
143
143
  packageManager,
144
- dependencies: ['nyc', '@istanbuljs/nyc-config-babel']
144
+ dependencies: ['nyc', '@istanbuljs/nyc-config-babel', 'babel-plugin-istanbul']
145
145
  })]);
146
146
  }
147
147
 
@@ -657,25 +657,18 @@ async function prompt({
657
657
  async function scaffoldBabel ({
658
658
  projectRoot,
659
659
  preset,
660
- tests,
661
660
  buildDirectory
662
661
  }) {
663
662
  if (!preset) {
664
663
  throw new Error('No babel preset provided. Cannot configure babel transpilation');
665
664
  }
666
665
 
667
- await promises.writeFile(`${projectRoot}/.babelrc`, JSON.stringify(_objectSpread2({
666
+ await promises.writeFile(`${projectRoot}/.babelrc`, JSON.stringify({
668
667
  presets: [preset.name],
669
668
  ignore: [`./${buildDirectory}/`]
670
- }, tests.unit && {
671
- env: {
672
- test: {
673
- plugins: ['istanbul']
674
- }
675
- }
676
- })));
669
+ }));
677
670
  return {
678
- devDependencies: ['@babel/register', preset.packageName, ...(tests.unit ? ['babel-plugin-istanbul'] : [])],
671
+ devDependencies: ['@babel/register', preset.packageName],
679
672
  eslint: {}
680
673
  };
681
674
  }
@@ -731,7 +724,6 @@ function scaffoldDialect ({
731
724
  projectType,
732
725
  projectRoot,
733
726
  configs,
734
- tests,
735
727
  buildDirectory,
736
728
  testFilenamePattern
737
729
  }) {
@@ -740,7 +732,6 @@ function scaffoldDialect ({
740
732
  return scaffoldBabel({
741
733
  preset: configs.babelPreset,
742
734
  projectRoot,
743
- tests,
744
735
  buildDirectory
745
736
  });
746
737
 
@@ -1129,7 +1120,8 @@ async function scaffoldPackageType ({
1129
1120
  }
1130
1121
  }, detailsForBuild)), dialects.ESM === dialect && _objectSpread2({
1131
1122
  packageProperties: {
1132
- main: 'lib/index.es.js',
1123
+ main: './lib/index.es.js',
1124
+ exports: './lib/index.es.js',
1133
1125
  sideEffects: false,
1134
1126
  files: ['lib/']
1135
1127
  }
@@ -1699,7 +1691,6 @@ async function scaffolder (options) {
1699
1691
  configs,
1700
1692
  projectRoot,
1701
1693
  projectType,
1702
- tests,
1703
1694
  buildDirectory: projectTypeResults.buildDirectory,
1704
1695
  testFilenamePattern: verificationResults.testFilenamePattern
1705
1696
  })]);