nuxt-charts 2.1.0-beta.0.1 → 2.1.0-beta.1

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3"
6
6
  },
7
- "version": "2.1.0-beta.0.1",
7
+ "version": "2.1.0-beta.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -62,18 +62,11 @@ const module = defineNuxtModule({
62
62
  moduleDependencies: {},
63
63
  async setup(options, nuxt) {
64
64
  nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
65
- const isDev = nuxt.options.dev;
66
- if (isDev) {
67
- nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
68
- nuxt.options.vite.optimizeDeps.exclude = Array.from(
69
- /* @__PURE__ */ new Set(["vue-chrts", ...nuxt.options.vite.optimizeDeps.exclude])
70
- );
71
- } else {
72
- nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
73
- nuxt.options.vite.optimizeDeps.include = Array.from(
74
- /* @__PURE__ */ new Set(["vue-chrts", ...nuxt.options.vite.optimizeDeps.include])
75
- );
76
- }
65
+ nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
66
+ nuxt.options.vite.optimizeDeps.include = [
67
+ "vue-chrts",
68
+ ...nuxt.options.vite.optimizeDeps.include
69
+ ];
77
70
  nuxt.options.build.transpile = [
78
71
  "vue-chrts",
79
72
  ...nuxt.options.build.transpile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-charts",
3
- "version": "2.1.0-beta.0.1",
3
+ "version": "2.1.0-beta.1",
4
4
  "description": "Nuxt module for vue-chrts",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,17 +15,6 @@
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
- "scripts": {
19
- "prepack": "nuxt-module-build build",
20
- "dev": "nuxi dev playground",
21
- "build": "nuxi build playground",
22
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
23
- "release": "pnpm run prepack && commit-and-tag-version && pnpm publish",
24
- "lint": "eslint .",
25
- "test": "vitest run",
26
- "test:watch": "vitest watch",
27
- "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
28
- },
29
18
  "dependencies": {
30
19
  "@unovis/ts": "^1.6.2",
31
20
  "@unovis/vue": "^1.6.2",
@@ -45,5 +34,14 @@
45
34
  "typescript": "^5.8.3",
46
35
  "vitest": "^3.2.4"
47
36
  },
48
- "packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2"
49
- }
37
+ "scripts": {
38
+ "dev": "nuxi dev playground",
39
+ "build": "nuxi build playground",
40
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
41
+ "release": "pnpm run prepack && commit-and-tag-version && pnpm publish",
42
+ "lint": "eslint .",
43
+ "test": "vitest run",
44
+ "test:watch": "vitest watch",
45
+ "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
46
+ }
47
+ }