@powerlines/plugin-vite 0.14.5 → 0.14.6

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.
@@ -1,6 +1,6 @@
1
1
  export { createVitePlugin } from './unplugin.cjs';
2
2
  import 'vite';
3
- import '../index-BsPEyPTR.cjs';
3
+ import '../index-C9Wkx7zv.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/package-json';
6
6
  import 'jiti';
@@ -1,6 +1,6 @@
1
1
  export { createVitePlugin } from './unplugin.js';
2
2
  import 'vite';
3
- import '../index-BsPEyPTR.js';
3
+ import '../index-C9Wkx7zv.js';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/package-json';
6
6
  import 'jiti';
@@ -1,5 +1,5 @@
1
1
  import * as vite from 'vite';
2
- import { V as VitePluginContext } from '../index-BsPEyPTR.cjs';
2
+ import { V as VitePluginContext } from '../index-C9Wkx7zv.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
@@ -1,5 +1,5 @@
1
1
  import * as vite from 'vite';
2
- import { V as VitePluginContext } from '../index-BsPEyPTR.js';
2
+ import { V as VitePluginContext } from '../index-C9Wkx7zv.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
@@ -1110,7 +1110,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1110
1110
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1111
1111
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1112
1112
 
1113
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1113
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1114
1114
  /**
1115
1115
  * The order in which the plugin should be applied.
1116
1116
  */
@@ -1118,13 +1118,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1118
1118
  /**
1119
1119
  * A filter to determine when the hook should be called.
1120
1120
  */
1121
- filter?: TFilter;
1121
+ filter?: Pick<HookFilter, TFilter>;
1122
1122
  /**
1123
1123
  * The hook function to be called.
1124
1124
  */
1125
1125
  handler: THookFunction;
1126
1126
  }
1127
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1127
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1128
1128
  /**
1129
1129
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1130
1130
  */
@@ -1110,7 +1110,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1110
1110
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1111
1111
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1112
1112
 
1113
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1113
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1114
1114
  /**
1115
1115
  * The order in which the plugin should be applied.
1116
1116
  */
@@ -1118,13 +1118,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1118
1118
  /**
1119
1119
  * A filter to determine when the hook should be called.
1120
1120
  */
1121
- filter?: TFilter;
1121
+ filter?: Pick<HookFilter, TFilter>;
1122
1122
  /**
1123
1123
  * The hook function to be called.
1124
1124
  */
1125
1125
  handler: THookFunction;
1126
1126
  }
1127
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1127
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1128
1128
  /**
1129
1129
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1130
1130
  */
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-BsPEyPTR.cjs';
2
- export { b as VitePluginResolvedConfig } from './index-BsPEyPTR.cjs';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-C9Wkx7zv.cjs';
2
+ export { b as VitePluginResolvedConfig } from './index-C9Wkx7zv.cjs';
3
3
  export { createVitePlugin } from './helpers/unplugin.cjs';
4
4
  import 'vite';
5
5
  import '@stryke/env/get-env-paths';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-BsPEyPTR.js';
2
- export { b as VitePluginResolvedConfig } from './index-BsPEyPTR.js';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-C9Wkx7zv.js';
2
+ export { b as VitePluginResolvedConfig } from './index-C9Wkx7zv.js';
3
3
  export { createVitePlugin } from './helpers/unplugin.js';
4
4
  import 'vite';
5
5
  import '@stryke/env/get-env-paths';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-C9Wkx7zv.cjs';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-C9Wkx7zv.js';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-C9Wkx7zv.cjs';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-C9Wkx7zv.js';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-vite",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -138,15 +138,15 @@
138
138
  "@stryke/types": "^0.10.1",
139
139
  "defu": "^6.1.4",
140
140
  "jiti": "^2.6.1",
141
- "powerlines": "^0.19.1"
141
+ "powerlines": "^0.19.2"
142
142
  },
143
143
  "devDependencies": {
144
144
  "vite": "^7.2.2",
145
145
  "rolldown-vite": "^7.2.2",
146
- "@powerlines/nx": "^0.10.5",
147
- "@powerlines/plugin-plugin": "^0.11.13",
146
+ "@powerlines/nx": "^0.10.6",
147
+ "@powerlines/plugin-plugin": "^0.11.14",
148
148
  "@types/node": "^22.19.0"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "d25499feacd0143784f3cd426488909134bffab2"
151
+ "gitHead": "487dbe9d301ea6c2bba10d3dec1706b64a079452"
152
152
  }