@hybridly/vite 0.7.18 → 0.8.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/index.cjs CHANGED
@@ -686,7 +686,7 @@ const HybridlyImports = {
686
686
  };
687
687
  function getAutoImportsOptions(options, config) {
688
688
  if (options.autoImports === false) {
689
- return;
689
+ return {};
690
690
  }
691
691
  const presets = ["@vueuse/core", "vue-i18n"];
692
692
  const custom = {
@@ -815,7 +815,7 @@ function getIconsOptions(options, config) {
815
815
 
816
816
  function getVueOptions(options) {
817
817
  if (options.vue === false) {
818
- return;
818
+ return {};
819
819
  }
820
820
  return utils.merge(
821
821
  {
package/dist/index.d.cts CHANGED
@@ -1,10 +1,11 @@
1
- import { DynamicConfiguration } from '@hybridly/core';
1
+ import * as vite from 'vite';
2
2
  import { Plugin } from 'vite';
3
+ import { DynamicConfiguration } from '@hybridly/core';
3
4
  import { ImportsMap, PresetName } from 'unplugin-auto-import/types';
4
5
  import autoimport from 'unplugin-auto-import/vite';
5
6
  import icons from 'unplugin-icons/vite';
6
7
  import { Runner } from 'vite-plugin-run';
7
- import vue from '@vitejs/plugin-vue';
8
+ import { Options as Options$1 } from '@vitejs/plugin-vue';
8
9
  import vueComponents from 'unplugin-vue-components/vite';
9
10
  import { ComponentResolver } from 'unplugin-vue-components/types';
10
11
 
@@ -22,8 +23,6 @@ type CustomIconOptions = string[] | {
22
23
  collections?: string[];
23
24
  };
24
25
 
25
- type VueOptions = Parameters<typeof vue>[0];
26
-
27
26
  type VueComponentsOptions = Parameters<typeof vueComponents>[0] & {
28
27
  /** Name of the Link component. */
29
28
  linkName?: string;
@@ -44,7 +43,7 @@ interface ViteOptions {
44
43
  /** Options for the layout plugin. */
45
44
  layout?: LayoutOptions;
46
45
  /** Options for `@vitejs/plugin-vue`. */
47
- vue?: false | VueOptions;
46
+ vue?: false | Options$1;
48
47
  /** Options for `vite-plugin-run`. Set to `false` to disable. */
49
48
  run?: false | Runner[];
50
49
  /** Options for `unplugin-auto-import`. Set to `false` to disable. */
@@ -88,6 +87,8 @@ interface TsConfigOptions {
88
87
  declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
89
88
 
90
89
  type Options = ViteOptions | ((config: DynamicConfiguration) => (ViteOptions | Promise<ViteOptions>));
91
- declare function plugin(options?: Options): Promise<any[]>;
90
+ declare function plugin(options?: Options): Promise<(false | vite.Plugin<any> | vite.Plugin<any>[])[]>;
92
91
 
93
- export { HybridlyImports, HybridlyLinkResolver, HybridlyResolver, type ViteOptions as Options, ProvidedComponentListResolver, plugin as default, _default as layout };
92
+ // @ts-ignore
93
+ export = plugin;
94
+ export { HybridlyImports, HybridlyLinkResolver, HybridlyResolver, type ViteOptions as Options, ProvidedComponentListResolver, _default as layout };
package/dist/index.d.mts CHANGED
@@ -1,10 +1,11 @@
1
- import { DynamicConfiguration } from '@hybridly/core';
1
+ import * as vite from 'vite';
2
2
  import { Plugin } from 'vite';
3
+ import { DynamicConfiguration } from '@hybridly/core';
3
4
  import { ImportsMap, PresetName } from 'unplugin-auto-import/types';
4
5
  import autoimport from 'unplugin-auto-import/vite';
5
6
  import icons from 'unplugin-icons/vite';
6
7
  import { Runner } from 'vite-plugin-run';
7
- import vue from '@vitejs/plugin-vue';
8
+ import { Options as Options$1 } from '@vitejs/plugin-vue';
8
9
  import vueComponents from 'unplugin-vue-components/vite';
9
10
  import { ComponentResolver } from 'unplugin-vue-components/types';
10
11
 
@@ -22,8 +23,6 @@ type CustomIconOptions = string[] | {
22
23
  collections?: string[];
23
24
  };
24
25
 
25
- type VueOptions = Parameters<typeof vue>[0];
26
-
27
26
  type VueComponentsOptions = Parameters<typeof vueComponents>[0] & {
28
27
  /** Name of the Link component. */
29
28
  linkName?: string;
@@ -44,7 +43,7 @@ interface ViteOptions {
44
43
  /** Options for the layout plugin. */
45
44
  layout?: LayoutOptions;
46
45
  /** Options for `@vitejs/plugin-vue`. */
47
- vue?: false | VueOptions;
46
+ vue?: false | Options$1;
48
47
  /** Options for `vite-plugin-run`. Set to `false` to disable. */
49
48
  run?: false | Runner[];
50
49
  /** Options for `unplugin-auto-import`. Set to `false` to disable. */
@@ -88,6 +87,6 @@ interface TsConfigOptions {
88
87
  declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
89
88
 
90
89
  type Options = ViteOptions | ((config: DynamicConfiguration) => (ViteOptions | Promise<ViteOptions>));
91
- declare function plugin(options?: Options): Promise<any[]>;
90
+ declare function plugin(options?: Options): Promise<(false | vite.Plugin<any> | vite.Plugin<any>[])[]>;
92
91
 
93
92
  export { HybridlyImports, HybridlyLinkResolver, HybridlyResolver, type ViteOptions as Options, ProvidedComponentListResolver, plugin as default, _default as layout };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { DynamicConfiguration } from '@hybridly/core';
1
+ import * as vite from 'vite';
2
2
  import { Plugin } from 'vite';
3
+ import { DynamicConfiguration } from '@hybridly/core';
3
4
  import { ImportsMap, PresetName } from 'unplugin-auto-import/types';
4
5
  import autoimport from 'unplugin-auto-import/vite';
5
6
  import icons from 'unplugin-icons/vite';
6
7
  import { Runner } from 'vite-plugin-run';
7
- import vue from '@vitejs/plugin-vue';
8
+ import { Options as Options$1 } from '@vitejs/plugin-vue';
8
9
  import vueComponents from 'unplugin-vue-components/vite';
9
10
  import { ComponentResolver } from 'unplugin-vue-components/types';
10
11
 
@@ -22,8 +23,6 @@ type CustomIconOptions = string[] | {
22
23
  collections?: string[];
23
24
  };
24
25
 
25
- type VueOptions = Parameters<typeof vue>[0];
26
-
27
26
  type VueComponentsOptions = Parameters<typeof vueComponents>[0] & {
28
27
  /** Name of the Link component. */
29
28
  linkName?: string;
@@ -44,7 +43,7 @@ interface ViteOptions {
44
43
  /** Options for the layout plugin. */
45
44
  layout?: LayoutOptions;
46
45
  /** Options for `@vitejs/plugin-vue`. */
47
- vue?: false | VueOptions;
46
+ vue?: false | Options$1;
48
47
  /** Options for `vite-plugin-run`. Set to `false` to disable. */
49
48
  run?: false | Runner[];
50
49
  /** Options for `unplugin-auto-import`. Set to `false` to disable. */
@@ -88,6 +87,8 @@ interface TsConfigOptions {
88
87
  declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
89
88
 
90
89
  type Options = ViteOptions | ((config: DynamicConfiguration) => (ViteOptions | Promise<ViteOptions>));
91
- declare function plugin(options?: Options): Promise<any[]>;
90
+ declare function plugin(options?: Options): Promise<(false | vite.Plugin<any> | vite.Plugin<any>[])[]>;
92
91
 
93
- export { HybridlyImports, HybridlyLinkResolver, HybridlyResolver, type ViteOptions as Options, ProvidedComponentListResolver, plugin as default, _default as layout };
92
+ // @ts-ignore
93
+ export = plugin;
94
+ export { HybridlyImports, HybridlyLinkResolver, HybridlyResolver, type ViteOptions as Options, ProvidedComponentListResolver, _default as layout };
package/dist/index.mjs CHANGED
@@ -667,7 +667,7 @@ const HybridlyImports = {
667
667
  };
668
668
  function getAutoImportsOptions(options, config) {
669
669
  if (options.autoImports === false) {
670
- return;
670
+ return {};
671
671
  }
672
672
  const presets = ["@vueuse/core", "vue-i18n"];
673
673
  const custom = {
@@ -796,7 +796,7 @@ function getIconsOptions(options, config) {
796
796
 
797
797
  function getVueOptions(options) {
798
798
  if (options.vue === false) {
799
- return;
799
+ return {};
800
800
  }
801
801
  return merge(
802
802
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridly/vite",
3
3
  "type": "module",
4
- "version": "0.7.18",
4
+ "version": "0.8.0",
5
5
  "description": "Vite plugin for Hybridly",
6
6
  "author": "Enzo Innocenzi <enzo@innocenzi.dev>",
7
7
  "license": "MIT",
@@ -41,26 +41,26 @@
41
41
  "dist"
42
42
  ],
43
43
  "peerDependencies": {
44
- "vite": "^6.0.0",
44
+ "vite": "^6.3.5",
45
45
  "vue": "^3.2.45"
46
46
  },
47
47
  "dependencies": {
48
- "@vitejs/plugin-vue": "^5.1.4",
49
- "fast-glob": "^3.3.2",
50
- "local-pkg": "^0.5.0",
51
- "magic-string": "^0.30.12",
48
+ "@vitejs/plugin-vue": "^5.2.4",
49
+ "fast-glob": "^3.3.3",
50
+ "local-pkg": "^1.1.1",
51
+ "magic-string": "^0.30.17",
52
52
  "picocolors": "^1.1.1",
53
- "unplugin-auto-import": "^0.18.3",
54
- "unplugin-icons": "^0.19.3",
55
- "unplugin-vue-components": "^0.27.4",
56
- "vite-plugin-run": "^0.6.0",
57
- "@hybridly/core": "0.7.18"
53
+ "unplugin-auto-import": "^19.3.0",
54
+ "unplugin-icons": "^22.1.0",
55
+ "unplugin-vue-components": "^28.7.0",
56
+ "vite-plugin-run": "^0.6.1",
57
+ "@hybridly/core": "0.8.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@iconify/json": "^2.2.263",
61
- "rollup": "^4.24.0",
62
- "vite": "^6.0.0",
63
- "vue": "^3.5.12"
60
+ "@iconify/json": "^2.2.348",
61
+ "rollup": "^4.43.0",
62
+ "vite": "^6.3.5",
63
+ "vue": "^3.5.16"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "unbuild",