@hybridly/vite 0.5.0 → 0.5.2

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
@@ -67,7 +67,8 @@ function generateTsConfig(options, config) {
67
67
  types: [
68
68
  "vite/client",
69
69
  "hybridly/client",
70
- ...options.icons !== false ? ["unplugin-icons/types/vue"] : []
70
+ ...options.icons !== false ? ["unplugin-icons/types/vue"] : [],
71
+ ...options.tsconfig?.types ?? []
71
72
  ],
72
73
  baseUrl: "..",
73
74
  paths: {
@@ -93,12 +94,14 @@ function generateTsConfig(options, config) {
93
94
  "./global-types.d.ts",
94
95
  "./routes.d.ts",
95
96
  "./components.d.ts",
96
- "./auto-imports.d.ts"
97
+ "./auto-imports.d.ts",
98
+ ...options.tsconfig?.include ?? []
97
99
  ],
98
100
  exclude: [
99
101
  "../public/**/*",
100
102
  "../node_modules",
101
- "../vendor"
103
+ "../vendor",
104
+ ...options.tsconfig?.exclude ?? []
102
105
  ]
103
106
  };
104
107
  write(JSON.stringify(tsconfig, null, 2), "tsconfig.json");
package/dist/index.d.cts CHANGED
@@ -68,6 +68,8 @@ interface ViteOptions {
68
68
  shims?: boolean;
69
69
  /** Enables or disable the kill-switch. */
70
70
  killSwitch?: boolean;
71
+ /** Extra `tsconfig.json` options. */
72
+ tsconfig?: TsConfigOptions;
71
73
  }
72
74
  interface LayoutOptions {
73
75
  /** Custom RegExp for parsing the template string. */
@@ -75,6 +77,14 @@ interface LayoutOptions {
75
77
  /** Name of the layout used when no argument is provided to `layout`. */
76
78
  defaultLayoutName?: string;
77
79
  }
80
+ interface TsConfigOptions {
81
+ /** Defines types to add to `tsconfig.json`. */
82
+ types?: string[];
83
+ /** Defines paths to include with `tsconfig.json`. */
84
+ include?: string[];
85
+ /** Defines paths to exclude with `tsconfig.json`. */
86
+ exclude?: string[];
87
+ }
78
88
 
79
89
  declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
80
90
 
package/dist/index.d.mts CHANGED
@@ -68,6 +68,8 @@ interface ViteOptions {
68
68
  shims?: boolean;
69
69
  /** Enables or disable the kill-switch. */
70
70
  killSwitch?: boolean;
71
+ /** Extra `tsconfig.json` options. */
72
+ tsconfig?: TsConfigOptions;
71
73
  }
72
74
  interface LayoutOptions {
73
75
  /** Custom RegExp for parsing the template string. */
@@ -75,6 +77,14 @@ interface LayoutOptions {
75
77
  /** Name of the layout used when no argument is provided to `layout`. */
76
78
  defaultLayoutName?: string;
77
79
  }
80
+ interface TsConfigOptions {
81
+ /** Defines types to add to `tsconfig.json`. */
82
+ types?: string[];
83
+ /** Defines paths to include with `tsconfig.json`. */
84
+ include?: string[];
85
+ /** Defines paths to exclude with `tsconfig.json`. */
86
+ exclude?: string[];
87
+ }
78
88
 
79
89
  declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
80
90
 
package/dist/index.d.ts CHANGED
@@ -68,6 +68,8 @@ interface ViteOptions {
68
68
  shims?: boolean;
69
69
  /** Enables or disable the kill-switch. */
70
70
  killSwitch?: boolean;
71
+ /** Extra `tsconfig.json` options. */
72
+ tsconfig?: TsConfigOptions;
71
73
  }
72
74
  interface LayoutOptions {
73
75
  /** Custom RegExp for parsing the template string. */
@@ -75,6 +77,14 @@ interface LayoutOptions {
75
77
  /** Name of the layout used when no argument is provided to `layout`. */
76
78
  defaultLayoutName?: string;
77
79
  }
80
+ interface TsConfigOptions {
81
+ /** Defines types to add to `tsconfig.json`. */
82
+ types?: string[];
83
+ /** Defines paths to include with `tsconfig.json`. */
84
+ include?: string[];
85
+ /** Defines paths to exclude with `tsconfig.json`. */
86
+ exclude?: string[];
87
+ }
78
88
 
79
89
  declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
80
90
 
package/dist/index.mjs CHANGED
@@ -50,7 +50,8 @@ function generateTsConfig(options, config) {
50
50
  types: [
51
51
  "vite/client",
52
52
  "hybridly/client",
53
- ...options.icons !== false ? ["unplugin-icons/types/vue"] : []
53
+ ...options.icons !== false ? ["unplugin-icons/types/vue"] : [],
54
+ ...options.tsconfig?.types ?? []
54
55
  ],
55
56
  baseUrl: "..",
56
57
  paths: {
@@ -76,12 +77,14 @@ function generateTsConfig(options, config) {
76
77
  "./global-types.d.ts",
77
78
  "./routes.d.ts",
78
79
  "./components.d.ts",
79
- "./auto-imports.d.ts"
80
+ "./auto-imports.d.ts",
81
+ ...options.tsconfig?.include ?? []
80
82
  ],
81
83
  exclude: [
82
84
  "../public/**/*",
83
85
  "../node_modules",
84
- "../vendor"
86
+ "../vendor",
87
+ ...options.tsconfig?.exclude ?? []
85
88
  ]
86
89
  };
87
90
  write(JSON.stringify(tsconfig, null, 2), "tsconfig.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridly/vite",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Vite plugin for Hybridly",
5
5
  "keywords": [
6
6
  "hybridly",
@@ -49,7 +49,7 @@
49
49
  "unplugin-icons": "^0.17.0",
50
50
  "unplugin-vue-components": "^0.25.2",
51
51
  "vite-plugin-run": "^0.5.1",
52
- "@hybridly/core": "0.5.0"
52
+ "@hybridly/core": "0.5.2"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@iconify/json": "^2.2.120",