powerlines 0.27.0 → 0.28.0
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.
- package/dist/{api-CHbGX3BG.d.ts → api-BgDfE1J3.d.ts} +2 -2
- package/dist/{api-DGMQopJ5.d.cts → api-D-3EvHyy.d.cts} +2 -2
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +5 -2
- package/dist/api.d.ts +5 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +4 -1
- package/dist/astro.d.ts +4 -1
- package/dist/astro.js +3 -3
- package/dist/{chunk-PYID3NKT.js → chunk-5CV2NNIR.js} +6 -5
- package/dist/chunk-C3APS65S.cjs +12 -0
- package/dist/{chunk-HG7JY6AQ.cjs → chunk-DD4XJNKQ.cjs} +7 -6
- package/dist/{chunk-RCYXXBJ3.cjs → chunk-ERZWC77E.cjs} +272 -117
- package/dist/{chunk-KW66GUWJ.cjs → chunk-FJ67PPIW.cjs} +4 -4
- package/dist/{chunk-YULFP33E.cjs → chunk-MRHWIMY2.cjs} +2 -2
- package/dist/{chunk-CSJMUAPJ.js → chunk-NHZBSVDJ.js} +3 -3
- package/dist/{chunk-2DWFEC7G.js → chunk-QRE6JMCD.js} +271 -116
- package/dist/{chunk-P647W2BA.js → chunk-UMZ2WNMA.js} +2 -2
- package/dist/{chunk-ISPXQBOL.js → chunk-VJ26HHRE.js} +3 -3
- package/dist/{chunk-CF7B5HOG.cjs → chunk-XMYY4XUM.cjs} +4 -4
- package/dist/{chunk-BH4JSKPK.js → chunk-Z3HPP53Q.js} +3 -3
- package/dist/{context-BjOICcQB.d.cts → context-CDZY3RHt.d.cts} +80 -21
- package/dist/{context-BqTYt9FC.d.ts → context-CcPf9RC_.d.ts} +80 -21
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +4 -1
- package/dist/esbuild.d.ts +4 -1
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +4 -1
- package/dist/farm.d.ts +4 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +10 -7
- package/dist/lib/{api-_rRpguWX.d.cts → api-BIHEKpyq.d.ts} +2 -2
- package/dist/lib/{api-Cxmk8sFc.d.ts → api-Wawenasn.d.cts} +2 -2
- package/dist/lib/build/esbuild.cjs +6 -5
- package/dist/lib/build/esbuild.d.cts +4 -1
- package/dist/lib/build/esbuild.d.ts +4 -1
- package/dist/lib/build/esbuild.js +3 -2
- package/dist/lib/build/index.cjs +13 -12
- package/dist/lib/build/index.d.cts +6 -3
- package/dist/lib/build/index.d.ts +6 -3
- package/dist/lib/build/index.js +5 -4
- package/dist/lib/build/rolldown.d.cts +4 -1
- package/dist/lib/build/rolldown.d.ts +4 -1
- package/dist/lib/build/rollup.d.cts +4 -1
- package/dist/lib/build/rollup.d.ts +4 -1
- package/dist/lib/build/rspack.d.cts +4 -1
- package/dist/lib/build/rspack.d.ts +4 -1
- package/dist/lib/build/tsup.cjs +7 -6
- package/dist/lib/build/tsup.d.cts +4 -1
- package/dist/lib/build/tsup.d.ts +4 -1
- package/dist/lib/build/tsup.js +4 -3
- package/dist/lib/build/unbuild.d.cts +6 -3
- package/dist/lib/build/unbuild.d.ts +6 -3
- package/dist/lib/build/vite.cjs +6 -5
- package/dist/lib/build/vite.d.cts +4 -1
- package/dist/lib/build/vite.d.ts +4 -1
- package/dist/lib/build/vite.js +4 -3
- package/dist/lib/build/webpack.d.cts +4 -1
- package/dist/lib/build/webpack.d.ts +4 -1
- package/dist/lib/{chunk-UNUP4XMO.cjs → chunk-3Y4F37CB.cjs} +2 -2
- package/dist/lib/{chunk-Q4D2L67H.cjs → chunk-7VRXU4F7.cjs} +2 -2
- package/dist/lib/{chunk-N5YLKWC2.js → chunk-DYGQQI74.js} +2 -10
- package/dist/lib/{chunk-HM52GHX3.js → chunk-GD7KTLPU.js} +2 -2
- package/dist/lib/{chunk-CU23POMD.js → chunk-GLWPZDAR.js} +1 -1
- package/dist/lib/{chunk-HE6HOGLS.js → chunk-GSGF6RL2.js} +154 -26
- package/dist/lib/{chunk-4SULM54S.js → chunk-KG4HFVJU.js} +55 -44
- package/dist/lib/{chunk-ZDBHX3VV.cjs → chunk-LBR46BPB.cjs} +72 -35
- package/dist/lib/{chunk-YB54H3SQ.js → chunk-N22WOZ3U.js} +3 -1
- package/dist/lib/{chunk-QR2N3DPP.js → chunk-NZ6NCXM2.js} +1 -1
- package/dist/lib/{chunk-AFLI3CLM.js → chunk-OKXWWMEF.js} +1 -1
- package/dist/lib/{chunk-R3E56AJ4.cjs → chunk-OYLWPIBP.cjs} +2 -2
- package/dist/lib/{chunk-I76RI47U.cjs → chunk-PURLNHXG.cjs} +3 -1
- package/dist/lib/{chunk-N5XEKCVW.cjs → chunk-QF3UTBJE.cjs} +2 -11
- package/dist/lib/{chunk-QDRITYHV.cjs → chunk-R3XAVNPY.cjs} +2 -2
- package/dist/lib/{chunk-Z5JKSYRP.cjs → chunk-S4OH7KW6.cjs} +165 -37
- package/dist/lib/{chunk-YGSXCTX2.js → chunk-S6WYOXLM.js} +1 -1
- package/dist/lib/chunk-T35JQHYE.js +12 -0
- package/dist/lib/{chunk-GKCWJVF7.cjs → chunk-TWABN364.cjs} +10 -10
- package/dist/lib/{chunk-UJYCAW2D.cjs → chunk-V2523R33.cjs} +4 -4
- package/dist/lib/{chunk-KJDASLW3.js → chunk-VKFXVPY6.js} +1 -1
- package/dist/lib/{chunk-AJDYMANR.cjs → chunk-XBSGDSV3.cjs} +2 -2
- package/dist/lib/{chunk-7GCAHOJK.js → chunk-XIK3Y6BP.js} +1 -1
- package/dist/lib/{chunk-CP77I6WM.js → chunk-Y2DPOC4G.js} +65 -28
- package/dist/lib/chunk-YXJJCE6V.cjs +14 -0
- package/dist/lib/{chunk-4V5OI73E.cjs → chunk-Z6BSDYUR.cjs} +55 -44
- package/dist/lib/{config-DMXVnKGF.d.cts → config-D2dTFLlQ.d.cts} +76 -6
- package/dist/lib/{config-B2q8Me0M.d.ts → config-Dzk6j2mr.d.ts} +76 -6
- package/dist/lib/config-file.d.cts +4 -1
- package/dist/lib/config-file.d.ts +4 -1
- package/dist/lib/contexts/api-context.cjs +7 -6
- package/dist/lib/contexts/api-context.d.cts +7 -3
- package/dist/lib/contexts/api-context.d.ts +7 -3
- package/dist/lib/contexts/api-context.js +6 -5
- package/dist/lib/contexts/context.cjs +5 -4
- package/dist/lib/contexts/context.d.cts +64 -10
- package/dist/lib/contexts/context.d.ts +64 -10
- package/dist/lib/contexts/context.js +4 -3
- package/dist/lib/contexts/environment-context.cjs +6 -5
- package/dist/lib/contexts/environment-context.d.cts +7 -3
- package/dist/lib/contexts/environment-context.d.ts +7 -3
- package/dist/lib/contexts/environment-context.js +5 -4
- package/dist/lib/contexts/index.cjs +9 -8
- package/dist/lib/contexts/index.d.cts +7 -3
- package/dist/lib/contexts/index.d.ts +7 -3
- package/dist/lib/contexts/index.js +6 -5
- package/dist/lib/contexts/plugin-context.d.cts +6 -3
- package/dist/lib/contexts/plugin-context.d.ts +6 -3
- package/dist/lib/entry.cjs +10 -9
- package/dist/lib/entry.d.cts +4 -1
- package/dist/lib/entry.d.ts +4 -1
- package/dist/lib/entry.js +2 -1
- package/dist/lib/fs/index.cjs +3 -2
- package/dist/lib/fs/index.d.cts +4 -1
- package/dist/lib/fs/index.d.ts +4 -1
- package/dist/lib/fs/index.js +2 -1
- package/dist/lib/fs/vfs.cjs +3 -2
- package/dist/lib/fs/vfs.d.cts +4 -1
- package/dist/lib/fs/vfs.d.ts +4 -1
- package/dist/lib/fs/vfs.js +2 -1
- package/dist/lib/index.cjs +32 -31
- package/dist/lib/index.d.cts +8 -5
- package/dist/lib/index.d.ts +8 -5
- package/dist/lib/index.js +12 -11
- package/dist/lib/{internal-CGIi3MOX.d.ts → internal-Cgp0NF-t.d.ts} +2 -2
- package/dist/lib/{internal-CfIJWv8T.d.cts → internal-DC9vYMIn.d.cts} +2 -2
- package/dist/lib/logger.d.cts +4 -1
- package/dist/lib/logger.d.ts +4 -1
- package/dist/lib/typescript/import-transformer.d.cts +4 -1
- package/dist/lib/typescript/import-transformer.d.ts +4 -1
- package/dist/lib/typescript/index.d.cts +4 -1
- package/dist/lib/typescript/index.d.ts +4 -1
- package/dist/lib/typescript/ts-morph.d.cts +4 -1
- package/dist/lib/typescript/ts-morph.d.ts +4 -1
- package/dist/lib/unplugin/factory.cjs +8 -8
- package/dist/lib/unplugin/factory.d.cts +6 -3
- package/dist/lib/unplugin/factory.d.ts +6 -3
- package/dist/lib/unplugin/factory.js +7 -7
- package/dist/lib/unplugin/helpers.d.cts +4 -1
- package/dist/lib/unplugin/helpers.d.ts +4 -1
- package/dist/lib/unplugin/index.cjs +10 -10
- package/dist/lib/unplugin/index.d.cts +7 -4
- package/dist/lib/unplugin/index.d.ts +7 -4
- package/dist/lib/unplugin/index.js +8 -8
- package/dist/lib/unplugin/plugin.cjs +2 -2
- package/dist/lib/unplugin/plugin.d.cts +8 -18
- package/dist/lib/unplugin/plugin.d.ts +8 -18
- package/dist/lib/unplugin/plugin.js +1 -1
- package/dist/lib/{unplugin-B_F1TZK4.d.cts → unplugin-CvYjC7ZL.d.cts} +2 -2
- package/dist/lib/{unplugin-Da9GAj4a.d.ts → unplugin-D7lpyIpN.d.ts} +2 -2
- package/dist/lib/utilities/bundle.cjs +5 -4
- package/dist/lib/utilities/bundle.d.cts +4 -1
- package/dist/lib/utilities/bundle.d.ts +4 -1
- package/dist/lib/utilities/bundle.js +4 -3
- package/dist/lib/utilities/cache.d.cts +4 -1
- package/dist/lib/utilities/cache.d.ts +4 -1
- package/dist/lib/utilities/file-header.d.cts +4 -1
- package/dist/lib/utilities/file-header.d.ts +4 -1
- package/dist/lib/utilities/index.cjs +12 -11
- package/dist/lib/utilities/index.d.cts +4 -1
- package/dist/lib/utilities/index.d.ts +4 -1
- package/dist/lib/utilities/index.js +6 -5
- package/dist/lib/utilities/meta.d.cts +4 -1
- package/dist/lib/utilities/meta.d.ts +4 -1
- package/dist/lib/utilities/resolve.cjs +6 -5
- package/dist/lib/utilities/resolve.d.cts +4 -1
- package/dist/lib/utilities/resolve.d.ts +4 -1
- package/dist/lib/utilities/resolve.js +5 -4
- package/dist/lib/utilities/source-file.d.cts +4 -1
- package/dist/lib/utilities/source-file.d.ts +4 -1
- package/dist/lib/utilities/source-map.d.cts +4 -1
- package/dist/lib/utilities/source-map.d.ts +4 -1
- package/dist/lib/utilities/worker.d.cts +4 -1
- package/dist/lib/utilities/worker.d.ts +4 -1
- package/dist/lib/utilities/write-file.d.cts +4 -1
- package/dist/lib/utilities/write-file.d.ts +4 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +6 -6
- package/dist/nuxt.js +4 -4
- package/dist/plugin-utils/chunk-DCJAIIJ5.cjs +14 -0
- package/dist/plugin-utils/chunk-FBLNGP3S.js +12 -0
- package/dist/plugin-utils/context-helpers.d.cts +4 -1
- package/dist/plugin-utils/context-helpers.d.ts +4 -1
- package/dist/plugin-utils/{context-y3G_SQPM.d.cts → context-iOcgJtAf.d.cts} +75 -5
- package/dist/plugin-utils/{context-y3G_SQPM.d.ts → context-iOcgJtAf.d.ts} +75 -5
- package/dist/plugin-utils/enforce.d.cts +4 -1
- package/dist/plugin-utils/enforce.d.ts +4 -1
- package/dist/plugin-utils/extend.d.cts +4 -1
- package/dist/plugin-utils/extend.d.ts +4 -1
- package/dist/plugin-utils/get-config-path.d.cts +4 -1
- package/dist/plugin-utils/get-config-path.d.ts +4 -1
- package/dist/plugin-utils/helpers.d.cts +14 -11
- package/dist/plugin-utils/helpers.d.ts +14 -11
- package/dist/plugin-utils/index.cjs +2 -2
- package/dist/plugin-utils/index.d.cts +4 -1
- package/dist/plugin-utils/index.d.ts +4 -1
- package/dist/plugin-utils/index.js +1 -1
- package/dist/plugin-utils/merge.d.cts +4 -1
- package/dist/plugin-utils/merge.d.ts +4 -1
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +5 -1
- package/dist/plugin-utils/paths.d.ts +5 -1
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.d.cts +4 -1
- package/dist/rolldown.d.ts +4 -1
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +4 -1
- package/dist/rollup.d.ts +4 -1
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +4 -1
- package/dist/rspack.d.ts +4 -1
- package/dist/rspack.js +2 -2
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +5 -2
- package/dist/types/api.d.ts +5 -2
- package/dist/types/babel.d.cts +4 -1
- package/dist/types/babel.d.ts +4 -1
- package/dist/types/commands.d.cts +4 -1
- package/dist/types/commands.d.ts +4 -1
- package/dist/types/config.d.cts +4 -1
- package/dist/types/config.d.ts +4 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +4 -1
- package/dist/types/context.d.ts +4 -1
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +4 -1
- package/dist/types/hooks.d.ts +4 -1
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.d.cts +5 -2
- package/dist/types/index.d.ts +5 -2
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +5 -2
- package/dist/types/internal.d.ts +5 -2
- package/dist/types/plugin.d.cts +4 -1
- package/dist/types/plugin.d.ts +4 -1
- package/dist/types/resolved.d.cts +4 -1
- package/dist/types/resolved.d.ts +4 -1
- package/dist/types/unplugin.d.cts +5 -2
- package/dist/types/unplugin.d.ts +5 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +4 -1
- package/dist/unloader.d.ts +4 -1
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -6
- package/dist/unplugin.d.cts +7 -17
- package/dist/unplugin.d.ts +7 -17
- package/dist/unplugin.js +6 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +4 -1
- package/dist/vite.d.ts +4 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +4 -1
- package/dist/webpack.d.ts +4 -1
- package/dist/webpack.js +3 -3
- package/package.json +24 -21
- package/dist/babel-types.d.ts +0 -292
- package/dist/chunk-GBIIAZH5.cjs +0 -13
- package/dist/chunk-QXHINXRM.js +0 -11
- package/dist/chunk-UWLQNNZE.cjs +0 -12
- package/dist/config.cjs +0 -13
- package/dist/config.d.cts +0 -45
- package/dist/config.d.ts +0 -45
- package/dist/config.js +0 -4
- package/dist/plugin-utils/chunk-K2GWRZPV.js +0 -12
- package/dist/plugin-utils/chunk-VWFJOPKC.cjs +0 -14
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { SourceMap } from 'magic-string';
|
|
7
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
6
8
|
import { Range } from 'semver';
|
|
7
9
|
import { Project } from 'ts-morph';
|
|
10
|
+
import { RequestInfo, Response } from 'undici';
|
|
8
11
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
|
|
9
12
|
import { Format } from '@storm-software/build-tools/types';
|
|
10
13
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -558,7 +561,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
558
561
|
/**
|
|
559
562
|
* The resolved options for the Powerlines project configuration.
|
|
560
563
|
*/
|
|
561
|
-
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">> & {
|
|
564
|
+
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">> & {
|
|
562
565
|
/**
|
|
563
566
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
564
567
|
*/
|
|
@@ -929,6 +932,22 @@ type PluginConfig<TContext extends PluginContext = PluginContext> = string | Plu
|
|
|
929
932
|
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
930
933
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
931
934
|
type ProjectType = "application" | "library";
|
|
935
|
+
interface DeployConfig {
|
|
936
|
+
/**
|
|
937
|
+
* The deployment variant being used by the Powerlines engine.
|
|
938
|
+
*
|
|
939
|
+
* @example
|
|
940
|
+
* ```ts
|
|
941
|
+
* export default defineConfig({
|
|
942
|
+
* deploy: {
|
|
943
|
+
* variant: "cloudflare"
|
|
944
|
+
* }
|
|
945
|
+
* });
|
|
946
|
+
*
|
|
947
|
+
* ```
|
|
948
|
+
*/
|
|
949
|
+
variant?: string;
|
|
950
|
+
}
|
|
932
951
|
interface OutputConfig {
|
|
933
952
|
/**
|
|
934
953
|
* The path to output the final compiled files to
|
|
@@ -1051,7 +1070,7 @@ interface BaseConfig {
|
|
|
1051
1070
|
* @remarks
|
|
1052
1071
|
* If set to `false`, the deployment will be disabled.
|
|
1053
1072
|
*/
|
|
1054
|
-
deploy?:
|
|
1073
|
+
deploy?: DeployConfig | false;
|
|
1055
1074
|
/**
|
|
1056
1075
|
* The path to the tsconfig file to be used by the compiler
|
|
1057
1076
|
*
|
|
@@ -1178,7 +1197,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1178
1197
|
*/
|
|
1179
1198
|
framework?: string;
|
|
1180
1199
|
}
|
|
1181
|
-
|
|
1200
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
1182
1201
|
/**
|
|
1183
1202
|
* Configuration provided to build processes
|
|
1184
1203
|
*
|
|
@@ -1198,7 +1217,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
1198
1217
|
*/
|
|
1199
1218
|
override?: Partial<TBuildResolvedConfig>;
|
|
1200
1219
|
};
|
|
1201
|
-
}
|
|
1220
|
+
}
|
|
1202
1221
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1203
1222
|
/**
|
|
1204
1223
|
* The configuration provided while executing Powerlines commands.
|
|
@@ -1251,6 +1270,18 @@ interface InitContextOptions {
|
|
|
1251
1270
|
*/
|
|
1252
1271
|
isHighPriority: boolean;
|
|
1253
1272
|
}
|
|
1273
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
1274
|
+
/**
|
|
1275
|
+
* An indicator specifying that the request should bypass any caching
|
|
1276
|
+
*/
|
|
1277
|
+
skipCache?: boolean;
|
|
1278
|
+
}
|
|
1279
|
+
interface ParseOptions extends ParserOptions {
|
|
1280
|
+
/**
|
|
1281
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1282
|
+
*/
|
|
1283
|
+
allowReturnOutsideFunction?: boolean;
|
|
1284
|
+
}
|
|
1254
1285
|
/**
|
|
1255
1286
|
* The unresolved Powerlines context.
|
|
1256
1287
|
*
|
|
@@ -1267,6 +1298,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1267
1298
|
*/
|
|
1268
1299
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1269
1300
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1301
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
1270
1302
|
output: TResolvedConfig["output"];
|
|
1271
1303
|
};
|
|
1272
1304
|
/**
|
|
@@ -1386,6 +1418,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1386
1418
|
* This instance is created lazily on first access.
|
|
1387
1419
|
*/
|
|
1388
1420
|
program: Project;
|
|
1421
|
+
/**
|
|
1422
|
+
* A function to perform HTTP fetch requests
|
|
1423
|
+
*
|
|
1424
|
+
* @remarks
|
|
1425
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1426
|
+
*
|
|
1427
|
+
* @example
|
|
1428
|
+
* ```ts
|
|
1429
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1430
|
+
* const data = await response.json();
|
|
1431
|
+
* ```
|
|
1432
|
+
*
|
|
1433
|
+
* @see https://github.com/nodejs/undici
|
|
1434
|
+
*
|
|
1435
|
+
* @param input - The URL to fetch.
|
|
1436
|
+
* @param options - The fetch request options.
|
|
1437
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1438
|
+
*/
|
|
1439
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1440
|
+
/**
|
|
1441
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1442
|
+
*
|
|
1443
|
+
* @remarks
|
|
1444
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
* ```ts
|
|
1448
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1449
|
+
* ```
|
|
1450
|
+
*
|
|
1451
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1452
|
+
* @see https://github.com/oxc/oxc
|
|
1453
|
+
*
|
|
1454
|
+
* @param code - The source code to parse.
|
|
1455
|
+
* @param options - The options to pass to the parser.
|
|
1456
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1457
|
+
*/
|
|
1458
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1389
1459
|
/**
|
|
1390
1460
|
* A helper function to resolve modules using the Jiti resolver
|
|
1391
1461
|
*
|
|
@@ -1485,6 +1555,6 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1485
1555
|
*/
|
|
1486
1556
|
logger: LogFn;
|
|
1487
1557
|
}
|
|
1488
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1558
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1489
1559
|
|
|
1490
1560
|
export type { BuildVariant as B, ConfigResult as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './context-
|
|
1
|
+
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './context-iOcgJtAf.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './context-
|
|
1
|
+
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './context-iOcgJtAf.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './context-iOcgJtAf.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './context-iOcgJtAf.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { U as UnresolvedContext } from './context-
|
|
1
|
+
import { U as UnresolvedContext } from './context-iOcgJtAf.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { U as UnresolvedContext } from './context-
|
|
1
|
+
import { U as UnresolvedContext } from './context-iOcgJtAf.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { P as PluginContext, e as BasePluginHookFunctions, f as PluginHookFunctions, E as ExternalPluginHookFunctions, g as PluginHookObject, a as Plugin, R as ResolvedConfig, h as PluginConfigObject, i as PluginConfigTuple, j as PluginConfig, k as PluginHook, U as UnresolvedContext, C as ConfigResult, l as EnvironmentConfig, m as EnvironmentResolvedConfig, G as GenerateTypesResult } from './context-
|
|
1
|
+
import { P as PluginContext, e as BasePluginHookFunctions, f as PluginHookFunctions, E as ExternalPluginHookFunctions, g as PluginHookObject, a as Plugin, R as ResolvedConfig, h as PluginConfigObject, i as PluginConfigTuple, j as PluginConfig, k as PluginHook, U as UnresolvedContext, C as ConfigResult, l as EnvironmentConfig, m as EnvironmentResolvedConfig, G as GenerateTypesResult } from './context-iOcgJtAf.cjs';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/http/fetch';
|
|
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 '@storm-software/build-tools/types';
|
|
12
15
|
import '@storm-software/config-tools/types';
|
|
13
16
|
import '@storm-software/config/types';
|
|
@@ -94,25 +97,25 @@ declare function getHookHandler(pluginHook: PluginHook<AnyFunction>): AnyFunctio
|
|
|
94
97
|
* @returns The extracted hook, or undefined if the hook does not exist
|
|
95
98
|
*/
|
|
96
99
|
declare function extractPluginHook<TContext extends PluginContext = PluginContext, TPlugin extends Plugin<TContext> = Plugin<TContext>>(context: TContext, plugin: TPlugin, hook: BaseHookKeys<TContext>): {
|
|
97
|
-
normal: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: PluginContext<TContext["config"]> &
|
|
100
|
+
normal: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, "code" | "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
98
101
|
isEntry: boolean;
|
|
99
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: PluginContext<TContext["config"]> &
|
|
102
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
100
103
|
isEntry: boolean;
|
|
101
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | (((this: PluginContext<TContext["config"]> &
|
|
104
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
102
105
|
isEntry: boolean;
|
|
103
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & PluginHookObject<(this: PluginContext<TContext["config"]> &
|
|
106
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
104
107
|
isEntry: boolean;
|
|
105
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, "id">) | (PluginHookObject<(this: PluginContext<TContext["config"]> &
|
|
108
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
106
109
|
isEntry: boolean;
|
|
107
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, never> & ((this: PluginContext<TContext["config"]> &
|
|
110
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
108
111
|
isEntry: boolean;
|
|
109
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: PluginContext<TContext["config"]> &
|
|
112
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
110
113
|
} | {
|
|
111
|
-
[x: string]: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: PluginContext<TContext["config"]> &
|
|
114
|
+
[x: string]: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
112
115
|
isEntry: boolean;
|
|
113
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: PluginContext<TContext["config"]> &
|
|
116
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
114
117
|
isEntry: boolean;
|
|
115
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: PluginContext<TContext["config"]> &
|
|
118
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
116
119
|
normal?: undefined;
|
|
117
120
|
} | undefined;
|
|
118
121
|
/**
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { P as PluginContext, e as BasePluginHookFunctions, f as PluginHookFunctions, E as ExternalPluginHookFunctions, g as PluginHookObject, a as Plugin, R as ResolvedConfig, h as PluginConfigObject, i as PluginConfigTuple, j as PluginConfig, k as PluginHook, U as UnresolvedContext, C as ConfigResult, l as EnvironmentConfig, m as EnvironmentResolvedConfig, G as GenerateTypesResult } from './context-
|
|
1
|
+
import { P as PluginContext, e as BasePluginHookFunctions, f as PluginHookFunctions, E as ExternalPluginHookFunctions, g as PluginHookObject, a as Plugin, R as ResolvedConfig, h as PluginConfigObject, i as PluginConfigTuple, j as PluginConfig, k as PluginHook, U as UnresolvedContext, C as ConfigResult, l as EnvironmentConfig, m as EnvironmentResolvedConfig, G as GenerateTypesResult } from './context-iOcgJtAf.js';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/http/fetch';
|
|
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 '@storm-software/build-tools/types';
|
|
12
15
|
import '@storm-software/config-tools/types';
|
|
13
16
|
import '@storm-software/config/types';
|
|
@@ -94,25 +97,25 @@ declare function getHookHandler(pluginHook: PluginHook<AnyFunction>): AnyFunctio
|
|
|
94
97
|
* @returns The extracted hook, or undefined if the hook does not exist
|
|
95
98
|
*/
|
|
96
99
|
declare function extractPluginHook<TContext extends PluginContext = PluginContext, TPlugin extends Plugin<TContext> = Plugin<TContext>>(context: TContext, plugin: TPlugin, hook: BaseHookKeys<TContext>): {
|
|
97
|
-
normal: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: PluginContext<TContext["config"]> &
|
|
100
|
+
normal: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, "code" | "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
98
101
|
isEntry: boolean;
|
|
99
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: PluginContext<TContext["config"]> &
|
|
102
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
100
103
|
isEntry: boolean;
|
|
101
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | (((this: PluginContext<TContext["config"]> &
|
|
104
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
102
105
|
isEntry: boolean;
|
|
103
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & PluginHookObject<(this: PluginContext<TContext["config"]> &
|
|
106
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
104
107
|
isEntry: boolean;
|
|
105
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, "id">) | (PluginHookObject<(this: PluginContext<TContext["config"]> &
|
|
108
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
106
109
|
isEntry: boolean;
|
|
107
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, never> & ((this: PluginContext<TContext["config"]> &
|
|
110
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
108
111
|
isEntry: boolean;
|
|
109
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: PluginContext<TContext["config"]> &
|
|
112
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
110
113
|
} | {
|
|
111
|
-
[x: string]: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: PluginContext<TContext["config"]> &
|
|
114
|
+
[x: string]: OmitThisParameter<((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<ConfigResult<TContext>>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
112
115
|
isEntry: boolean;
|
|
113
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: PluginContext<TContext["config"]> &
|
|
116
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
114
117
|
isEntry: boolean;
|
|
115
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: PluginContext<TContext["config"]> &
|
|
118
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<GenerateTypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
116
119
|
normal?: undefined;
|
|
117
120
|
} | undefined;
|
|
118
121
|
/**
|
|
@@ -6,7 +6,7 @@ var chunkECFS7DPV_cjs = require('./chunk-ECFS7DPV.cjs');
|
|
|
6
6
|
var chunk5MO4BCOW_cjs = require('./chunk-5MO4BCOW.cjs');
|
|
7
7
|
var chunkUNAGYQRB_cjs = require('./chunk-UNAGYQRB.cjs');
|
|
8
8
|
var chunkF65J5WOX_cjs = require('./chunk-F65J5WOX.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkDCJAIIJ5_cjs = require('./chunk-DCJAIIJ5.cjs');
|
|
10
10
|
require('./chunk-USNT2KNT.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -89,5 +89,5 @@ Object.defineProperty(exports, "isPluginHookObject", {
|
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "replacePathTokens", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkDCJAIIJ5_cjs.replacePathTokens; }
|
|
93
93
|
});
|
|
@@ -5,14 +5,17 @@ export { getConfigPath } from './get-config-path.cjs';
|
|
|
5
5
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './helpers.cjs';
|
|
6
6
|
export { MergeResult, __ΩMergeResult, merge } from './merge.cjs';
|
|
7
7
|
export { replacePathTokens } from './paths.cjs';
|
|
8
|
-
import './context-
|
|
8
|
+
import './context-iOcgJtAf.cjs';
|
|
9
9
|
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/http/fetch';
|
|
10
11
|
import '@stryke/types/base';
|
|
11
12
|
import '@stryke/types/package-json';
|
|
12
13
|
import 'jiti';
|
|
13
14
|
import 'magic-string';
|
|
15
|
+
import 'oxc-parser';
|
|
14
16
|
import 'semver';
|
|
15
17
|
import 'ts-morph';
|
|
18
|
+
import 'undici';
|
|
16
19
|
import 'unplugin';
|
|
17
20
|
import '@storm-software/build-tools/types';
|
|
18
21
|
import '@storm-software/config-tools/types';
|
|
@@ -5,14 +5,17 @@ export { getConfigPath } from './get-config-path.js';
|
|
|
5
5
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './helpers.js';
|
|
6
6
|
export { MergeResult, __ΩMergeResult, merge } from './merge.js';
|
|
7
7
|
export { replacePathTokens } from './paths.js';
|
|
8
|
-
import './context-
|
|
8
|
+
import './context-iOcgJtAf.js';
|
|
9
9
|
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/http/fetch';
|
|
10
11
|
import '@stryke/types/base';
|
|
11
12
|
import '@stryke/types/package-json';
|
|
12
13
|
import 'jiti';
|
|
13
14
|
import 'magic-string';
|
|
15
|
+
import 'oxc-parser';
|
|
14
16
|
import 'semver';
|
|
15
17
|
import 'ts-morph';
|
|
18
|
+
import 'undici';
|
|
16
19
|
import 'unplugin';
|
|
17
20
|
import '@storm-software/build-tools/types';
|
|
18
21
|
import '@storm-software/config-tools/types';
|
|
@@ -4,5 +4,5 @@ export { extend } from './chunk-GV7O3E7P.js';
|
|
|
4
4
|
export { getConfigPath } from './chunk-CYVV2MB7.js';
|
|
5
5
|
export { merge } from './chunk-QKMG6ZAU.js';
|
|
6
6
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './chunk-L277XSSN.js';
|
|
7
|
-
export { replacePathTokens } from './chunk-
|
|
7
|
+
export { replacePathTokens } from './chunk-FBLNGP3S.js';
|
|
8
8
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './context-iOcgJtAf.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './context-iOcgJtAf.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDCJAIIJ5_cjs = require('./chunk-DCJAIIJ5.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "replacePathTokens", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDCJAIIJ5_cjs.replacePathTokens; }
|
|
11
11
|
});
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import { U as UnresolvedContext } from './context-
|
|
2
|
+
import { U as UnresolvedContext } from './context-iOcgJtAf.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -26,6 +29,7 @@ import '@stryke/types/array';
|
|
|
26
29
|
* - `{workspaceRoot}` - The root directory of the workspace.
|
|
27
30
|
* - `{root}` - The root directory of the project (same as `{projectRoot}`).
|
|
28
31
|
* - `{projectRoot}` - The root directory of the project (same as `{root}`).
|
|
32
|
+
* - `{sourceRoot}` - The source root directory of the project (usually `./src`).
|
|
29
33
|
* - `{powerlinesPath}` - The directory where Powerlines is installed.
|
|
30
34
|
* - `{cachePath}` - The environment's directory for cached files.
|
|
31
35
|
* - `{dataPath}` - The environment's directory for data files.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import { U as UnresolvedContext } from './context-
|
|
2
|
+
import { U as UnresolvedContext } from './context-iOcgJtAf.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|
|
@@ -26,6 +29,7 @@ import '@stryke/types/array';
|
|
|
26
29
|
* - `{workspaceRoot}` - The root directory of the workspace.
|
|
27
30
|
* - `{root}` - The root directory of the project (same as `{projectRoot}`).
|
|
28
31
|
* - `{projectRoot}` - The root directory of the project (same as `{root}`).
|
|
32
|
+
* - `{sourceRoot}` - The source root directory of the project (usually `./src`).
|
|
29
33
|
* - `{powerlinesPath}` - The directory where Powerlines is installed.
|
|
30
34
|
* - `{cachePath}` - The environment's directory for cached files.
|
|
31
35
|
* - `{dataPath}` - The environment's directory for data files.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { replacePathTokens } from './chunk-
|
|
1
|
+
export { replacePathTokens } from './chunk-FBLNGP3S.js';
|
|
2
2
|
import './chunk-SHUYVCID.js';
|