@directus/extensions-sdk 10.1.0 → 10.1.2
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/build.js +3 -3
- package/package.json +19 -24
|
@@ -6,6 +6,7 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
|
6
6
|
import replaceDefault from '@rollup/plugin-replace';
|
|
7
7
|
import terserDefault from '@rollup/plugin-terser';
|
|
8
8
|
import virtualDefault from '@rollup/plugin-virtual';
|
|
9
|
+
import vueDefault from '@vitejs/plugin-vue';
|
|
9
10
|
import chalk from 'chalk';
|
|
10
11
|
import fse from 'fs-extra';
|
|
11
12
|
import ora from 'ora';
|
|
@@ -13,13 +14,12 @@ import path from 'path';
|
|
|
13
14
|
import { rollup, watch as rollupWatch } from 'rollup';
|
|
14
15
|
import esbuildDefault from 'rollup-plugin-esbuild';
|
|
15
16
|
import stylesDefault from 'rollup-plugin-styles';
|
|
16
|
-
import
|
|
17
|
+
import { getFileExt } from '../utils/file.js';
|
|
17
18
|
import { clear, log } from '../utils/logger.js';
|
|
18
19
|
import tryParseJson from '../utils/try-parse-json.js';
|
|
19
20
|
import generateBundleEntrypoint from './helpers/generate-bundle-entrypoint.js';
|
|
20
21
|
import loadConfig from './helpers/load-config.js';
|
|
21
22
|
import { validateSplitEntrypointOption } from './helpers/validate-cli-options.js';
|
|
22
|
-
import { getFileExt } from '../utils/file.js';
|
|
23
23
|
// Workaround for https://github.com/rollup/plugins/issues/1329
|
|
24
24
|
const virtual = virtualDefault;
|
|
25
25
|
const vue = vueDefault;
|
|
@@ -336,7 +336,7 @@ function getRollupOptions({ mode, input, sourcemap, minify, plugins, }) {
|
|
|
336
336
|
external: mode === 'browser' ? APP_SHARED_DEPS : API_SHARED_DEPS,
|
|
337
337
|
plugins: [
|
|
338
338
|
typeof input !== 'string' ? virtual(input) : null,
|
|
339
|
-
mode === 'browser' ? vue({
|
|
339
|
+
mode === 'browser' ? vue({ isProduction: true }) : null,
|
|
340
340
|
esbuild({ include: /\.tsx?$/, sourceMap: sourcemap }),
|
|
341
341
|
mode === 'browser' ? styles() : null,
|
|
342
342
|
...plugins,
|
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/extensions-sdk",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.2",
|
|
4
4
|
"description": "A toolkit to develop extensions to extend Directus",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"bugs": {
|
|
8
|
-
"url": "https://github.com/directus/directus/issues"
|
|
9
|
-
},
|
|
10
6
|
"repository": {
|
|
11
7
|
"type": "git",
|
|
12
8
|
"url": "https://github.com/directus/directus.git",
|
|
13
9
|
"directory": "packages/extensions-sdk"
|
|
14
10
|
},
|
|
15
11
|
"funding": "https://github.com/directus/directus?sponsor=1",
|
|
12
|
+
"license": "MIT",
|
|
16
13
|
"author": "Nicola Krumschmidt",
|
|
14
|
+
"type": "module",
|
|
17
15
|
"exports": {
|
|
18
16
|
".": "./dist/index.js",
|
|
19
17
|
"./cli": "./dist/cli/index.js",
|
|
@@ -28,44 +26,41 @@
|
|
|
28
26
|
"templates"
|
|
29
27
|
],
|
|
30
28
|
"dependencies": {
|
|
31
|
-
"@rollup/plugin-commonjs": "
|
|
29
|
+
"@rollup/plugin-commonjs": "25.0.0",
|
|
32
30
|
"@rollup/plugin-json": "6.0.0",
|
|
33
31
|
"@rollup/plugin-node-resolve": "15.0.2",
|
|
34
32
|
"@rollup/plugin-replace": "5.0.2",
|
|
35
|
-
"@rollup/plugin-terser": "0.4.
|
|
33
|
+
"@rollup/plugin-terser": "0.4.3",
|
|
36
34
|
"@rollup/plugin-virtual": "3.0.1",
|
|
37
|
-
"@
|
|
35
|
+
"@vitejs/plugin-vue": "4.2.3",
|
|
38
36
|
"chalk": "5.2.0",
|
|
39
37
|
"commander": "10.0.1",
|
|
40
|
-
"esbuild": "0.17.
|
|
38
|
+
"esbuild": "0.17.19",
|
|
41
39
|
"execa": "7.1.1",
|
|
42
40
|
"fs-extra": "11.1.1",
|
|
43
|
-
"inquirer": "9.
|
|
44
|
-
"ora": "6.3.
|
|
45
|
-
"rollup": "3.
|
|
41
|
+
"inquirer": "9.2.4",
|
|
42
|
+
"ora": "6.3.1",
|
|
43
|
+
"rollup": "3.22.0",
|
|
46
44
|
"rollup-plugin-esbuild": "5.0.0",
|
|
47
45
|
"rollup-plugin-styles": "4.0.0",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"@directus/
|
|
51
|
-
"@directus/types": "10.
|
|
52
|
-
"@directus/utils": "10.0.
|
|
46
|
+
"vite": "4.3.7",
|
|
47
|
+
"vue": "3.3.4",
|
|
48
|
+
"@directus/composables": "10.0.3",
|
|
49
|
+
"@directus/types": "10.1.0",
|
|
50
|
+
"@directus/utils": "10.0.3",
|
|
51
|
+
"@directus/constants": "10.1.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@directus/tsconfig": "0.0.7",
|
|
56
54
|
"@types/fs-extra": "11.0.1",
|
|
57
55
|
"@types/inquirer": "9.0.3",
|
|
58
|
-
"@vitest/coverage-c8": "0.31.
|
|
56
|
+
"@vitest/coverage-c8": "0.31.1",
|
|
59
57
|
"typescript": "5.0.4",
|
|
60
|
-
"vitest": "0.31.
|
|
58
|
+
"vitest": "0.31.1",
|
|
59
|
+
"@directus/tsconfig": "0.0.7"
|
|
61
60
|
},
|
|
62
61
|
"engines": {
|
|
63
62
|
"node": ">=12.20.0"
|
|
64
63
|
},
|
|
65
|
-
"publishConfig": {
|
|
66
|
-
"access": "public"
|
|
67
|
-
},
|
|
68
|
-
"license": "MIT",
|
|
69
64
|
"scripts": {
|
|
70
65
|
"build": "tsc --project tsconfig.prod.json",
|
|
71
66
|
"dev": "tsc --watch",
|