@directus/extensions-sdk 13.1.1 → 15.0.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.
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/build.js +10 -9
- package/package.json +28 -27
package/dist/cli/commands/add.js
CHANGED
|
@@ -24,7 +24,7 @@ export default async function add(options) {
|
|
|
24
24
|
}
|
|
25
25
|
let extensionManifestFile;
|
|
26
26
|
try {
|
|
27
|
-
extensionManifestFile = await fse.readFile(packagePath, 'utf8');
|
|
27
|
+
extensionManifestFile = (await fse.readFile(packagePath, 'utf8'));
|
|
28
28
|
}
|
|
29
29
|
catch {
|
|
30
30
|
log(`Failed to read "package.json" file from current directory.`, 'error');
|
|
@@ -13,7 +13,7 @@ import ora from 'ora';
|
|
|
13
13
|
import path from 'path';
|
|
14
14
|
import { rollup, watch as rollupWatch } from 'rollup';
|
|
15
15
|
import esbuild from 'rollup-plugin-esbuild';
|
|
16
|
-
import
|
|
16
|
+
import styles from 'rollup-plugin-styler';
|
|
17
17
|
import { getFileExt } from '../utils/file.js';
|
|
18
18
|
import { clear, log } from '../utils/logger.js';
|
|
19
19
|
import tryParseJson from '../utils/try-parse-json.js';
|
|
@@ -22,7 +22,6 @@ import loadConfig from './helpers/load-config.js';
|
|
|
22
22
|
import { validateSplitEntrypointOption } from './helpers/validate-cli-options.js';
|
|
23
23
|
// Workaround for https://github.com/rollup/plugins/issues/1329
|
|
24
24
|
const virtual = virtualDefault;
|
|
25
|
-
const styles = stylesDefault;
|
|
26
25
|
const commonjs = commonjsDefault;
|
|
27
26
|
const json = jsonDefault;
|
|
28
27
|
const replace = replaceDefault;
|
|
@@ -40,7 +39,7 @@ export default async function build(options) {
|
|
|
40
39
|
}
|
|
41
40
|
let extensionManifestFile;
|
|
42
41
|
try {
|
|
43
|
-
extensionManifestFile = await fse.readFile(packagePath, 'utf8');
|
|
42
|
+
extensionManifestFile = (await fse.readFile(packagePath, 'utf8'));
|
|
44
43
|
}
|
|
45
44
|
catch {
|
|
46
45
|
log(`Failed to read "package.json" file from current directory.`, 'error');
|
|
@@ -361,12 +360,14 @@ function getRollupOptions({ mode, input, sourcemap, minify, config, }) {
|
|
|
361
360
|
nodeResolve({ browser: mode === 'browser', preferBuiltins: mode === 'node' }),
|
|
362
361
|
commonjs({ esmExternals: mode === 'browser', sourceMap: sourcemap }),
|
|
363
362
|
json(),
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
363
|
+
mode === 'browser'
|
|
364
|
+
? replace({
|
|
365
|
+
values: {
|
|
366
|
+
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
367
|
+
},
|
|
368
|
+
preventAssignment: true,
|
|
369
|
+
})
|
|
370
|
+
: null,
|
|
370
371
|
minify ? terser() : null,
|
|
371
372
|
],
|
|
372
373
|
onwarn(warning, warn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/extensions-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "A toolkit to develop extensions to extend Directus",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
6
|
"repository": {
|
|
@@ -26,48 +26,49 @@
|
|
|
26
26
|
"templates"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@rollup/plugin-commonjs": "
|
|
29
|
+
"@rollup/plugin-commonjs": "28.0.6",
|
|
30
30
|
"@rollup/plugin-json": "6.1.0",
|
|
31
|
-
"@rollup/plugin-node-resolve": "
|
|
32
|
-
"@rollup/plugin-replace": "
|
|
31
|
+
"@rollup/plugin-node-resolve": "16.0.1",
|
|
32
|
+
"@rollup/plugin-replace": "6.0.2",
|
|
33
33
|
"@rollup/plugin-terser": "0.4.4",
|
|
34
34
|
"@rollup/plugin-virtual": "3.0.2",
|
|
35
|
-
"@vitejs/plugin-vue": "
|
|
35
|
+
"@vitejs/plugin-vue": "6.0.0",
|
|
36
36
|
"chalk": "5.4.1",
|
|
37
|
-
"commander": "
|
|
38
|
-
"esbuild": "0.25.
|
|
39
|
-
"execa": "
|
|
37
|
+
"commander": "14.0.0",
|
|
38
|
+
"esbuild": "0.25.6",
|
|
39
|
+
"execa": "9.6.0",
|
|
40
40
|
"fs-extra": "11.3.0",
|
|
41
|
-
"inquirer": "12.
|
|
42
|
-
"ora": "
|
|
43
|
-
"rollup": "
|
|
41
|
+
"inquirer": "12.7.0",
|
|
42
|
+
"ora": "8.2.0",
|
|
43
|
+
"rollup": "4.45.1",
|
|
44
44
|
"rollup-plugin-esbuild": "6.2.1",
|
|
45
|
-
"rollup-plugin-
|
|
46
|
-
"semver": "7.7.
|
|
47
|
-
"vite": "
|
|
48
|
-
"vue": "3.5.
|
|
49
|
-
"@directus/
|
|
45
|
+
"rollup-plugin-styler": "2.0.0",
|
|
46
|
+
"semver": "7.7.2",
|
|
47
|
+
"vite": "7.0.5",
|
|
48
|
+
"vue": "3.5.17",
|
|
49
|
+
"@directus/composables": "11.2.1",
|
|
50
50
|
"@directus/constants": "13.0.1",
|
|
51
|
-
"@directus/
|
|
52
|
-
"@directus/
|
|
53
|
-
"@directus/
|
|
54
|
-
"@directus/utils": "13.0.
|
|
51
|
+
"@directus/types": "13.2.0",
|
|
52
|
+
"@directus/extensions": "3.0.8",
|
|
53
|
+
"@directus/themes": "1.1.3",
|
|
54
|
+
"@directus/utils": "13.0.8"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@directus/tsconfig": "3.0.0",
|
|
58
58
|
"@types/fs-extra": "11.0.4",
|
|
59
|
-
"@types/inquirer": "9.0.
|
|
60
|
-
"@types/semver": "7.
|
|
61
|
-
"@vitest/coverage-v8": "2.
|
|
62
|
-
"typescript": "5.8.
|
|
63
|
-
"vitest": "2.
|
|
59
|
+
"@types/inquirer": "9.0.8",
|
|
60
|
+
"@types/semver": "7.7.0",
|
|
61
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
62
|
+
"typescript": "5.8.3",
|
|
63
|
+
"vitest": "3.2.4"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
66
|
+
"node": ">=20.19.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "tsc --project tsconfig.prod.json",
|
|
70
70
|
"dev": "tsc --watch",
|
|
71
|
-
"test": "vitest
|
|
71
|
+
"test": "vitest run",
|
|
72
|
+
"test:coverage": "vitest run --coverage"
|
|
72
73
|
}
|
|
73
74
|
}
|