directus-template-cli 0.5.0-beta.13 → 0.5.0-beta.14

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const inquirer = tslib_1.__importStar(require("inquirer"));
6
+ const path = tslib_1.__importStar(require("node:path"));
6
7
  const customFlags = tslib_1.__importStar(require("../flags/common"));
7
8
  const constants_1 = require("../lib/constants");
8
9
  const apply_flags_1 = require("../lib/load/apply-flags");
@@ -167,7 +168,10 @@ class ApplyCommand extends core_1.Command {
167
168
  }
168
169
  const { selectedTemplate } = await inquirer.prompt([
169
170
  {
170
- choices: templates.map(t => ({ name: `${t.templateName} (${core_1.ux.colorize('dim', t.directoryPath)})`, value: t })),
171
+ choices: templates.map(t => ({
172
+ name: `${t.templateName} (${path.basename(t.directoryPath)})`,
173
+ value: t,
174
+ })),
171
175
  message: 'Multiple templates found. Please select one:',
172
176
  name: 'selectedTemplate',
173
177
  type: 'list',
@@ -280,5 +280,5 @@
280
280
  ]
281
281
  }
282
282
  },
283
- "version": "0.5.0-beta.13"
283
+ "version": "0.5.0-beta.14"
284
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-template-cli",
3
- "version": "0.5.0-beta.13",
3
+ "version": "0.5.0-beta.14",
4
4
  "description": "CLI Utility for applying templates to a Directus instance.",
5
5
  "author": "bryantgillespie @bryantgillespie",
6
6
  "bin": {