@powerlines/plugin-rollup 0.7.54 → 0.7.56

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,14 +1,17 @@
1
1
  export { createRollupPlugin } from './unplugin.cjs';
2
2
  import 'esbuild';
3
- import '../index-IjXTdpL8.cjs';
3
+ import '../index-DwNsvBx_.cjs';
4
4
  import 'rollup';
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,14 +1,17 @@
1
1
  export { createRollupPlugin } from './unplugin.js';
2
2
  import 'esbuild';
3
- import '../index-IjXTdpL8.js';
3
+ import '../index-DwNsvBx_.js';
4
4
  import 'rollup';
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';
@@ -4,4 +4,4 @@
4
4
  *
5
5
  *****************************************/
6
6
 
7
- function m(t){return unplugin.createEsbuildPlugin(unplugin$1.createUnplugin(t,{skipResolve:true}))({})}chunkFBBMZ4NC_cjs.a(m,"createRollupPlugin");exports.createRollupPlugin=m;
7
+ function m(t){return unplugin.createEsbuildPlugin(unplugin$1.createUnplugin(t))({})}chunkFBBMZ4NC_cjs.a(m,"createRollupPlugin");exports.createRollupPlugin=m;
@@ -1,13 +1,16 @@
1
1
  import * as esbuild from 'esbuild';
2
- import { R as RollupPluginContext } from '../index-IjXTdpL8.cjs';
2
+ import { R as RollupPluginContext } from '../index-DwNsvBx_.cjs';
3
3
  import 'rollup';
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
  import * as esbuild from 'esbuild';
2
- import { R as RollupPluginContext } from '../index-IjXTdpL8.js';
2
+ import { R as RollupPluginContext } from '../index-DwNsvBx_.js';
3
3
  import 'rollup';
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 @@ import {a}from'../chunk-UCUR73HG.js';import {createUnplugin}from'powerlines/lib/
4
4
  *
5
5
  *****************************************/
6
6
 
7
- function g(t){return createEsbuildPlugin(createUnplugin(t,{skipResolve:true}))({})}a(g,"createRollupPlugin");export{g as createRollupPlugin};
7
+ function g(t){return createEsbuildPlugin(createUnplugin(t))({})}a(g,"createRollupPlugin");export{g as createRollupPlugin};
@@ -1,11 +1,14 @@
1
1
  import { RollupOptions, OutputOptions } from 'rollup';
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';
@@ -622,6 +625,22 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
622
625
  */
623
626
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
624
627
  type ProjectType = "application" | "library";
628
+ interface DeployConfig {
629
+ /**
630
+ * The deployment variant being used by the Powerlines engine.
631
+ *
632
+ * @example
633
+ * ```ts
634
+ * export default defineConfig({
635
+ * deploy: {
636
+ * variant: "cloudflare"
637
+ * }
638
+ * });
639
+ *
640
+ * ```
641
+ */
642
+ variant?: string;
643
+ }
625
644
  interface OutputConfig {
626
645
  /**
627
646
  * The path to output the final compiled files to
@@ -744,7 +763,7 @@ interface BaseConfig {
744
763
  * @remarks
745
764
  * If set to `false`, the deployment will be disabled.
746
765
  */
747
- deploy?: Record<string, any> | false;
766
+ deploy?: DeployConfig | false;
748
767
  /**
749
768
  * The path to the tsconfig file to be used by the compiler
750
769
  *
@@ -871,7 +890,7 @@ interface CommonUserConfig extends BaseConfig {
871
890
  */
872
891
  framework?: string;
873
892
  }
874
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
893
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
875
894
  /**
876
895
  * Configuration provided to build processes
877
896
  *
@@ -891,7 +910,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
891
910
  */
892
911
  override?: Partial<TBuildResolvedConfig>;
893
912
  };
894
- };
913
+ }
895
914
  type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
896
915
  type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
897
916
  /**
@@ -931,7 +950,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
931
950
  /**
932
951
  * The resolved options for the Powerlines project configuration.
933
952
  */
934
- 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">> & {
953
+ 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">> & {
935
954
  /**
936
955
  * The configuration options that were provided inline to the Powerlines CLI.
937
956
  */
@@ -1019,6 +1038,18 @@ interface InitContextOptions {
1019
1038
  */
1020
1039
  isHighPriority: boolean;
1021
1040
  }
1041
+ interface FetchOptions extends FetchRequestOptions {
1042
+ /**
1043
+ * An indicator specifying that the request should bypass any caching
1044
+ */
1045
+ skipCache?: boolean;
1046
+ }
1047
+ interface ParseOptions extends ParserOptions {
1048
+ /**
1049
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1050
+ */
1051
+ allowReturnOutsideFunction?: boolean;
1052
+ }
1022
1053
  /**
1023
1054
  * The unresolved Powerlines context.
1024
1055
  *
@@ -1035,6 +1066,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1035
1066
  */
1036
1067
  config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1037
1068
  projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1069
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1038
1070
  output: TResolvedConfig["output"];
1039
1071
  };
1040
1072
  /**
@@ -1154,6 +1186,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1154
1186
  * This instance is created lazily on first access.
1155
1187
  */
1156
1188
  program: Project;
1189
+ /**
1190
+ * A function to perform HTTP fetch requests
1191
+ *
1192
+ * @remarks
1193
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1194
+ *
1195
+ * @example
1196
+ * ```ts
1197
+ * const response = await context.fetch("https://api.example.com/data");
1198
+ * const data = await response.json();
1199
+ * ```
1200
+ *
1201
+ * @see https://github.com/nodejs/undici
1202
+ *
1203
+ * @param input - The URL to fetch.
1204
+ * @param options - The fetch request options.
1205
+ * @returns A promise that resolves to a response returned by the fetch.
1206
+ */
1207
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1208
+ /**
1209
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1210
+ *
1211
+ * @remarks
1212
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1213
+ *
1214
+ * @example
1215
+ * ```ts
1216
+ * const ast = context.parse("const x: number = 42;");
1217
+ * ```
1218
+ *
1219
+ * @see https://rollupjs.org/plugin-development/#this-parse
1220
+ * @see https://github.com/oxc/oxc
1221
+ *
1222
+ * @param code - The source code to parse.
1223
+ * @param options - The options to pass to the parser.
1224
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1225
+ */
1226
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1157
1227
  /**
1158
1228
  * A helper function to resolve modules using the Jiti resolver
1159
1229
  *
@@ -1170,7 +1240,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1170
1240
  * @param options - Additional resolution options.
1171
1241
  * @returns A promise that resolves to the resolved module path.
1172
1242
  */
1173
- resolveId: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
1243
+ resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
1174
1244
  /**
1175
1245
  * A helper function to load modules using the Jiti resolver
1176
1246
  *
@@ -1253,7 +1323,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1253
1323
  */
1254
1324
  logger: LogFn;
1255
1325
  }
1256
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1326
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1257
1327
 
1258
1328
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1259
1329
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
@@ -1,11 +1,14 @@
1
1
  import { RollupOptions, OutputOptions } from 'rollup';
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';
@@ -622,6 +625,22 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
622
625
  */
623
626
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
624
627
  type ProjectType = "application" | "library";
628
+ interface DeployConfig {
629
+ /**
630
+ * The deployment variant being used by the Powerlines engine.
631
+ *
632
+ * @example
633
+ * ```ts
634
+ * export default defineConfig({
635
+ * deploy: {
636
+ * variant: "cloudflare"
637
+ * }
638
+ * });
639
+ *
640
+ * ```
641
+ */
642
+ variant?: string;
643
+ }
625
644
  interface OutputConfig {
626
645
  /**
627
646
  * The path to output the final compiled files to
@@ -744,7 +763,7 @@ interface BaseConfig {
744
763
  * @remarks
745
764
  * If set to `false`, the deployment will be disabled.
746
765
  */
747
- deploy?: Record<string, any> | false;
766
+ deploy?: DeployConfig | false;
748
767
  /**
749
768
  * The path to the tsconfig file to be used by the compiler
750
769
  *
@@ -871,7 +890,7 @@ interface CommonUserConfig extends BaseConfig {
871
890
  */
872
891
  framework?: string;
873
892
  }
874
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
893
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
875
894
  /**
876
895
  * Configuration provided to build processes
877
896
  *
@@ -891,7 +910,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
891
910
  */
892
911
  override?: Partial<TBuildResolvedConfig>;
893
912
  };
894
- };
913
+ }
895
914
  type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
896
915
  type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
897
916
  /**
@@ -931,7 +950,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
931
950
  /**
932
951
  * The resolved options for the Powerlines project configuration.
933
952
  */
934
- 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">> & {
953
+ 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">> & {
935
954
  /**
936
955
  * The configuration options that were provided inline to the Powerlines CLI.
937
956
  */
@@ -1019,6 +1038,18 @@ interface InitContextOptions {
1019
1038
  */
1020
1039
  isHighPriority: boolean;
1021
1040
  }
1041
+ interface FetchOptions extends FetchRequestOptions {
1042
+ /**
1043
+ * An indicator specifying that the request should bypass any caching
1044
+ */
1045
+ skipCache?: boolean;
1046
+ }
1047
+ interface ParseOptions extends ParserOptions {
1048
+ /**
1049
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1050
+ */
1051
+ allowReturnOutsideFunction?: boolean;
1052
+ }
1022
1053
  /**
1023
1054
  * The unresolved Powerlines context.
1024
1055
  *
@@ -1035,6 +1066,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1035
1066
  */
1036
1067
  config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1037
1068
  projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1069
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1038
1070
  output: TResolvedConfig["output"];
1039
1071
  };
1040
1072
  /**
@@ -1154,6 +1186,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1154
1186
  * This instance is created lazily on first access.
1155
1187
  */
1156
1188
  program: Project;
1189
+ /**
1190
+ * A function to perform HTTP fetch requests
1191
+ *
1192
+ * @remarks
1193
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1194
+ *
1195
+ * @example
1196
+ * ```ts
1197
+ * const response = await context.fetch("https://api.example.com/data");
1198
+ * const data = await response.json();
1199
+ * ```
1200
+ *
1201
+ * @see https://github.com/nodejs/undici
1202
+ *
1203
+ * @param input - The URL to fetch.
1204
+ * @param options - The fetch request options.
1205
+ * @returns A promise that resolves to a response returned by the fetch.
1206
+ */
1207
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1208
+ /**
1209
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1210
+ *
1211
+ * @remarks
1212
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1213
+ *
1214
+ * @example
1215
+ * ```ts
1216
+ * const ast = context.parse("const x: number = 42;");
1217
+ * ```
1218
+ *
1219
+ * @see https://rollupjs.org/plugin-development/#this-parse
1220
+ * @see https://github.com/oxc/oxc
1221
+ *
1222
+ * @param code - The source code to parse.
1223
+ * @param options - The options to pass to the parser.
1224
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1225
+ */
1226
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1157
1227
  /**
1158
1228
  * A helper function to resolve modules using the Jiti resolver
1159
1229
  *
@@ -1170,7 +1240,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1170
1240
  * @param options - Additional resolution options.
1171
1241
  * @returns A promise that resolves to the resolved module path.
1172
1242
  */
1173
- resolveId: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
1243
+ resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
1174
1244
  /**
1175
1245
  * A helper function to load modules using the Jiti resolver
1176
1246
  *
@@ -1253,7 +1323,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1253
1323
  */
1254
1324
  logger: LogFn;
1255
1325
  }
1256
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1326
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1257
1327
 
1258
1328
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1259
1329
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
package/dist/index.d.cts CHANGED
@@ -1,14 +1,17 @@
1
- import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-IjXTdpL8.cjs';
2
- export { b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from './index-IjXTdpL8.cjs';
1
+ import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-DwNsvBx_.cjs';
2
+ export { b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from './index-DwNsvBx_.cjs';
3
3
  export { createRollupPlugin } from './helpers/unplugin.cjs';
4
4
  import 'rollup';
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 { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-IjXTdpL8.js';
2
- export { b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from './index-IjXTdpL8.js';
1
+ import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-DwNsvBx_.js';
2
+ export { b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from './index-DwNsvBx_.js';
3
3
  export { createRollupPlugin } from './helpers/unplugin.js';
4
4
  import 'rollup';
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 { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-IjXTdpL8.cjs';
1
+ export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-DwNsvBx_.cjs';
2
2
  import 'rollup';
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 { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-IjXTdpL8.js';
1
+ export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-DwNsvBx_.js';
2
2
  import 'rollup';
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 { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-IjXTdpL8.cjs';
1
+ export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-DwNsvBx_.cjs';
2
2
  import 'rollup';
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 { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-IjXTdpL8.js';
1
+ export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig, d as __ΩRollupPluginContext, _ as __ΩRollupPluginOptions, c as __ΩRollupPluginResolvedConfig } from '../index-DwNsvBx_.js';
2
2
  import 'rollup';
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-rollup",
3
- "version": "0.7.54",
3
+ "version": "0.7.56",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -127,22 +127,22 @@
127
127
  "files": ["dist/**/*"],
128
128
  "keywords": ["rollup", "powerlines", "storm-software", "powerlines-plugin"],
129
129
  "dependencies": {
130
- "@stryke/convert": "^0.6.8",
131
- "@stryke/fs": "^0.33.4",
132
- "@stryke/path": "^0.21.2",
133
- "@stryke/type-checks": "^0.3.18",
134
- "@stryke/types": "^0.10.8",
130
+ "@stryke/convert": "^0.6.12",
131
+ "@stryke/fs": "^0.33.8",
132
+ "@stryke/path": "^0.21.6",
133
+ "@stryke/type-checks": "^0.4.3",
134
+ "@stryke/types": "^0.10.12",
135
135
  "defu": "^6.1.4",
136
136
  "jiti": "^2.6.1",
137
- "powerlines": "^0.26.2",
137
+ "powerlines": "^0.28.0",
138
138
  "rollup": "^4.53.3",
139
- "unplugin": "^2.3.11"
139
+ "unplugin": "3.0.0-beta.3"
140
140
  },
141
141
  "devDependencies": {
142
- "@powerlines/nx": "^0.10.45",
143
- "@powerlines/plugin-plugin": "^0.11.53",
142
+ "@powerlines/nx": "^0.10.47",
143
+ "@powerlines/plugin-plugin": "^0.11.55",
144
144
  "@types/node": "^24.10.1"
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "87cac88dc83f4a3a723ff41d7db6388f235b75c5"
147
+ "gitHead": "3feaa815e117c46d827eee84c3521e54670abb9b"
148
148
  }