nuxt-charts 2.1.4 → 2.1.5-test.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 +3 -3
- package/dist/module.mjs +27 -5
- package/package.json +22 -17
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "nuxt-charts",
|
|
2
|
+
"name": "nuxt-charts-v2",
|
|
3
3
|
"configKey": "nuxtCharts",
|
|
4
4
|
"compatibility": {
|
|
5
5
|
"nuxt": ">=3"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.1.
|
|
7
|
+
"version": "2.1.5-test.0",
|
|
8
8
|
"builder": {
|
|
9
9
|
"@nuxt/module-builder": "1.0.2",
|
|
10
|
-
"unbuild": "
|
|
10
|
+
"unbuild": "3.6.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
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) {
|
|
@@ -61,7 +82,7 @@ function resolvePackageDir(packageName, fromPackage) {
|
|
|
61
82
|
}
|
|
62
83
|
const module$1 = defineNuxtModule({
|
|
63
84
|
meta: {
|
|
64
|
-
name: "nuxt-charts",
|
|
85
|
+
name: "nuxt-charts-v2",
|
|
65
86
|
configKey: "nuxtCharts",
|
|
66
87
|
compatibility: {
|
|
67
88
|
nuxt: ">=3"
|
|
@@ -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.1.
|
|
4
|
-
"description": "Nuxt module for vue-chrts",
|
|
3
|
+
"version": "2.1.5-test.0",
|
|
4
|
+
"description": "Nuxt module for vue-chrts (legacy Unovis engine)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -16,34 +16,39 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"prepack": "nuxt-module-build build",
|
|
21
|
+
"dev": "nuxi dev playground",
|
|
22
|
+
"build": "nuxi build playground",
|
|
23
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
24
|
+
"release": "pnpm run prepack && commit-and-tag-version && pnpm publish",
|
|
25
|
+
"lint": "eslint .",
|
|
26
|
+
"typecheck": "pnpm run test:types",
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"test:watch": "vitest watch",
|
|
29
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
30
|
+
},
|
|
19
31
|
"dependencies": {
|
|
20
|
-
"vue-chrts": "2.
|
|
32
|
+
"vue-chrts": "2.2.0-test.0"
|
|
21
33
|
},
|
|
22
34
|
"devDependencies": {
|
|
23
|
-
"@nuxt/eslint": "^1.7.1",
|
|
24
|
-
"@nuxt/kit": "^4.3.0",
|
|
25
|
-
"commit-and-tag-version": "^12.5.1",
|
|
26
35
|
"@nuxt/devtools": "^3.1.1",
|
|
36
|
+
"@nuxt/eslint": "^1.7.1",
|
|
27
37
|
"@nuxt/eslint-config": "^1.13.0",
|
|
38
|
+
"@nuxt/kit": "^4.3.0",
|
|
28
39
|
"@nuxt/module-builder": "^1.0.2",
|
|
29
40
|
"@nuxt/schema": "^4.3.0",
|
|
30
41
|
"@nuxt/test-utils": "^3.23.0",
|
|
42
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
31
43
|
"@types/node": "latest",
|
|
32
44
|
"changelogen": "^0.6.2",
|
|
45
|
+
"commit-and-tag-version": "^12.5.1",
|
|
33
46
|
"eslint": "^9.39.2",
|
|
34
47
|
"nuxt": "^4.3.0",
|
|
48
|
+
"tailwindcss": "^4.2.2",
|
|
35
49
|
"typescript": "~5.9.3",
|
|
36
50
|
"vitest": "^4.0.18",
|
|
37
51
|
"vue-tsc": "^3.2.4"
|
|
38
52
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"build": "nuxi build playground",
|
|
42
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
43
|
-
"release": "pnpm run prepack && commit-and-tag-version && pnpm publish",
|
|
44
|
-
"lint": "eslint .",
|
|
45
|
-
"test": "vitest run",
|
|
46
|
-
"test:watch": "vitest watch",
|
|
47
|
-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
53
|
+
"packageManager": "pnpm@10.33.0"
|
|
54
|
+
}
|