@directus/extensions-sdk 17.0.10 → 17.1.0
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.
|
@@ -351,9 +351,10 @@ function getRollupOptions({ mode, input, sourcemap, minify, config, }) {
|
|
|
351
351
|
const plugins = config.plugins ?? [];
|
|
352
352
|
return {
|
|
353
353
|
input: typeof input !== 'string' ? 'entry' : input,
|
|
354
|
-
external: mode === 'browser' ? APP_SHARED_DEPS : API_SHARED_DEPS,
|
|
354
|
+
external: [...(mode === 'browser' ? APP_SHARED_DEPS : API_SHARED_DEPS)],
|
|
355
355
|
plugins: [
|
|
356
356
|
typeof input !== 'string' ? virtual(input) : null,
|
|
357
|
+
// @ts-ignore Libraries should be compatible, just the type is colliding.
|
|
357
358
|
mode === 'browser' ? vue({ isProduction: true }) : null,
|
|
358
359
|
esbuild({ include: /\.tsx?$/, sourceMap: sourcemap }),
|
|
359
360
|
mode === 'browser' ? styles() : null,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Ora } from 'ora';
|
|
2
|
+
import type { Report } from '../../types.js';
|
|
3
|
+
interface Validator {
|
|
2
4
|
name: string;
|
|
3
|
-
handler: (spinner:
|
|
4
|
-
}
|
|
5
|
-
|
|
5
|
+
handler: (spinner: Ora, reports: Array<Report>) => Promise<string>;
|
|
6
|
+
}
|
|
7
|
+
declare const validators: Validator[];
|
|
8
|
+
export default validators;
|
|
@@ -2,4 +2,5 @@ import checkBuiltCode from './check-built-code.js';
|
|
|
2
2
|
import checkDirectusConfig from './check-directus-config.js';
|
|
3
3
|
import checkLicense from './check-license.js';
|
|
4
4
|
import checkReadme from './check-readme.js';
|
|
5
|
-
|
|
5
|
+
const validators = [checkReadme, checkLicense, checkDirectusConfig, checkBuiltCode];
|
|
6
|
+
export default validators;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/extensions-sdk",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "A toolkit to develop extensions to extend Directus",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@rollup/plugin-json": "6.1.0",
|
|
31
31
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
32
32
|
"@rollup/plugin-replace": "6.0.3",
|
|
33
|
-
"@rollup/plugin-terser": "0.
|
|
33
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
34
34
|
"@rollup/plugin-virtual": "3.0.2",
|
|
35
35
|
"@vitejs/plugin-vue": "6.0.1",
|
|
36
36
|
"chalk": "5.6.2",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"rollup-plugin-esbuild": "6.2.1",
|
|
45
45
|
"rollup-plugin-styler": "2.0.0",
|
|
46
46
|
"semver": "7.7.3",
|
|
47
|
-
"vite": "
|
|
47
|
+
"vite": "8.0.0",
|
|
48
48
|
"vue": "3.5.24",
|
|
49
|
-
"@directus/composables": "11.2.
|
|
50
|
-
"@directus/
|
|
51
|
-
"@directus/
|
|
52
|
-
"@directus/
|
|
53
|
-
"@directus/
|
|
54
|
-
"@directus/
|
|
49
|
+
"@directus/composables": "11.2.16",
|
|
50
|
+
"@directus/constants": "14.3.0",
|
|
51
|
+
"@directus/themes": "1.3.0",
|
|
52
|
+
"@directus/utils": "13.3.2",
|
|
53
|
+
"@directus/types": "15.0.0",
|
|
54
|
+
"@directus/extensions": "3.0.22"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@directus/tsconfig": "
|
|
57
|
+
"@directus/tsconfig": "4.0.0",
|
|
58
58
|
"@types/fs-extra": "11.0.4",
|
|
59
59
|
"@types/inquirer": "9.0.9",
|
|
60
60
|
"@types/semver": "7.7.1",
|