nuxt-charts 0.2.0-test.20 → 0.2.0-test.22

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,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3"
6
6
  },
7
- "version": "0.2.0-test.20",
7
+ "version": "0.2.0-test.22",
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.8.4",
9
+ "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "unknown"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -57,12 +57,10 @@ const module = defineNuxtModule({
57
57
  include: []
58
58
  },
59
59
  async setup(options, nuxt) {
60
- nuxt.options.vite = nuxt.options.vite || {};
61
60
  nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
62
61
  nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
63
- if (!nuxt.options.vite.optimizeDeps.include.includes("@unovis/ts")) {
64
- nuxt.options.vite.optimizeDeps.include.push("@unovis/ts");
65
- }
62
+ nuxt.options.vite.optimizeDeps.include = ["@unovis/ts", ...nuxt.options.vite.optimizeDeps.include];
63
+ nuxt.options.build.transpile = ["@unovis/ts", ...nuxt.options.build.transpile];
66
64
  const { resolve } = createResolver(import.meta.url);
67
65
  const runtimePath = resolve("./runtime/vue-chrts");
68
66
  resolveImports(options, runtimePath);
package/dist/types.d.mts CHANGED
@@ -1,7 +1,3 @@
1
- import type { NuxtModule } from '@nuxt/schema'
1
+ export { default } from './module.mjs'
2
2
 
3
- import type { default as Module } from './module.js'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module.js'
3
+ export { type ModuleOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "nuxt-charts",
3
- "version": "0.2.0-test.20",
3
+ "version": "0.2.0-test.22",
4
4
  "description": "Nuxt module for vue-chrts",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
8
- ".": {
9
- "import": "./dist/module.mjs",
10
- "require": "./dist/module.cjs"
11
- }
8
+ ".": "./dist/module.mjs"
12
9
  },
13
- "main": "./dist/module.cjs",
10
+ "main": "./dist/module.mjs",
14
11
  "module": "./dist/module.mjs",
15
12
  "files": [
16
13
  "dist"
@@ -27,22 +24,22 @@
27
24
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
28
25
  },
29
26
  "dependencies": {
30
- "@nuxt/kit": "^3.17.2",
31
- "@unovis/ts": "^1.4.6",
32
- "@unovis/vue": "^1.4.6",
33
- "vue-chrts": "0.2.0-beta.2"
27
+ "@nuxt/kit": "^3.17.7",
28
+ "@unovis/ts": "^1.5.2",
29
+ "@unovis/vue": "^1.5.2",
30
+ "vue-chrts": "0.1.12-beta.1"
34
31
  },
35
32
  "devDependencies": {
36
33
  "@nuxt/eslint": "1.3.0",
37
34
  "@nuxt/eslint-config": "^0.2.0",
38
- "@nuxt/module-builder": "^0.8.4",
39
- "@nuxt/schema": "^3.17.2",
40
- "@types/node": "^20.17.41",
41
- "changelogen": "^0.6.1",
35
+ "@nuxt/module-builder": "^1.0.1",
36
+ "@nuxt/schema": "^3.17.7",
37
+ "@types/node": "^20.19.9",
38
+ "changelogen": "^0.6.2",
42
39
  "commit-and-tag-version": "^12.5.1",
43
40
  "eslint": "^8.57.1",
44
- "nuxt": "^4.0.1",
41
+ "nuxt": "^3.17.7",
45
42
  "typescript": "^5.8.3",
46
- "vitest": "^3.1.3"
43
+ "vitest": "^3.2.4"
47
44
  }
48
45
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,28 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- interface ModuleOptions {
4
- /**
5
- * Prefix for component names
6
- * @default ''
7
- */
8
- prefix?: string;
9
- /**
10
- * Register global components
11
- * @default true
12
- */
13
- global?: boolean;
14
- /**
15
- * Use auto-imports (recommended)
16
- * @default true
17
- */
18
- autoImports?: boolean;
19
- /**
20
- * Components to include (empty array means all components)
21
- * @default []
22
- */
23
- include?: string[];
24
- }
25
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
26
-
27
- export { _default as default };
28
- export type { ModuleOptions };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'