@powerlines/plugin-vite 0.14.2 → 0.14.4

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-DSjwYh04.cjs';
3
+ import '../index-BsPEyPTR.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-DSjwYh04.js';
3
+ import '../index-BsPEyPTR.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-DSjwYh04.cjs';
2
+ import { V as VitePluginContext } from '../index-BsPEyPTR.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-DSjwYh04.js';
2
+ import { V as VitePluginContext } from '../index-BsPEyPTR.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
@@ -4,7 +4,7 @@ import { PackageJson } from '@stryke/types/package-json';
4
4
  import { Jiti } from 'jiti';
5
5
  import { ParserOptions, ParseResult } from 'oxc-parser';
6
6
  import { Range } from 'semver';
7
- import { UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
7
+ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
8
8
  import { Format } from '@storm-software/build-tools/types';
9
9
  import { LogLevelLabel } from '@storm-software/config-tools/types';
10
10
  import { StormWorkspaceConfig } from '@storm-software/config/types';
@@ -940,6 +940,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
940
940
  * A logging function for the Powerlines engine
941
941
  */
942
942
  log: LogFn;
943
+ /**
944
+ * A logging function for fatal messages
945
+ */
946
+ fatal: (message: string | UnpluginMessage) => void;
947
+ /**
948
+ * A logging function for error messages
949
+ */
950
+ error: (message: string | UnpluginMessage) => void;
951
+ /**
952
+ * A logging function for warning messages
953
+ */
954
+ warn: (message: string | UnpluginMessage) => void;
955
+ /**
956
+ * A logging function for informational messages
957
+ */
958
+ info: (message: string | UnpluginMessage) => void;
959
+ /**
960
+ * A logging function for debug messages
961
+ */
962
+ debug: (message: string | UnpluginMessage) => void;
963
+ /**
964
+ * A logging function for trace messages
965
+ */
966
+ trace: (message: string | UnpluginMessage) => void;
943
967
  /**
944
968
  * The metadata information
945
969
  */
@@ -4,7 +4,7 @@ import { PackageJson } from '@stryke/types/package-json';
4
4
  import { Jiti } from 'jiti';
5
5
  import { ParserOptions, ParseResult } from 'oxc-parser';
6
6
  import { Range } from 'semver';
7
- import { UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
7
+ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
8
8
  import { Format } from '@storm-software/build-tools/types';
9
9
  import { LogLevelLabel } from '@storm-software/config-tools/types';
10
10
  import { StormWorkspaceConfig } from '@storm-software/config/types';
@@ -940,6 +940,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
940
940
  * A logging function for the Powerlines engine
941
941
  */
942
942
  log: LogFn;
943
+ /**
944
+ * A logging function for fatal messages
945
+ */
946
+ fatal: (message: string | UnpluginMessage) => void;
947
+ /**
948
+ * A logging function for error messages
949
+ */
950
+ error: (message: string | UnpluginMessage) => void;
951
+ /**
952
+ * A logging function for warning messages
953
+ */
954
+ warn: (message: string | UnpluginMessage) => void;
955
+ /**
956
+ * A logging function for informational messages
957
+ */
958
+ info: (message: string | UnpluginMessage) => void;
959
+ /**
960
+ * A logging function for debug messages
961
+ */
962
+ debug: (message: string | UnpluginMessage) => void;
963
+ /**
964
+ * A logging function for trace messages
965
+ */
966
+ trace: (message: string | UnpluginMessage) => void;
943
967
  /**
944
968
  * The metadata information
945
969
  */
@@ -1,5 +1,5 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from '../index-DSjwYh04.cjs';
2
- export { b as VitePluginResolvedConfig } from '../index-DSjwYh04.cjs';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from '../index-BsPEyPTR.cjs';
2
+ export { b as VitePluginResolvedConfig } from '../index-BsPEyPTR.cjs';
3
3
  export { createVitePlugin } from '../helpers/unplugin.cjs';
4
4
  import 'vite';
5
5
  import '@stryke/env/get-env-paths';
@@ -1,5 +1,5 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from '../index-DSjwYh04.js';
2
- export { b as VitePluginResolvedConfig } from '../index-DSjwYh04.js';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from '../index-BsPEyPTR.js';
2
+ export { b as VitePluginResolvedConfig } from '../index-BsPEyPTR.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-DSjwYh04.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.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-DSjwYh04.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.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-DSjwYh04.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.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-DSjwYh04.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-BsPEyPTR.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.2",
3
+ "version": "0.14.4",
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.0",
139
139
  "defu": "^6.1.4",
140
140
  "jiti": "^2.6.1",
141
- "powerlines": "^0.17.0"
141
+ "powerlines": "^0.19.0"
142
142
  },
143
143
  "devDependencies": {
144
- "vite": "^7.2.1",
145
- "rolldown-vite": "^7.2.1",
146
- "@powerlines/nx": "^0.10.2",
147
- "@powerlines/plugin-plugin": "^0.11.10",
144
+ "vite": "^7.2.2",
145
+ "rolldown-vite": "^7.2.2",
146
+ "@powerlines/nx": "^0.10.4",
147
+ "@powerlines/plugin-plugin": "^0.11.12",
148
148
  "@types/node": "^22.19.0"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "27064ac269a2d34c5b9371105cdd58bf6ebe85b4"
151
+ "gitHead": "8ee43c2a7eebce6b221aa572553f4296c87fce76"
152
152
  }