@powerlines/plugin-vite 0.14.46 → 0.14.47

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,13 +1,16 @@
1
1
  export { createVitePlugin } from './unplugin.cjs';
2
2
  import 'vite';
3
- import '../index-D4bEjdQr.cjs';
3
+ import '../index-DN-Ha6HR.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
+ import '@stryke/http/fetch';
5
6
  import '@stryke/types/base';
6
7
  import '@stryke/types/package-json';
7
8
  import 'jiti';
8
9
  import 'magic-string';
10
+ import 'oxc-parser';
9
11
  import 'semver';
10
12
  import 'ts-morph';
13
+ import 'undici';
11
14
  import 'unplugin';
12
15
  import '@storm-software/build-tools/types';
13
16
  import '@storm-software/config-tools/types';
@@ -1,13 +1,16 @@
1
1
  export { createVitePlugin } from './unplugin.js';
2
2
  import 'vite';
3
- import '../index-D4bEjdQr.js';
3
+ import '../index-DN-Ha6HR.js';
4
4
  import '@stryke/env/get-env-paths';
5
+ import '@stryke/http/fetch';
5
6
  import '@stryke/types/base';
6
7
  import '@stryke/types/package-json';
7
8
  import 'jiti';
8
9
  import 'magic-string';
10
+ import 'oxc-parser';
9
11
  import 'semver';
10
12
  import 'ts-morph';
13
+ import 'undici';
11
14
  import 'unplugin';
12
15
  import '@storm-software/build-tools/types';
13
16
  import '@storm-software/config-tools/types';
@@ -4,4 +4,4 @@
4
4
  *
5
5
  *****************************************/
6
6
 
7
- function g(t){return unplugin.createVitePlugin(unplugin$1.createUnplugin(t,{skipResolve:true}))({})}chunkFBBMZ4NC_cjs.a(g,"createVitePlugin");exports.createVitePlugin=g;
7
+ function m(e){return unplugin.createVitePlugin(unplugin$1.createUnplugin(e))({})}chunkFBBMZ4NC_cjs.a(m,"createVitePlugin");exports.createVitePlugin=m;
@@ -1,12 +1,15 @@
1
1
  import * as vite from 'vite';
2
- import { V as VitePluginContext } from '../index-D4bEjdQr.cjs';
2
+ import { V as VitePluginContext } from '../index-DN-Ha6HR.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jiti';
7
8
  import 'magic-string';
9
+ import 'oxc-parser';
8
10
  import 'semver';
9
11
  import 'ts-morph';
12
+ import 'undici';
10
13
  import 'unplugin';
11
14
  import '@storm-software/build-tools/types';
12
15
  import '@storm-software/config-tools/types';
@@ -1,12 +1,15 @@
1
1
  import * as vite from 'vite';
2
- import { V as VitePluginContext } from '../index-D4bEjdQr.js';
2
+ import { V as VitePluginContext } from '../index-DN-Ha6HR.js';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jiti';
7
8
  import 'magic-string';
9
+ import 'oxc-parser';
8
10
  import 'semver';
9
11
  import 'ts-morph';
12
+ import 'undici';
10
13
  import 'unplugin';
11
14
  import '@storm-software/build-tools/types';
12
15
  import '@storm-software/config-tools/types';
@@ -4,4 +4,4 @@ import {a}from'../chunk-UCUR73HG.js';import {createUnplugin}from'powerlines/lib/
4
4
  *
5
5
  *****************************************/
6
6
 
7
- function m(t){return createVitePlugin(createUnplugin(t,{skipResolve:true}))({})}a(m,"createVitePlugin");export{m as createVitePlugin};
7
+ function p(e){return createVitePlugin(createUnplugin(e))({})}a(p,"createVitePlugin");export{p as createVitePlugin};
@@ -1,11 +1,14 @@
1
1
  import { UserConfig as UserConfig$1, PreviewOptions, ResolvedPreviewOptions } from 'vite';
2
2
  import { EnvPaths } from '@stryke/env/get-env-paths';
3
+ import { FetchRequestOptions } from '@stryke/http/fetch';
3
4
  import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
4
5
  import { PackageJson } from '@stryke/types/package-json';
5
6
  import { Jiti } from 'jiti';
6
7
  import { SourceMap } from 'magic-string';
8
+ import { ParserOptions, ParseResult } from 'oxc-parser';
7
9
  import { Range } from 'semver';
8
10
  import { Project } from 'ts-morph';
11
+ import { RequestInfo, Response } from 'undici';
9
12
  import { UnpluginMessage, ExternalIdResult, UnpluginContext, UnpluginBuildContext, TransformResult as TransformResult$1, HookFilter, UnpluginOptions } from 'unplugin';
10
13
  import { Format } from '@storm-software/build-tools/types';
11
14
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -618,6 +621,22 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
618
621
  */
619
622
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
620
623
  type ProjectType = "application" | "library";
624
+ interface DeployConfig {
625
+ /**
626
+ * The deployment variant being used by the Powerlines engine.
627
+ *
628
+ * @example
629
+ * ```ts
630
+ * export default defineConfig({
631
+ * deploy: {
632
+ * variant: "cloudflare"
633
+ * }
634
+ * });
635
+ *
636
+ * ```
637
+ */
638
+ variant?: string;
639
+ }
621
640
  interface OutputConfig {
622
641
  /**
623
642
  * The path to output the final compiled files to
@@ -740,7 +759,7 @@ interface BaseConfig {
740
759
  * @remarks
741
760
  * If set to `false`, the deployment will be disabled.
742
761
  */
743
- deploy?: Record<string, any> | false;
762
+ deploy?: DeployConfig | false;
744
763
  /**
745
764
  * The path to the tsconfig file to be used by the compiler
746
765
  *
@@ -867,7 +886,7 @@ interface CommonUserConfig extends BaseConfig {
867
886
  */
868
887
  framework?: string;
869
888
  }
870
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
889
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
871
890
  /**
872
891
  * Configuration provided to build processes
873
892
  *
@@ -887,7 +906,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
887
906
  */
888
907
  override?: Partial<TBuildResolvedConfig>;
889
908
  };
890
- };
909
+ }
891
910
  type ViteUserConfig = UserConfig<ViteBuildConfig, ViteResolvedBuildConfig, "vite">;
892
911
  type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
893
912
  /**
@@ -927,7 +946,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
927
946
  /**
928
947
  * The resolved options for the Powerlines project configuration.
929
948
  */
930
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
949
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
931
950
  /**
932
951
  * The configuration options that were provided inline to the Powerlines CLI.
933
952
  */
@@ -1015,6 +1034,18 @@ interface InitContextOptions {
1015
1034
  */
1016
1035
  isHighPriority: boolean;
1017
1036
  }
1037
+ interface FetchOptions extends FetchRequestOptions {
1038
+ /**
1039
+ * An indicator specifying that the request should bypass any caching
1040
+ */
1041
+ skipCache?: boolean;
1042
+ }
1043
+ interface ParseOptions extends ParserOptions {
1044
+ /**
1045
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1046
+ */
1047
+ allowReturnOutsideFunction?: boolean;
1048
+ }
1018
1049
  /**
1019
1050
  * The unresolved Powerlines context.
1020
1051
  *
@@ -1031,6 +1062,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1031
1062
  */
1032
1063
  config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1033
1064
  projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1065
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1034
1066
  output: TResolvedConfig["output"];
1035
1067
  };
1036
1068
  /**
@@ -1150,6 +1182,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1150
1182
  * This instance is created lazily on first access.
1151
1183
  */
1152
1184
  program: Project;
1185
+ /**
1186
+ * A function to perform HTTP fetch requests
1187
+ *
1188
+ * @remarks
1189
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1190
+ *
1191
+ * @example
1192
+ * ```ts
1193
+ * const response = await context.fetch("https://api.example.com/data");
1194
+ * const data = await response.json();
1195
+ * ```
1196
+ *
1197
+ * @see https://github.com/nodejs/undici
1198
+ *
1199
+ * @param input - The URL to fetch.
1200
+ * @param options - The fetch request options.
1201
+ * @returns A promise that resolves to a response returned by the fetch.
1202
+ */
1203
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1204
+ /**
1205
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1206
+ *
1207
+ * @remarks
1208
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1209
+ *
1210
+ * @example
1211
+ * ```ts
1212
+ * const ast = context.parse("const x: number = 42;");
1213
+ * ```
1214
+ *
1215
+ * @see https://rollupjs.org/plugin-development/#this-parse
1216
+ * @see https://github.com/oxc/oxc
1217
+ *
1218
+ * @param code - The source code to parse.
1219
+ * @param options - The options to pass to the parser.
1220
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1221
+ */
1222
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1153
1223
  /**
1154
1224
  * A helper function to resolve modules using the Jiti resolver
1155
1225
  *
@@ -1249,7 +1319,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1249
1319
  */
1250
1320
  logger: LogFn;
1251
1321
  }
1252
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1322
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1253
1323
 
1254
1324
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1255
1325
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
@@ -1,11 +1,14 @@
1
1
  import { UserConfig as UserConfig$1, PreviewOptions, ResolvedPreviewOptions } from 'vite';
2
2
  import { EnvPaths } from '@stryke/env/get-env-paths';
3
+ import { FetchRequestOptions } from '@stryke/http/fetch';
3
4
  import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
4
5
  import { PackageJson } from '@stryke/types/package-json';
5
6
  import { Jiti } from 'jiti';
6
7
  import { SourceMap } from 'magic-string';
8
+ import { ParserOptions, ParseResult } from 'oxc-parser';
7
9
  import { Range } from 'semver';
8
10
  import { Project } from 'ts-morph';
11
+ import { RequestInfo, Response } from 'undici';
9
12
  import { UnpluginMessage, ExternalIdResult, UnpluginContext, UnpluginBuildContext, TransformResult as TransformResult$1, HookFilter, UnpluginOptions } from 'unplugin';
10
13
  import { Format } from '@storm-software/build-tools/types';
11
14
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -618,6 +621,22 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
618
621
  */
619
622
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
620
623
  type ProjectType = "application" | "library";
624
+ interface DeployConfig {
625
+ /**
626
+ * The deployment variant being used by the Powerlines engine.
627
+ *
628
+ * @example
629
+ * ```ts
630
+ * export default defineConfig({
631
+ * deploy: {
632
+ * variant: "cloudflare"
633
+ * }
634
+ * });
635
+ *
636
+ * ```
637
+ */
638
+ variant?: string;
639
+ }
621
640
  interface OutputConfig {
622
641
  /**
623
642
  * The path to output the final compiled files to
@@ -740,7 +759,7 @@ interface BaseConfig {
740
759
  * @remarks
741
760
  * If set to `false`, the deployment will be disabled.
742
761
  */
743
- deploy?: Record<string, any> | false;
762
+ deploy?: DeployConfig | false;
744
763
  /**
745
764
  * The path to the tsconfig file to be used by the compiler
746
765
  *
@@ -867,7 +886,7 @@ interface CommonUserConfig extends BaseConfig {
867
886
  */
868
887
  framework?: string;
869
888
  }
870
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
889
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
871
890
  /**
872
891
  * Configuration provided to build processes
873
892
  *
@@ -887,7 +906,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
887
906
  */
888
907
  override?: Partial<TBuildResolvedConfig>;
889
908
  };
890
- };
909
+ }
891
910
  type ViteUserConfig = UserConfig<ViteBuildConfig, ViteResolvedBuildConfig, "vite">;
892
911
  type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
893
912
  /**
@@ -927,7 +946,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
927
946
  /**
928
947
  * The resolved options for the Powerlines project configuration.
929
948
  */
930
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
949
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
931
950
  /**
932
951
  * The configuration options that were provided inline to the Powerlines CLI.
933
952
  */
@@ -1015,6 +1034,18 @@ interface InitContextOptions {
1015
1034
  */
1016
1035
  isHighPriority: boolean;
1017
1036
  }
1037
+ interface FetchOptions extends FetchRequestOptions {
1038
+ /**
1039
+ * An indicator specifying that the request should bypass any caching
1040
+ */
1041
+ skipCache?: boolean;
1042
+ }
1043
+ interface ParseOptions extends ParserOptions {
1044
+ /**
1045
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1046
+ */
1047
+ allowReturnOutsideFunction?: boolean;
1048
+ }
1018
1049
  /**
1019
1050
  * The unresolved Powerlines context.
1020
1051
  *
@@ -1031,6 +1062,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1031
1062
  */
1032
1063
  config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1033
1064
  projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1065
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1034
1066
  output: TResolvedConfig["output"];
1035
1067
  };
1036
1068
  /**
@@ -1150,6 +1182,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1150
1182
  * This instance is created lazily on first access.
1151
1183
  */
1152
1184
  program: Project;
1185
+ /**
1186
+ * A function to perform HTTP fetch requests
1187
+ *
1188
+ * @remarks
1189
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1190
+ *
1191
+ * @example
1192
+ * ```ts
1193
+ * const response = await context.fetch("https://api.example.com/data");
1194
+ * const data = await response.json();
1195
+ * ```
1196
+ *
1197
+ * @see https://github.com/nodejs/undici
1198
+ *
1199
+ * @param input - The URL to fetch.
1200
+ * @param options - The fetch request options.
1201
+ * @returns A promise that resolves to a response returned by the fetch.
1202
+ */
1203
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1204
+ /**
1205
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1206
+ *
1207
+ * @remarks
1208
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1209
+ *
1210
+ * @example
1211
+ * ```ts
1212
+ * const ast = context.parse("const x: number = 42;");
1213
+ * ```
1214
+ *
1215
+ * @see https://rollupjs.org/plugin-development/#this-parse
1216
+ * @see https://github.com/oxc/oxc
1217
+ *
1218
+ * @param code - The source code to parse.
1219
+ * @param options - The options to pass to the parser.
1220
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1221
+ */
1222
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1153
1223
  /**
1154
1224
  * A helper function to resolve modules using the Jiti resolver
1155
1225
  *
@@ -1249,7 +1319,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1249
1319
  */
1250
1320
  logger: LogFn;
1251
1321
  }
1252
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1322
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1253
1323
 
1254
1324
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1255
1325
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
package/dist/index.d.cts CHANGED
@@ -1,14 +1,17 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-D4bEjdQr.cjs';
2
- export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-D4bEjdQr.cjs';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-DN-Ha6HR.cjs';
2
+ export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-DN-Ha6HR.cjs';
3
3
  export { createVitePlugin } from './helpers/unplugin.cjs';
4
4
  import 'vite';
5
5
  import '@stryke/env/get-env-paths';
6
+ import '@stryke/http/fetch';
6
7
  import '@stryke/types/base';
7
8
  import '@stryke/types/package-json';
8
9
  import 'jiti';
9
10
  import 'magic-string';
11
+ import 'oxc-parser';
10
12
  import 'semver';
11
13
  import 'ts-morph';
14
+ import 'undici';
12
15
  import 'unplugin';
13
16
  import '@storm-software/build-tools/types';
14
17
  import '@storm-software/config-tools/types';
package/dist/index.d.ts CHANGED
@@ -1,14 +1,17 @@
1
- import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-D4bEjdQr.js';
2
- export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-D4bEjdQr.js';
1
+ import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-DN-Ha6HR.js';
2
+ export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-DN-Ha6HR.js';
3
3
  export { createVitePlugin } from './helpers/unplugin.js';
4
4
  import 'vite';
5
5
  import '@stryke/env/get-env-paths';
6
+ import '@stryke/http/fetch';
6
7
  import '@stryke/types/base';
7
8
  import '@stryke/types/package-json';
8
9
  import 'jiti';
9
10
  import 'magic-string';
11
+ import 'oxc-parser';
10
12
  import 'semver';
11
13
  import 'ts-morph';
14
+ import 'undici';
12
15
  import 'unplugin';
13
16
  import '@storm-software/build-tools/types';
14
17
  import '@storm-software/config-tools/types';
@@ -1,12 +1,15 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-D4bEjdQr.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-DN-Ha6HR.cjs';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jiti';
7
8
  import 'magic-string';
9
+ import 'oxc-parser';
8
10
  import 'semver';
9
11
  import 'ts-morph';
12
+ import 'undici';
10
13
  import 'unplugin';
11
14
  import '@storm-software/build-tools/types';
12
15
  import '@storm-software/config-tools/types';
@@ -1,12 +1,15 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-D4bEjdQr.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-DN-Ha6HR.js';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jiti';
7
8
  import 'magic-string';
9
+ import 'oxc-parser';
8
10
  import 'semver';
9
11
  import 'ts-morph';
12
+ import 'undici';
10
13
  import 'unplugin';
11
14
  import '@storm-software/build-tools/types';
12
15
  import '@storm-software/config-tools/types';
@@ -1,12 +1,15 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-D4bEjdQr.cjs';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-DN-Ha6HR.cjs';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jiti';
7
8
  import 'magic-string';
9
+ import 'oxc-parser';
8
10
  import 'semver';
9
11
  import 'ts-morph';
12
+ import 'undici';
10
13
  import 'unplugin';
11
14
  import '@storm-software/build-tools/types';
12
15
  import '@storm-software/config-tools/types';
@@ -1,12 +1,15 @@
1
- export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-D4bEjdQr.js';
1
+ export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-DN-Ha6HR.js';
2
2
  import 'vite';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jiti';
7
8
  import 'magic-string';
9
+ import 'oxc-parser';
8
10
  import 'semver';
9
11
  import 'ts-morph';
12
+ import 'undici';
10
13
  import 'unplugin';
11
14
  import '@storm-software/build-tools/types';
12
15
  import '@storm-software/config-tools/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-vite",
3
- "version": "0.14.46",
3
+ "version": "0.14.47",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -132,21 +132,21 @@
132
132
  "rolldown-vite": { "optional": true }
133
133
  },
134
134
  "dependencies": {
135
- "@stryke/fs": "^0.33.4",
136
- "@stryke/path": "^0.21.2",
137
- "@stryke/type-checks": "^0.3.18",
138
- "@stryke/types": "^0.10.8",
135
+ "@stryke/fs": "^0.33.8",
136
+ "@stryke/path": "^0.21.6",
137
+ "@stryke/type-checks": "^0.4.3",
138
+ "@stryke/types": "^0.10.12",
139
139
  "defu": "^6.1.4",
140
140
  "jiti": "^2.6.1",
141
- "powerlines": "^0.27.0"
141
+ "powerlines": "^0.28.0"
142
142
  },
143
143
  "devDependencies": {
144
144
  "vite": "^7.2.4",
145
145
  "rolldown-vite": "^7.2.8",
146
- "@powerlines/nx": "^0.10.46",
147
- "@powerlines/plugin-plugin": "^0.11.54",
146
+ "@powerlines/nx": "^0.10.47",
147
+ "@powerlines/plugin-plugin": "^0.11.55",
148
148
  "@types/node": "^24.10.1"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "bbbbe4fd720918401d58e4553d93ff2018d78e6a"
151
+ "gitHead": "3feaa815e117c46d827eee84c3521e54670abb9b"
152
152
  }