nuxt-charts 2.1.4 → 2.2.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/module.json +2 -2
- package/dist/module.mjs +26 -4
- package/package.json +9 -6
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -49,6 +49,27 @@ const resolveImports = (config, filePath) => {
|
|
|
49
49
|
from: "vue-chrts",
|
|
50
50
|
imports: [...runtimeImports]
|
|
51
51
|
});
|
|
52
|
+
const geoImports = ["geoMercator"];
|
|
53
|
+
addImportsSources({
|
|
54
|
+
from: "vue-chrts",
|
|
55
|
+
imports: [...geoImports]
|
|
56
|
+
});
|
|
57
|
+
const topoJsonImports = [
|
|
58
|
+
"ChinaTopoJSON",
|
|
59
|
+
"FranceTopoJSON",
|
|
60
|
+
"GermanyTopoJSON",
|
|
61
|
+
"IndiaTopoJSON",
|
|
62
|
+
"UKTopoJSON",
|
|
63
|
+
"USATopoJSON",
|
|
64
|
+
"USCountiesTopoJSON",
|
|
65
|
+
"WorldMap110mAlphaTopoJSON",
|
|
66
|
+
"WorldMapSimplestTopoJSON",
|
|
67
|
+
"WorldMapTopoJSON"
|
|
68
|
+
];
|
|
69
|
+
addImportsSources({
|
|
70
|
+
from: "vue-chrts",
|
|
71
|
+
imports: [...topoJsonImports]
|
|
72
|
+
});
|
|
52
73
|
};
|
|
53
74
|
|
|
54
75
|
function resolvePackageDir(packageName, fromPackage) {
|
|
@@ -87,16 +108,17 @@ const module$1 = defineNuxtModule({
|
|
|
87
108
|
}
|
|
88
109
|
nuxt.hook("vite:extendConfig", (viteConfig, { isClient }) => {
|
|
89
110
|
if (!isClient) return;
|
|
90
|
-
|
|
91
|
-
|
|
111
|
+
const config = viteConfig;
|
|
112
|
+
config.optimizeDeps ??= {};
|
|
113
|
+
config.optimizeDeps.include ??= [];
|
|
92
114
|
const entries = [
|
|
93
115
|
"vue-chrts",
|
|
94
116
|
...unovisTsDir ? ["@unovis/ts"] : [],
|
|
95
117
|
...unovisVueDir ? ["@unovis/vue"] : []
|
|
96
118
|
];
|
|
97
119
|
for (const entry of entries) {
|
|
98
|
-
if (!
|
|
99
|
-
|
|
120
|
+
if (!config.optimizeDeps.include.includes(entry)) {
|
|
121
|
+
config.optimizeDeps.include.push(entry);
|
|
100
122
|
}
|
|
101
123
|
}
|
|
102
124
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-charts",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Nuxt module for vue-chrts",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "Nuxt module for vue-chrts (legacy Unovis engine)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -17,21 +17,23 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"vue-chrts": "2.
|
|
20
|
+
"vue-chrts": "2.2.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@nuxt/eslint": "^1.7.1",
|
|
24
|
-
"@nuxt/kit": "^4.3.0",
|
|
25
|
-
"commit-and-tag-version": "^12.5.1",
|
|
26
23
|
"@nuxt/devtools": "^3.1.1",
|
|
24
|
+
"@nuxt/eslint": "^1.7.1",
|
|
27
25
|
"@nuxt/eslint-config": "^1.13.0",
|
|
26
|
+
"@nuxt/kit": "^4.3.0",
|
|
28
27
|
"@nuxt/module-builder": "^1.0.2",
|
|
29
28
|
"@nuxt/schema": "^4.3.0",
|
|
30
29
|
"@nuxt/test-utils": "^3.23.0",
|
|
30
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
31
31
|
"@types/node": "latest",
|
|
32
32
|
"changelogen": "^0.6.2",
|
|
33
|
+
"commit-and-tag-version": "^12.5.1",
|
|
33
34
|
"eslint": "^9.39.2",
|
|
34
35
|
"nuxt": "^4.3.0",
|
|
36
|
+
"tailwindcss": "^4.2.2",
|
|
35
37
|
"typescript": "~5.9.3",
|
|
36
38
|
"vitest": "^4.0.18",
|
|
37
39
|
"vue-tsc": "^3.2.4"
|
|
@@ -42,6 +44,7 @@
|
|
|
42
44
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
43
45
|
"release": "pnpm run prepack && commit-and-tag-version && pnpm publish",
|
|
44
46
|
"lint": "eslint .",
|
|
47
|
+
"typecheck": "pnpm run test:types",
|
|
45
48
|
"test": "vitest run",
|
|
46
49
|
"test:watch": "vitest watch",
|
|
47
50
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|