create-awesome-node-app 0.2.7 → 0.2.9

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/dist/index.cjs CHANGED
@@ -3562,7 +3562,7 @@ var getCnaOptions = async (options) => {
3562
3562
  // The following prompts are placeholders for future inputs
3563
3563
  {
3564
3564
  type: null,
3565
- name: "addons",
3565
+ name: "templatesOrExtensions",
3566
3566
  message: "Select extensions",
3567
3567
  initial: 0
3568
3568
  },
@@ -3573,7 +3573,7 @@ var getCnaOptions = async (options) => {
3573
3573
  initial: 0
3574
3574
  }
3575
3575
  ]);
3576
- appConfig.addons = [];
3576
+ appConfig.templatesOrExtensions = [];
3577
3577
  appConfig.extend = [];
3578
3578
  const extensionsGroupedByCategory = await getExtensionsGroupedByCategory(
3579
3579
  templateInput.template
@@ -3595,7 +3595,7 @@ var getCnaOptions = async (options) => {
3595
3595
  }),
3596
3596
  initial: 0
3597
3597
  });
3598
- appConfig.addons = appConfig.addons ? [...appConfig.addons, ...selected] : [];
3598
+ appConfig.templatesOrExtensions = appConfig.templatesOrExtensions ? [...appConfig.templatesOrExtensions, ...selected] : [];
3599
3599
  }
3600
3600
  const askForExtend = await (0, import_prompts.default)([
3601
3601
  {
@@ -3623,13 +3623,13 @@ var getCnaOptions = async (options) => {
3623
3623
  ...templateInput,
3624
3624
  ...appConfig
3625
3625
  };
3626
- const templateAddon = baseInput.category === "custom" ? templateInput.template : (_a = templates.find((template) => template.type === templateInput.template)) == null ? void 0 : _a.url;
3627
- const addons = [
3628
- templateAddon,
3629
- ...nextAppOptions.addons,
3626
+ const templateTemplateOrExtension = baseInput.category === "custom" ? templateInput.template : (_a = templates.find((template) => template.type === templateInput.template)) == null ? void 0 : _a.url;
3627
+ const templatesOrExtensions = [
3628
+ templateTemplateOrExtension,
3629
+ ...nextAppOptions.templatesOrExtensions,
3630
3630
  ...nextAppOptions.extend
3631
- ].filter(Boolean).map((addon) => ({ url: addon }));
3632
- const nextOptions = { ...nextAppOptions, addons };
3631
+ ].filter(Boolean).map((templateOrExtension) => ({ url: templateOrExtension }));
3632
+ const nextOptions = { ...nextAppOptions, templatesOrExtensions };
3633
3633
  if (nextAppOptions.verbose) {
3634
3634
  console.log(JSON.stringify(nextOptions, null, 2));
3635
3635
  }
@@ -3639,9 +3639,9 @@ var getCnaOptions = async (options) => {
3639
3639
  // package.json
3640
3640
  var package_default = {
3641
3641
  name: "create-awesome-node-app",
3642
- version: "0.2.7",
3642
+ version: "0.2.9",
3643
3643
  type: "module",
3644
- description: "Command line tool to create Node apps with a lot of different addons.",
3644
+ description: "Command line tool to create Node apps with a lot of different templates and extensions.",
3645
3645
  license: "MIT",
3646
3646
  repository: {
3647
3647
  type: "git",
package/dist/index.js CHANGED
@@ -3568,7 +3568,7 @@ var getCnaOptions = async (options) => {
3568
3568
  // The following prompts are placeholders for future inputs
3569
3569
  {
3570
3570
  type: null,
3571
- name: "addons",
3571
+ name: "templatesOrExtensions",
3572
3572
  message: "Select extensions",
3573
3573
  initial: 0
3574
3574
  },
@@ -3579,7 +3579,7 @@ var getCnaOptions = async (options) => {
3579
3579
  initial: 0
3580
3580
  }
3581
3581
  ]);
3582
- appConfig.addons = [];
3582
+ appConfig.templatesOrExtensions = [];
3583
3583
  appConfig.extend = [];
3584
3584
  const extensionsGroupedByCategory = await getExtensionsGroupedByCategory(
3585
3585
  templateInput.template
@@ -3601,7 +3601,7 @@ var getCnaOptions = async (options) => {
3601
3601
  }),
3602
3602
  initial: 0
3603
3603
  });
3604
- appConfig.addons = appConfig.addons ? [...appConfig.addons, ...selected] : [];
3604
+ appConfig.templatesOrExtensions = appConfig.templatesOrExtensions ? [...appConfig.templatesOrExtensions, ...selected] : [];
3605
3605
  }
3606
3606
  const askForExtend = await prompts([
3607
3607
  {
@@ -3629,13 +3629,13 @@ var getCnaOptions = async (options) => {
3629
3629
  ...templateInput,
3630
3630
  ...appConfig
3631
3631
  };
3632
- const templateAddon = baseInput.category === "custom" ? templateInput.template : (_a = templates.find((template) => template.type === templateInput.template)) == null ? void 0 : _a.url;
3633
- const addons = [
3634
- templateAddon,
3635
- ...nextAppOptions.addons,
3632
+ const templateTemplateOrExtension = baseInput.category === "custom" ? templateInput.template : (_a = templates.find((template) => template.type === templateInput.template)) == null ? void 0 : _a.url;
3633
+ const templatesOrExtensions = [
3634
+ templateTemplateOrExtension,
3635
+ ...nextAppOptions.templatesOrExtensions,
3636
3636
  ...nextAppOptions.extend
3637
- ].filter(Boolean).map((addon) => ({ url: addon }));
3638
- const nextOptions = { ...nextAppOptions, addons };
3637
+ ].filter(Boolean).map((templateOrExtension) => ({ url: templateOrExtension }));
3638
+ const nextOptions = { ...nextAppOptions, templatesOrExtensions };
3639
3639
  if (nextAppOptions.verbose) {
3640
3640
  console.log(JSON.stringify(nextOptions, null, 2));
3641
3641
  }
@@ -3645,9 +3645,9 @@ var getCnaOptions = async (options) => {
3645
3645
  // package.json
3646
3646
  var package_default = {
3647
3647
  name: "create-awesome-node-app",
3648
- version: "0.2.7",
3648
+ version: "0.2.9",
3649
3649
  type: "module",
3650
- description: "Command line tool to create Node apps with a lot of different addons.",
3650
+ description: "Command line tool to create Node apps with a lot of different templates and extensions.",
3651
3651
  license: "MIT",
3652
3652
  repository: {
3653
3653
  type: "git",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "create-awesome-node-app",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
- "description": "Command line tool to create Node apps with a lot of different addons.",
5
+ "description": "Command line tool to create Node apps with a lot of different templates and extensions.",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",