Prevent nesting bundle extensions via the extensions-sdk add command (#23663)

* do not allow adding a bundle to a bundle

* add changeset
This commit is contained in:
daedalus
2024-09-13 12:29:42 -04:00
committed by GitHub
parent 261c77bc04
commit fe0b8f8d67
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
'@directus/extensions-sdk': patch
---
Prevented nesting bundle extensions via the `extensions-sdk` add command

View File

@@ -78,7 +78,7 @@ export default async function add(options: AddOptions): Promise<void> {
type: 'list',
name: 'type',
message: 'Choose the extension type',
choices: EXTENSION_TYPES,
choices: () => EXTENSION_TYPES.filter((e) => e !== 'bundle'),
},
{
type: 'input',
@@ -186,7 +186,7 @@ export default async function add(options: AddOptions): Promise<void> {
type: 'list',
name: 'type',
message: 'Choose the extension type',
choices: EXTENSION_TYPES,
choices: () => EXTENSION_TYPES.filter((e) => e !== 'bundle'),
},
{
type: 'input',