create-directus-extension 11.0.15 → 11.0.16

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -2
  2. package/package.json +12 -4
package/lib/index.js CHANGED
@@ -5,9 +5,11 @@ import inquirer from 'inquirer';
5
5
  import { EXTENSION_LANGUAGES, EXTENSION_TYPES, BUNDLE_EXTENSION_TYPES } from '@directus/extensions';
6
6
  import { create } from '@directus/extensions-sdk/cli';
7
7
 
8
- run();
8
+ if (process.env.NODE_ENV !== 'test') {
9
+ run();
10
+ }
9
11
 
10
- async function run() {
12
+ export async function run() {
11
13
  // eslint-disable-next-line no-console
12
14
  console.log('This utility will walk you through creating a Directus extension.\n');
13
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-directus-extension",
3
- "version": "11.0.15",
3
+ "version": "11.0.16",
4
4
  "description": "A small util that will scaffold a Directus extension",
5
5
  "keywords": [
6
6
  "directus",
@@ -33,8 +33,16 @@
33
33
  "lib/index.js"
34
34
  ],
35
35
  "dependencies": {
36
- "inquirer": "12.4.2",
37
- "@directus/extensions": "3.0.7",
38
- "@directus/extensions-sdk": "14.0.0"
36
+ "inquirer": "12.9.0",
37
+ "@directus/extensions": "3.0.8",
38
+ "@directus/extensions-sdk": "15.0.0"
39
+ },
40
+ "devDependencies": {
41
+ "@vitest/coverage-v8": "3.2.4",
42
+ "vitest": "3.2.4"
43
+ },
44
+ "scripts": {
45
+ "test": "vitest run",
46
+ "test:coverage": "vitest run --coverage"
39
47
  }
40
48
  }