mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
5
.changeset/great-planets-move.md
Normal file
5
.changeset/great-planets-move.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/extensions-sdk': patch
|
||||
---
|
||||
|
||||
Prevented nesting bundle extensions via the `extensions-sdk` add command
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user