@directus/extensions-sdk 16.0.1 → 17.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
CHANGED
|
@@ -176,7 +176,7 @@ export default async function add(options) {
|
|
|
176
176
|
const source = alternativeSource ?? 'src';
|
|
177
177
|
const convertSourcePath = path.resolve(source, convertName);
|
|
178
178
|
const entrySourcePath = path.resolve(source, name);
|
|
179
|
-
const convertFiles = await fse.readdir(source);
|
|
179
|
+
const convertFiles = (await fse.readdir(source, 'utf8'));
|
|
180
180
|
await Promise.all(convertFiles.map((file) => fse.move(path.resolve(source, file), path.join(convertSourcePath, file))));
|
|
181
181
|
await fse.ensureDir(entrySourcePath);
|
|
182
182
|
await copyTemplate(type, extensionPath, entrySourcePath, language);
|
|
@@ -358,7 +358,11 @@ function getRollupOptions({ mode, input, sourcemap, minify, config, }) {
|
|
|
358
358
|
esbuild({ include: /\.tsx?$/, sourceMap: sourcemap }),
|
|
359
359
|
mode === 'browser' ? styles() : null,
|
|
360
360
|
...plugins,
|
|
361
|
-
nodeResolve({
|
|
361
|
+
nodeResolve({
|
|
362
|
+
browser: mode === 'browser',
|
|
363
|
+
exportConditions: mode === 'node' ? ['node'] : [],
|
|
364
|
+
preferBuiltins: mode === 'node',
|
|
365
|
+
}),
|
|
362
366
|
commonjs({ esmExternals: mode === 'browser', sourceMap: sourcemap }),
|
|
363
367
|
json(),
|
|
364
368
|
mode === 'browser'
|
|
@@ -14,7 +14,7 @@ async function copyTemplateFile(templateFile, extensionPath, sourcePath) {
|
|
|
14
14
|
async function getFilesInDir(templatePath) {
|
|
15
15
|
if (!(await fse.pathExists(templatePath)))
|
|
16
16
|
return [];
|
|
17
|
-
const files = await fse.readdir(templatePath);
|
|
17
|
+
const files = (await fse.readdir(templatePath));
|
|
18
18
|
return files.map((file) => path.join(templatePath, file));
|
|
19
19
|
}
|
|
20
20
|
async function getLanguageTemplateFiles(templateLanguagePath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/extensions-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "A toolkit to develop extensions to extend Directus",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
6
|
"repository": {
|
|
@@ -26,40 +26,40 @@
|
|
|
26
26
|
"templates"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
29
|
+
"@rollup/plugin-commonjs": "28.0.9",
|
|
30
30
|
"@rollup/plugin-json": "6.1.0",
|
|
31
|
-
"@rollup/plugin-node-resolve": "16.0.
|
|
31
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
32
32
|
"@rollup/plugin-replace": "6.0.2",
|
|
33
33
|
"@rollup/plugin-terser": "0.4.4",
|
|
34
34
|
"@rollup/plugin-virtual": "3.0.2",
|
|
35
35
|
"@vitejs/plugin-vue": "6.0.1",
|
|
36
|
-
"chalk": "5.
|
|
37
|
-
"commander": "14.0.
|
|
38
|
-
"esbuild": "0.25.
|
|
36
|
+
"chalk": "5.6.2",
|
|
37
|
+
"commander": "14.0.2",
|
|
38
|
+
"esbuild": "0.25.11",
|
|
39
39
|
"execa": "9.6.0",
|
|
40
|
-
"fs-extra": "11.3.
|
|
41
|
-
"inquirer": "12.
|
|
40
|
+
"fs-extra": "11.3.2",
|
|
41
|
+
"inquirer": "12.10.0",
|
|
42
42
|
"ora": "8.2.0",
|
|
43
|
-
"rollup": "4.
|
|
43
|
+
"rollup": "4.52.5",
|
|
44
44
|
"rollup-plugin-esbuild": "6.2.1",
|
|
45
45
|
"rollup-plugin-styler": "2.0.0",
|
|
46
|
-
"semver": "7.7.
|
|
47
|
-
"vite": "7.1.
|
|
48
|
-
"vue": "3.5.
|
|
49
|
-
"@directus/
|
|
50
|
-
"@directus/
|
|
51
|
-
"@directus/
|
|
52
|
-
"@directus/
|
|
53
|
-
"@directus/
|
|
54
|
-
"@directus/
|
|
46
|
+
"semver": "7.7.3",
|
|
47
|
+
"vite": "7.1.12",
|
|
48
|
+
"vue": "3.5.22",
|
|
49
|
+
"@directus/composables": "11.2.4",
|
|
50
|
+
"@directus/constants": "14.0.0",
|
|
51
|
+
"@directus/themes": "1.1.6",
|
|
52
|
+
"@directus/types": "13.3.0",
|
|
53
|
+
"@directus/utils": "13.0.11",
|
|
54
|
+
"@directus/extensions": "3.0.12"
|
|
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.7.
|
|
59
|
+
"@types/inquirer": "9.0.9",
|
|
60
|
+
"@types/semver": "7.7.1",
|
|
61
61
|
"@vitest/coverage-v8": "3.2.4",
|
|
62
|
-
"typescript": "5.
|
|
62
|
+
"typescript": "5.9.3",
|
|
63
63
|
"vitest": "3.2.4"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|