@form8ion/javascript 5.3.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.cjs.js +3 -13
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +3 -13
- package/lib/index.es.js.map +1 -1
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -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(
|
|
666
|
+
await promises.writeFile(`${projectRoot}/.babelrc`, JSON.stringify({
|
|
668
667
|
presets: [preset.name],
|
|
669
668
|
ignore: [`./${buildDirectory}/`]
|
|
670
|
-
}
|
|
671
|
-
env: {
|
|
672
|
-
test: {
|
|
673
|
-
plugins: ['istanbul']
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
})));
|
|
669
|
+
}));
|
|
677
670
|
return {
|
|
678
|
-
devDependencies: ['@babel/register', preset.packageName
|
|
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
|
|
|
@@ -1700,7 +1691,6 @@ async function scaffolder (options) {
|
|
|
1700
1691
|
configs,
|
|
1701
1692
|
projectRoot,
|
|
1702
1693
|
projectType,
|
|
1703
|
-
tests,
|
|
1704
1694
|
buildDirectory: projectTypeResults.buildDirectory,
|
|
1705
1695
|
testFilenamePattern: verificationResults.testFilenamePattern
|
|
1706
1696
|
})]);
|