@powerlines/plugin-vite 0.14.38 → 0.14.40

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-BiNFj92y.cjs';
3
+ import '../index-agaQCb7e.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/base';
6
6
  import '@stryke/types/package-json';
@@ -1,6 +1,6 @@
1
1
  export { createVitePlugin } from './unplugin.js';
2
2
  import 'vite';
3
- import '../index-BiNFj92y.js';
3
+ import '../index-agaQCb7e.js';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/base';
6
6
  import '@stryke/types/package-json';
@@ -1,5 +1,5 @@
1
1
  import * as vite from 'vite';
2
- import { V as VitePluginContext } from '../index-BiNFj92y.cjs';
2
+ import { V as VitePluginContext } from '../index-agaQCb7e.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/base';
5
5
  import '@stryke/types/package-json';
@@ -1,5 +1,5 @@
1
1
  import * as vite from 'vite';
2
- import { V as VitePluginContext } from '../index-BiNFj92y.js';
2
+ import { V as VitePluginContext } from '../index-agaQCb7e.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/base';
5
5
  import '@stryke/types/package-json';
@@ -1438,7 +1438,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
1438
1438
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1439
1439
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1440
1440
  };
1441
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1441
+ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1442
1442
  /**
1443
1443
  * The name of the plugin, for use in deduplication, error messages and logs.
1444
1444
  */
@@ -1469,7 +1469,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1469
1469
  * @param other - The other plugin to compare against.
1470
1470
  * @returns `true` if the two plugins are the same, `false` otherwise.
1471
1471
  */
1472
- dedupe?: false | ((other: Plugin<any>) => boolean);
1472
+ dedupe?: false | ((other: Plugin<TContext>) => boolean);
1473
1473
  /**
1474
1474
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1475
1475
  */
@@ -1480,7 +1480,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1480
1480
  * @param environment - The environment to check.
1481
1481
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1482
1482
  */
1483
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<any>>;
1483
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
1484
1484
  }
1485
1485
 
1486
1486
  type VitePluginOptions = Partial<ViteBuildConfig> & {
@@ -1438,7 +1438,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
1438
1438
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1439
1439
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1440
1440
  };
1441
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1441
+ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1442
1442
  /**
1443
1443
  * The name of the plugin, for use in deduplication, error messages and logs.
1444
1444
  */
@@ -1469,7 +1469,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1469
1469
  * @param other - The other plugin to compare against.
1470
1470
  * @returns `true` if the two plugins are the same, `false` otherwise.
1471
1471
  */
1472
- dedupe?: false | ((other: Plugin<any>) => boolean);
1472
+ dedupe?: false | ((other: Plugin<TContext>) => boolean);
1473
1473
  /**
1474
1474
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1475
1475
  */
@@ -1480,7 +1480,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1480
1480
  * @param environment - The environment to check.
1481
1481
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1482
1482
  */
1483
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<any>>;
1483
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
1484
1484
  }
1485
1485
 
1486
1486
  type VitePluginOptions = Partial<ViteBuildConfig> & {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-BiNFj92y.cjs';
2
- export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-BiNFj92y.cjs';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-agaQCb7e.cjs';
2
+ export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-agaQCb7e.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-BiNFj92y.js';
2
- export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-BiNFj92y.js';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-agaQCb7e.js';
2
+ export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-agaQCb7e.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, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-BiNFj92y.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-agaQCb7e.cjs';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/base';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-BiNFj92y.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-agaQCb7e.js';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/base';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-BiNFj92y.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-agaQCb7e.cjs';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/base';
@@ -1,4 +1,4 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-BiNFj92y.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-agaQCb7e.js';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/base';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-vite",
3
- "version": "0.14.38",
3
+ "version": "0.14.40",
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.8",
139
139
  "defu": "^6.1.4",
140
140
  "jiti": "^2.6.1",
141
- "powerlines": "^0.25.0"
141
+ "powerlines": "^0.25.2"
142
142
  },
143
143
  "devDependencies": {
144
144
  "vite": "^7.2.4",
145
- "rolldown-vite": "^7.2.7",
146
- "@powerlines/nx": "^0.10.38",
147
- "@powerlines/plugin-plugin": "^0.11.46",
145
+ "rolldown-vite": "^7.2.8",
146
+ "@powerlines/nx": "^0.10.40",
147
+ "@powerlines/plugin-plugin": "^0.11.48",
148
148
  "@types/node": "^24.10.1"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "acb1d0727c31f10519b7a59d73d245e6949414d3"
151
+ "gitHead": "e5c7481779e32bd9810613c299e775bc033c9eac"
152
152
  }