@open-xchange/vite-plugin-ox-manifests 0.7.2 → 0.7.4
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/plugins/gettext.js
CHANGED
|
@@ -52,7 +52,7 @@ export default definePlugin(() => {
|
|
|
52
52
|
modules.push(chunk.facadeModuleId);
|
|
53
53
|
for (const id of modules) {
|
|
54
54
|
const meta = this.getModuleInfo(id)?.meta;
|
|
55
|
-
if (meta
|
|
55
|
+
if (meta?.gettext?.dictionary === true) {
|
|
56
56
|
(meta.manifests ??= []).push({ namespace: 'i18n', path: '' });
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -8,9 +8,8 @@ async function getManifestEntryFile(basePath, extensions) {
|
|
|
8
8
|
try {
|
|
9
9
|
await fs.promises.stat(basePath);
|
|
10
10
|
return path.parse(basePath);
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
11
|
}
|
|
13
|
-
catch
|
|
12
|
+
catch {
|
|
14
13
|
throw new Error(`Cannot find file "${basePath}"`);
|
|
15
14
|
}
|
|
16
15
|
}
|
package/dist/plugins/serve.js
CHANGED
|
@@ -57,6 +57,8 @@ export default definePlugin(({ watch }) => {
|
|
|
57
57
|
const watcher = chokidar.watch(path.join(resolvedConfig.root, '**/manifest.json'))
|
|
58
58
|
.on('ready', () => {
|
|
59
59
|
watcher.on('all', path => {
|
|
60
|
+
if (typeof path !== 'string')
|
|
61
|
+
return;
|
|
60
62
|
ws.send({ type: 'full-reload', path });
|
|
61
63
|
});
|
|
62
64
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/vite-plugin-ox-manifests",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "A vite plugin to concat and serve ox manifests",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"chokidar": "^
|
|
21
|
+
"chokidar": "^4.0.1",
|
|
22
22
|
"fast-glob": "^3.3.2",
|
|
23
23
|
"magic-string": "^0.30.11",
|
|
24
24
|
"parseurl": "^1.3.3",
|
|
@@ -26,24 +26,18 @@
|
|
|
26
26
|
"@open-xchange/vite-plugin-ox-externals": "0.8.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/node": "^22.4
|
|
29
|
+
"@types/node": "^22.7.4",
|
|
30
30
|
"@types/parseurl": "^1.3.3",
|
|
31
|
-
"@typescript-eslint/parser": "^8.1.0",
|
|
32
|
-
"cross-env": "^7.0.3",
|
|
33
|
-
"eslint-plugin-jest": "^28.8.0",
|
|
34
|
-
"express": "^4.19.2",
|
|
35
|
-
"jest": "^29.7.0",
|
|
36
|
-
"jest-junit": "^16.0.0",
|
|
37
31
|
"less": "^4.2.0",
|
|
38
|
-
"
|
|
39
|
-
"typescript": "^5.
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"@open-xchange/lint": "0.
|
|
32
|
+
"rollup": "^4.28.0",
|
|
33
|
+
"typescript": "^5.6.2",
|
|
34
|
+
"vite": "^5.4.8",
|
|
35
|
+
"vitest": "^2.1.8",
|
|
36
|
+
"@open-xchange/lint": "0.2.0"
|
|
43
37
|
},
|
|
44
38
|
"scripts": {
|
|
45
39
|
"lint": "eslint .",
|
|
46
40
|
"build": "tsc",
|
|
47
|
-
"test": "
|
|
41
|
+
"test": "tsc && vitest"
|
|
48
42
|
}
|
|
49
43
|
}
|