create-directus-extension 9.22.2 → 9.23.1
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 +3 -3
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
const inquirer = require('inquirer');
|
|
5
|
-
const { EXTENSION_LANGUAGES,
|
|
5
|
+
const { EXTENSION_LANGUAGES, EXTENSION_TYPES, BUNDLE_EXTENSION_TYPES } = require('@directus/shared/constants');
|
|
6
6
|
const { create } = require('@directus/extensions-sdk/cli');
|
|
7
7
|
|
|
8
8
|
run();
|
|
@@ -16,7 +16,7 @@ async function run() {
|
|
|
16
16
|
type: 'list',
|
|
17
17
|
name: 'type',
|
|
18
18
|
message: 'Choose the extension type',
|
|
19
|
-
choices:
|
|
19
|
+
choices: EXTENSION_TYPES,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
type: 'input',
|
|
@@ -28,7 +28,7 @@ async function run() {
|
|
|
28
28
|
name: 'language',
|
|
29
29
|
message: 'Choose the language to use',
|
|
30
30
|
choices: EXTENSION_LANGUAGES,
|
|
31
|
-
when: ({ type }) =>
|
|
31
|
+
when: ({ type }) => BUNDLE_EXTENSION_TYPES.includes(type) === false,
|
|
32
32
|
},
|
|
33
33
|
]);
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-directus-extension",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.23.1",
|
|
4
4
|
"description": "A small util that will scaffold a Directus extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"directus",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"lib/index.js"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"inquirer": "8.
|
|
36
|
-
"@directus/extensions-sdk": "9.
|
|
37
|
-
"@directus/shared": "9.
|
|
35
|
+
"inquirer": "8.2.5",
|
|
36
|
+
"@directus/extensions-sdk": "9.23.1",
|
|
37
|
+
"@directus/shared": "9.23.1"
|
|
38
38
|
}
|
|
39
39
|
}
|