@form8ion/javascript 6.0.3 → 6.0.4

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.js CHANGED
@@ -50,6 +50,7 @@ function _interopNamespace(e) {
50
50
 
51
51
  var deepmerge__default = /*#__PURE__*/_interopDefaultLegacy(deepmerge);
52
52
  var joi__namespace = /*#__PURE__*/_interopNamespace(joi);
53
+ var inquirer__default = /*#__PURE__*/_interopDefaultLegacy(inquirer);
53
54
  var commitConventionPlugin__namespace = /*#__PURE__*/_interopNamespace(commitConventionPlugin);
54
55
  var hoek__default = /*#__PURE__*/_interopDefaultLegacy(hoek);
55
56
  var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
@@ -239,6 +240,9 @@ const unitTestFrameworksSchema = joi__namespace.object().required().pattern(/^/,
239
240
  scaffolder: joi__namespace.func().arity(1).required()
240
241
  }));
241
242
 
243
+ const {
244
+ Separator: Separator$3
245
+ } = inquirer__default["default"];
242
246
  async function chooseFramework ({
243
247
  frameworks,
244
248
  decisions
@@ -248,7 +252,7 @@ async function chooseFramework ({
248
252
  name: questionNames$1.UNIT_TEST_FRAMEWORK,
249
253
  type: 'list',
250
254
  message: 'Which type of unit testing framework should be used?',
251
- choices: [...Object.keys(frameworks), new inquirer.Separator(), 'Other']
255
+ choices: [...Object.keys(frameworks), new Separator$3(), 'Other']
252
256
  }], decisions);
253
257
  return answers[questionNames$1.UNIT_TEST_FRAMEWORK];
254
258
  }
@@ -658,6 +662,10 @@ function scope(visibility) {
658
662
  };
659
663
  }
660
664
 
665
+ const {
666
+ Separator: Separator$2
667
+ } = inquirer__default["default"];
668
+
661
669
  function authorQuestions({
662
670
  name,
663
671
  email,
@@ -729,7 +737,7 @@ async function prompt({
729
737
  name: questionNames$1.PROJECT_TYPE,
730
738
  message: 'What type of JavaScript project is this?',
731
739
  type: 'list',
732
- choices: [...Object.values(javascriptCore.projectTypes), new inquirer.Separator(), 'Other'],
740
+ choices: [...Object.values(javascriptCore.projectTypes), new Separator$2(), 'Other'],
733
741
  default: javascriptCore.projectTypes.PACKAGE
734
742
  }, ...('Private' === visibility ? [] : [{
735
743
  name: questionNames$1.SHOULD_BE_SCOPED,
@@ -762,7 +770,7 @@ async function prompt({
762
770
  type: 'list',
763
771
  message: 'Where will the application be hosted?',
764
772
  when: projectIsApplication,
765
- choices: [...Object.keys(hosts), new inquirer.Separator(), 'Other']
773
+ choices: [...Object.keys(hosts), new Separator$2(), 'Other']
766
774
  }], decisions);
767
775
  return {
768
776
  tests: {
@@ -982,6 +990,9 @@ function buildPackageName (projectName, scope) {
982
990
  throw new Error(`The package name ${name} is invalid:${os.EOL}\t* ${errors.join(`${os.EOL}\t* `)}`);
983
991
  }
984
992
 
993
+ const {
994
+ Separator: Separator$1
995
+ } = inquirer__default["default"];
985
996
  async function chooseApplicationType ({
986
997
  types,
987
998
  projectType,
@@ -992,7 +1003,7 @@ async function chooseApplicationType ({
992
1003
  name: questionNames$1.PROJECT_TYPE_CHOICE,
993
1004
  type: 'list',
994
1005
  message: `What type of ${projectType} is this?`,
995
- choices: [...Object.keys(types), new inquirer.Separator(), 'Other']
1006
+ choices: [...Object.keys(types), new Separator$1(), 'Other']
996
1007
  }], decisions);
997
1008
  return answers[questionNames$1.PROJECT_TYPE_CHOICE];
998
1009
  }
@@ -1038,6 +1049,9 @@ function defineBadges (packageName, visibility) {
1038
1049
  };
1039
1050
  }
1040
1051
 
1052
+ const {
1053
+ Separator
1054
+ } = inquirer__default["default"];
1041
1055
  async function chooseBundler ({
1042
1056
  bundlers,
1043
1057
  decisions
@@ -1047,7 +1061,7 @@ async function chooseBundler ({
1047
1061
  name: questionNames$1.PACKAGE_BUNDLER,
1048
1062
  type: 'list',
1049
1063
  message: 'Which bundler should be used?',
1050
- choices: [...Object.keys(bundlers), new inquirer.Separator(), 'Other']
1064
+ choices: [...Object.keys(bundlers), new Separator(), 'Other']
1051
1065
  }], decisions);
1052
1066
  return answers[questionNames$1.PACKAGE_BUNDLER];
1053
1067
  }