powerlines 0.19.5 → 0.20.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.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +8 -8
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +5 -5
- package/dist/{chunk-JPWBN72J.js → chunk-24AZZCCW.js} +1 -1
- package/dist/{chunk-HI3LNK6Q.js → chunk-2KGMZZ36.js} +1 -1
- package/dist/{chunk-BHPTTRBA.js → chunk-2QGVOWKM.js} +16 -11
- package/dist/{chunk-AEJIVPUZ.js → chunk-4KCSCJ6E.js} +1 -1
- package/dist/{chunk-ULFJBFI7.cjs → chunk-6UVRB3IN.cjs} +3 -3
- package/dist/{chunk-RR7EC4RF.js → chunk-A2EZ3M22.js} +1 -1
- package/dist/{chunk-ZOUGUAQY.cjs → chunk-CTSV5JAF.cjs} +18 -13
- package/dist/{chunk-GFINPIIK.js → chunk-F4TS44KB.js} +3 -4
- package/dist/{chunk-I4LLZ5BI.js → chunk-FBMQTOMN.js} +1 -1
- package/dist/{chunk-PAJB5K7A.js → chunk-FYKDALJL.js} +3 -2
- package/dist/{chunk-MCDMY6GK.cjs → chunk-IHWRGHX6.cjs} +2 -2
- package/dist/{chunk-7HKTQSUG.cjs → chunk-IMMNZSFZ.cjs} +4 -3
- package/dist/{chunk-VICSRRKQ.js → chunk-JKF342AW.js} +2 -2
- package/dist/{chunk-LIXKMZW5.cjs → chunk-KL7HP7JM.cjs} +2 -2
- package/dist/{chunk-5PRY6OJM.cjs → chunk-LM6YBGC6.cjs} +2 -2
- package/dist/{chunk-KMELWYHW.cjs → chunk-MOH4CWHN.cjs} +3 -4
- package/dist/{chunk-YQZXG4X6.cjs → chunk-MZQXGWUK.cjs} +2 -2
- package/dist/{chunk-BSGWY4AP.cjs → chunk-OQNYDN5F.cjs} +2 -2
- package/dist/{chunk-X5LPEBDE.cjs → chunk-P3BP6LXC.cjs} +2 -2
- package/dist/{chunk-HEG6IAVR.js → chunk-QH3M5FBF.js} +1 -1
- package/dist/chunk-SECEPZQ3.cjs +32 -0
- package/dist/{chunk-GQM2JCO3.js → chunk-SIEHJFKB.js} +2 -2
- package/dist/{chunk-TK6CN2KT.cjs → chunk-T4AJOD6A.cjs} +4 -4
- package/dist/chunk-TY3QAXEY.js +105 -0
- package/dist/{chunk-OJSRHKHW.js → chunk-VSZXQLMI.js} +1 -1
- package/dist/{chunk-A3FMGMBV.cjs → chunk-VVFIZVYE.cjs} +2 -2
- package/dist/{chunk-Z63SQZUB.cjs → chunk-VXF37DA2.cjs} +4 -4
- package/dist/chunk-WE7PLY4H.cjs +111 -0
- package/dist/{chunk-MLAYLHZO.js → chunk-WRP6ANCC.js} +1 -1
- package/dist/chunk-XBS3AHAK.js +29 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +2 -2
- package/dist/{hooks-Bq2jUAKs.d.ts → hooks-BBZyf9CN.d.ts} +1 -1
- package/dist/{hooks-C6t50M6a.d.cts → hooks-CUxY7WKY.d.cts} +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -16
- package/dist/lib/build/esbuild.cjs +4 -4
- package/dist/lib/build/esbuild.d.cts +3 -3
- package/dist/lib/build/esbuild.d.ts +3 -3
- package/dist/lib/build/esbuild.js +1 -1
- package/dist/lib/build/index.cjs +24 -24
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/index.js +8 -8
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +5 -5
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/tsup.js +2 -2
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +2 -2
- package/dist/lib/build/unbuild.d.ts +2 -2
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +4 -4
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/vite.js +2 -2
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/{chunk-7OHD3BD4.js → chunk-4QRL5CNE.js} +1 -5
- package/dist/lib/{chunk-5ASXKB2V.js → chunk-4RUHX7LV.js} +1 -1
- package/dist/lib/{chunk-KXCEN6Y4.js → chunk-5SP6QZLX.js} +1 -1
- package/dist/lib/{chunk-4AMFNBTX.cjs → chunk-ARCFV3IJ.cjs} +3 -4
- package/dist/lib/{chunk-5EXW3ZRC.cjs → chunk-CLV4J4L7.cjs} +26 -4
- package/dist/lib/{chunk-ADKYAHF5.js → chunk-DFRWBQQT.js} +33 -12
- package/dist/lib/{chunk-F7IDAYLH.cjs → chunk-FGYAS4NB.cjs} +1 -5
- package/dist/lib/{chunk-MVSXEH4P.cjs → chunk-H7V7EPB2.cjs} +6 -9
- package/dist/lib/{chunk-67IBLMW6.cjs → chunk-HIY6WOU3.cjs} +3 -3
- package/dist/lib/{chunk-ESNHFT4V.cjs → chunk-IBONIIAZ.cjs} +10 -10
- package/dist/lib/{chunk-47WZIAPZ.js → chunk-IXREPTHZ.js} +5 -8
- package/dist/lib/chunk-K4FER6YK.cjs +125 -0
- package/dist/lib/{chunk-LJ4WO7TW.cjs → chunk-MWA3DWY5.cjs} +36 -13
- package/dist/lib/{chunk-Q3ERHHXJ.js → chunk-NU4GDWLL.js} +2 -2
- package/dist/lib/{chunk-37W2ZDLA.cjs → chunk-O36FCQM6.cjs} +2 -2
- package/dist/lib/{chunk-ET5QBFGZ.cjs → chunk-O5LNKYQV.cjs} +2 -2
- package/dist/lib/{chunk-SYHVP3OW.js → chunk-OI2V6L7D.js} +24 -4
- package/dist/lib/{chunk-JB2JJXGW.js → chunk-S5F4DE65.js} +1 -1
- package/dist/lib/{chunk-DX4TFRS3.js → chunk-TTKY3DR4.js} +3 -4
- package/dist/lib/{chunk-N2EGPL2L.js → chunk-WWNNBLU7.js} +9 -9
- package/dist/lib/{chunk-AOKLB4V2.cjs → chunk-Y2BHXV33.cjs} +1 -1
- package/dist/lib/chunk-ZJNDT3GX.js +117 -0
- package/dist/lib/{config-CnPcoKqT.d.ts → config-Bag1Ft7u.d.ts} +138 -52
- package/dist/lib/{config-LK_Wl1SU.d.cts → config-DN8Ad0lv.d.cts} +138 -52
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/create-program.d.cts +1 -1
- package/dist/lib/create-program.d.ts +1 -1
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/{hooks-DX1o8l6J.d.ts → hooks-BVnPAWgt.d.ts} +1 -1
- package/dist/lib/{hooks-BD2rDhpA.d.cts → hooks-H2P-7xA4.d.cts} +1 -1
- package/dist/lib/index.cjs +7 -7
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +4 -4
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +1 -1
- package/dist/lib/typescript/compiler-host.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/program.d.cts +1 -1
- package/dist/lib/typescript/program.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +2 -2
- package/dist/lib/unplugin/factory.d.cts +2 -2
- package/dist/lib/unplugin/factory.d.ts +2 -2
- package/dist/lib/unplugin/factory.js +1 -1
- package/dist/lib/unplugin/index.cjs +2 -2
- package/dist/lib/unplugin/index.d.cts +2 -2
- package/dist/lib/unplugin/index.d.ts +2 -2
- package/dist/lib/unplugin/index.js +1 -1
- package/dist/lib/unplugin/plugin.d.cts +1 -1
- package/dist/lib/unplugin/plugin.d.ts +1 -1
- package/dist/lib/unplugin/resolve-id.d.cts +1 -1
- package/dist/lib/unplugin/resolve-id.d.ts +1 -1
- package/dist/lib/utilities/bundle.cjs +3 -3
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/bundle.js +2 -2
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.cjs +5 -5
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/index.js +3 -3
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -1
- package/dist/lib/utilities/resolve-path.d.ts +1 -1
- package/dist/lib/utilities/resolve.cjs +4 -4
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/resolve.js +3 -3
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +7 -7
- package/dist/next.js +4 -4
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/plugin-utils/chunk-J33TXWF6.js +12 -0
- package/dist/plugin-utils/chunk-QP6OJWFG.cjs +14 -0
- package/dist/plugin-utils/{config-48EWGWXq.d.cts → config-pwKiZvzJ.d.cts} +138 -52
- package/dist/plugin-utils/{config-48EWGWXq.d.ts → config-pwKiZvzJ.d.ts} +138 -52
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +2 -2
- package/dist/plugin-utils/get-config-path.d.ts +2 -2
- package/dist/plugin-utils/helpers.d.cts +3 -3
- package/dist/plugin-utils/helpers.d.ts +3 -3
- package/dist/plugin-utils/index.cjs +2 -2
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/index.js +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +3 -2
- package/dist/plugin-utils/paths.d.ts +3 -2
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/{resolved-J7a2Aeuk.d.ts → resolved-Sxyrlt6g.d.ts} +68 -52
- package/dist/{resolved-B41SbjnS.d.cts → resolved-ohMN-3VJ.d.cts} +68 -52
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +6 -6
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +6 -6
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -3
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/build.d.cts +76 -6
- package/dist/types/build.d.ts +76 -6
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +2 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.cjs +6 -6
- package/dist/unloader.d.cts +3 -3
- package/dist/unloader.d.ts +3 -3
- package/dist/unloader.js +3 -3
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +4 -4
- package/dist/unplugin.d.ts +4 -4
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +7 -5
- package/dist/chunk-CWCEYGLM.js +0 -43
- package/dist/chunk-F5NKLRZD.cjs +0 -49
- package/dist/chunk-RDMLGFIT.js +0 -29
- package/dist/chunk-XDLLDHRY.cjs +0 -32
- package/dist/lib/chunk-POOHWK7C.cjs +0 -63
- package/dist/lib/chunk-VLHOYZG2.js +0 -55
- package/dist/plugin-utils/chunk-2HFS2OOG.cjs +0 -14
- package/dist/plugin-utils/chunk-CVZA2RT3.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybePromise, FunctionLike,
|
|
1
|
+
import { MaybePromise, FunctionLike, NonUndefined, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
2
2
|
import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
3
3
|
import { AssetGlob } from '@stryke/types/file';
|
|
4
4
|
import { PreviewOptions, ResolvedConfig as ResolvedConfig$2, ResolvedPreviewOptions } from 'vite';
|
|
@@ -49,6 +49,10 @@ interface GenerateTypesResult {
|
|
|
49
49
|
directives?: string[];
|
|
50
50
|
code: string;
|
|
51
51
|
}
|
|
52
|
+
type DeepPartial<T> = {
|
|
53
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
54
|
+
};
|
|
55
|
+
type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
|
|
52
56
|
interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
|
|
53
57
|
/**
|
|
54
58
|
* A function that returns configuration options to be merged with the build context's options.
|
|
@@ -64,7 +68,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
64
68
|
* @param config - The partial configuration object to be modified.
|
|
65
69
|
* @returns A promise that resolves to a partial configuration object.
|
|
66
70
|
*/
|
|
67
|
-
config: (this:
|
|
71
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
|
|
68
72
|
/**
|
|
69
73
|
* Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
|
|
70
74
|
*
|
|
@@ -172,7 +176,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
172
176
|
* @param config - The partial configuration object to be modified.
|
|
173
177
|
* @returns A promise that resolves to a partial configuration object.
|
|
174
178
|
*/
|
|
175
|
-
config: PluginHook<(this:
|
|
179
|
+
config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
|
|
176
180
|
/**
|
|
177
181
|
* A hook that is called to transform the source code.
|
|
178
182
|
*
|
|
@@ -378,7 +382,13 @@ interface InitContextOptions {
|
|
|
378
382
|
*/
|
|
379
383
|
isHighPriority: boolean;
|
|
380
384
|
}
|
|
381
|
-
|
|
385
|
+
/**
|
|
386
|
+
* The unresolved Powerlines context.
|
|
387
|
+
*
|
|
388
|
+
* @remarks
|
|
389
|
+
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
390
|
+
*/
|
|
391
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
382
392
|
/**
|
|
383
393
|
* The Storm workspace configuration
|
|
384
394
|
*/
|
|
@@ -386,7 +396,10 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
386
396
|
/**
|
|
387
397
|
* An object containing the options provided to Powerlines
|
|
388
398
|
*/
|
|
389
|
-
config: TResolvedConfig
|
|
399
|
+
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
400
|
+
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
401
|
+
output: TResolvedConfig["output"];
|
|
402
|
+
};
|
|
390
403
|
/**
|
|
391
404
|
* A logging function for the Powerlines engine
|
|
392
405
|
*/
|
|
@@ -543,6 +556,12 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
543
556
|
*/
|
|
544
557
|
extendLog: (name: string) => LogFn;
|
|
545
558
|
}
|
|
559
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
560
|
+
/**
|
|
561
|
+
* The fully resolved Powerlines configuration
|
|
562
|
+
*/
|
|
563
|
+
config: TResolvedConfig;
|
|
564
|
+
};
|
|
546
565
|
interface APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
547
566
|
/**
|
|
548
567
|
* The expected plugins options for the Powerlines project.
|
|
@@ -743,7 +762,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
743
762
|
* A configuration tuple for a Powerlines plugin.
|
|
744
763
|
*/
|
|
745
764
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
746
|
-
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
765
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
747
766
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
748
767
|
type ProjectType = "application" | "library";
|
|
749
768
|
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
@@ -854,24 +873,33 @@ interface BaseConfig {
|
|
|
854
873
|
* The entry point(s) for the application
|
|
855
874
|
*/
|
|
856
875
|
entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
|
|
876
|
+
/**
|
|
877
|
+
* Configuration for the output of the build process
|
|
878
|
+
*/
|
|
879
|
+
output?: OutputConfig;
|
|
857
880
|
/**
|
|
858
881
|
* Configuration for linting the source code
|
|
882
|
+
*
|
|
883
|
+
* @remarks
|
|
884
|
+
* If set to `false`, linting will be disabled.
|
|
859
885
|
*/
|
|
860
886
|
lint?: Record<string, any> | false;
|
|
861
887
|
/**
|
|
862
888
|
* Configuration for testing the source code
|
|
889
|
+
*
|
|
890
|
+
* @remarks
|
|
891
|
+
* If set to `false`, testing will be disabled.
|
|
863
892
|
*/
|
|
864
893
|
test?: Record<string, any> | false;
|
|
865
|
-
/**
|
|
866
|
-
* Configuration for the output of the build process
|
|
867
|
-
*/
|
|
868
|
-
output?: OutputConfig;
|
|
869
894
|
/**
|
|
870
895
|
* Configuration for the transformation of the source code
|
|
871
896
|
*/
|
|
872
897
|
transform?: Record<string, any>;
|
|
873
898
|
/**
|
|
874
|
-
*
|
|
899
|
+
* Configuration provided to build processes
|
|
900
|
+
*
|
|
901
|
+
* @remarks
|
|
902
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
875
903
|
*/
|
|
876
904
|
build?: BuildConfig;
|
|
877
905
|
/**
|
|
@@ -901,37 +929,6 @@ interface BaseConfig {
|
|
|
901
929
|
tsconfigRaw?: TSConfig;
|
|
902
930
|
}
|
|
903
931
|
interface EnvironmentConfig extends BaseConfig {
|
|
904
|
-
/**
|
|
905
|
-
* Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
|
|
906
|
-
*
|
|
907
|
-
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
908
|
-
*/
|
|
909
|
-
mainFields?: string[];
|
|
910
|
-
/**
|
|
911
|
-
* Array of strings indicating what conditions should be used for module resolution.
|
|
912
|
-
*/
|
|
913
|
-
conditions?: string[];
|
|
914
|
-
/**
|
|
915
|
-
* Array of strings indicating what conditions should be used for external modules.
|
|
916
|
-
*/
|
|
917
|
-
externalConditions?: string[];
|
|
918
|
-
/**
|
|
919
|
-
* Array of strings indicating what file extensions should be used for module resolution.
|
|
920
|
-
*
|
|
921
|
-
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
922
|
-
*/
|
|
923
|
-
extensions?: string[];
|
|
924
|
-
/**
|
|
925
|
-
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
926
|
-
*
|
|
927
|
-
* @remarks
|
|
928
|
-
* This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
|
|
929
|
-
*/
|
|
930
|
-
dedupe?: string[];
|
|
931
|
-
/**
|
|
932
|
-
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
933
|
-
*/
|
|
934
|
-
builtins?: (string | RegExp)[];
|
|
935
932
|
/**
|
|
936
933
|
* Configuration options for the preview server
|
|
937
934
|
*/
|
|
@@ -1004,14 +1001,26 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1004
1001
|
*/
|
|
1005
1002
|
framework?: string;
|
|
1006
1003
|
}
|
|
1007
|
-
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
1008
|
-
|
|
1004
|
+
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
|
|
1005
|
+
/**
|
|
1006
|
+
* Configuration provided to build processes
|
|
1007
|
+
*
|
|
1008
|
+
* @remarks
|
|
1009
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
1010
|
+
*/
|
|
1011
|
+
build: Omit<TBuildConfig, "override"> & {
|
|
1009
1012
|
/**
|
|
1010
1013
|
* The build variant being used by the Powerlines engine.
|
|
1011
1014
|
*/
|
|
1012
1015
|
variant?: TBuildVariant;
|
|
1016
|
+
/**
|
|
1017
|
+
* An optional set of override options to apply to the selected build variant.
|
|
1018
|
+
*
|
|
1019
|
+
* @remarks
|
|
1020
|
+
* This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
|
|
1021
|
+
*/
|
|
1022
|
+
override?: Partial<TBuildResolvedConfig>;
|
|
1013
1023
|
};
|
|
1014
|
-
override?: Partial<TBuildResolvedConfig>;
|
|
1015
1024
|
};
|
|
1016
1025
|
type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
1017
1026
|
type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
@@ -1093,10 +1102,10 @@ type ReleaseInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineCo
|
|
|
1093
1102
|
};
|
|
1094
1103
|
type ConfigEnv = Pick<ResolvedConfig$2, "command" | "mode" | "environments" | "preview">;
|
|
1095
1104
|
type AnyUserConfig = Record<string, any> & (Partial<UserConfig> | Partial<WebpackUserConfig> | Partial<RspackUserConfig> | Partial<ViteUserConfig> | Partial<ESBuildUserConfig> | Partial<UnbuildUserConfig> | Partial<TsupUserConfig> | Partial<RolldownUserConfig> | Partial<RollupUserConfig> | Partial<FarmUserConfig>);
|
|
1096
|
-
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial<UserConfig>;
|
|
1097
|
-
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial<UserConfig>>;
|
|
1098
|
-
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial<UserConfig>>;
|
|
1099
|
-
type UserConfigExport = DeepPartial<UserConfig> | Promise<DeepPartial<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1105
|
+
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
|
|
1106
|
+
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
|
|
1107
|
+
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
|
|
1108
|
+
type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1100
1109
|
|
|
1101
1110
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
1102
1111
|
/**
|
|
@@ -1109,7 +1118,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
1109
1118
|
output?: string;
|
|
1110
1119
|
}
|
|
1111
1120
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
1112
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"
|
|
1121
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr">> & {
|
|
1113
1122
|
/**
|
|
1114
1123
|
* The name of the environment
|
|
1115
1124
|
*/
|
|
@@ -1126,7 +1135,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1126
1135
|
/**
|
|
1127
1136
|
* The resolved options for the Powerlines project configuration.
|
|
1128
1137
|
*/
|
|
1129
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "
|
|
1138
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "framework">> & {
|
|
1130
1139
|
/**
|
|
1131
1140
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1132
1141
|
*/
|
|
@@ -1157,6 +1166,13 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
1157
1166
|
* The output configuration options to use for the build process
|
|
1158
1167
|
*/
|
|
1159
1168
|
output: OutputResolvedConfig;
|
|
1169
|
+
/**
|
|
1170
|
+
* Configuration provided to build processes
|
|
1171
|
+
*
|
|
1172
|
+
* @remarks
|
|
1173
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
1174
|
+
*/
|
|
1175
|
+
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
1160
1176
|
/**
|
|
1161
1177
|
* The log level to use for the Powerlines processes.
|
|
1162
1178
|
*
|
|
@@ -1175,4 +1191,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
|
|
|
1175
1191
|
type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
|
|
1176
1192
|
type InferResolvedConfig<TBuildVariant extends BuildVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
|
|
1177
1193
|
|
|
1178
|
-
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type ReleaseInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type
|
|
1194
|
+
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type ReleaseInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type FarmResolvedConfig as a$, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type PluginHook as aA, type GenerateTypesResult as aB, type ConfigResult as aC, type BasePluginHookFunctions as aD, type BuildPlugin as aE, type ExternalPluginHookFunctionsVariant as aF, type ExternalPluginHookFunctions as aG, type PluginHookFunctions as aH, type PluginHooks as aI, type PluginBuildPlugins as aJ, type Plugin as aK, PLUGIN_NON_HOOK_FIELDS as aL, type PluginNonHookFields as aM, type ResolvedEntryTypeDefinition as aN, type BabelResolvedConfig as aO, type EnvironmentResolvedConfig as aP, type ResolvedAssetGlob as aQ, type OutputResolvedConfig as aR, type ResolvedConfig as aS, type ViteResolvedConfig as aT, type WebpackResolvedConfig as aU, type RspackResolvedConfig as aV, type ESBuildResolvedConfig as aW, type RollupResolvedConfig as aX, type RolldownResolvedConfig as aY, type TsupResolvedConfig as aZ, type UnbuildResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type UnresolvedContext as ad, type Context as ae, type APIContext as af, type EnvironmentContextPlugin as ag, type EnvironmentContext as ah, type PluginContext as ai, type BuildPluginContext as aj, type SerializedVirtualFileSystem as ak, type BaseHooks as al, type BaseHookKeys as am, type ExternalHooks as an, type ExternalHookKeys as ao, type Hooks as ap, type HookKeys as aq, type BaseHooksListItem as ar, type BaseHooksList as as, type ExternalHooksListItem as at, type HooksList as au, type InferHookHandler as av, type InferHookReturnType as aw, type InferHookParameters as ax, type InferHookThisType as ay, type PluginHookObject as az, type BabelTransformPlugin as b, type InferResolvedConfig as b0, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
|
package/dist/rolldown.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkVVFIZVYE_cjs = require('./chunk-VVFIZVYE.cjs');
|
|
6
|
+
require('./chunk-6UVRB3IN.cjs');
|
|
7
|
+
require('./chunk-MOH4CWHN.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
9
|
require('./chunk-RF6RSWD4.cjs');
|
|
10
10
|
require('./chunk-FCTNMPJF.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVVFIZVYE_cjs.rolldown_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkVVFIZVYE_cjs.rolldown; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rolldown", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkVVFIZVYE_cjs.rolldown; }
|
|
26
26
|
});
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rolldown$1 from 'rolldown';
|
|
2
|
-
import { v as RolldownUserConfig } from './resolved-
|
|
2
|
+
import { v as RolldownUserConfig } from './resolved-ohMN-3VJ.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rolldown$1 from 'rolldown';
|
|
2
|
-
import { v as RolldownUserConfig } from './resolved-
|
|
2
|
+
import { v as RolldownUserConfig } from './resolved-Sxyrlt6g.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/rolldown.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-2KGMZZ36.js';
|
|
2
|
+
import './chunk-WRP6ANCC.js';
|
|
3
|
+
import './chunk-F4TS44KB.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
5
|
import './chunk-OBYFBPPO.js';
|
|
6
6
|
import './chunk-WJ4CZKXY.js';
|
package/dist/rollup.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkMZQXGWUK_cjs = require('./chunk-MZQXGWUK.cjs');
|
|
6
|
+
require('./chunk-6UVRB3IN.cjs');
|
|
7
|
+
require('./chunk-MOH4CWHN.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
9
|
require('./chunk-RF6RSWD4.cjs');
|
|
10
10
|
require('./chunk-FCTNMPJF.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkMZQXGWUK_cjs.rollup_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkMZQXGWUK_cjs.rollup; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rollup", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMZQXGWUK_cjs.rollup; }
|
|
26
26
|
});
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rollup$1 from 'rollup';
|
|
2
|
-
import { u as RollupUserConfig } from './resolved-
|
|
2
|
+
import { u as RollupUserConfig } from './resolved-ohMN-3VJ.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/rollup.d.ts
CHANGED
package/dist/rollup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { rollup_default as default, rollup as "module.exports", rollup } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { rollup_default as default, rollup as "module.exports", rollup } from './chunk-A2EZ3M22.js';
|
|
2
|
+
import './chunk-WRP6ANCC.js';
|
|
3
|
+
import './chunk-F4TS44KB.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
5
|
import './chunk-OBYFBPPO.js';
|
|
6
6
|
import './chunk-WJ4CZKXY.js';
|
package/dist/rspack.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkOQNYDN5F_cjs = require('./chunk-OQNYDN5F.cjs');
|
|
6
|
+
require('./chunk-6UVRB3IN.cjs');
|
|
7
|
+
require('./chunk-MOH4CWHN.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
9
|
require('./chunk-RF6RSWD4.cjs');
|
|
10
10
|
require('./chunk-FCTNMPJF.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkOQNYDN5F_cjs.rspack_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkOQNYDN5F_cjs.rspack; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rspack", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkOQNYDN5F_cjs.rspack; }
|
|
26
26
|
});
|
package/dist/rspack.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import { t as RspackUserConfig } from './resolved-
|
|
2
|
+
import { t as RspackUserConfig } from './resolved-ohMN-3VJ.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import { t as RspackUserConfig } from './resolved-
|
|
2
|
+
import { t as RspackUserConfig } from './resolved-Sxyrlt6g.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/rspack.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { rspack_default as default, rspack as "module.exports", rspack } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { rspack_default as default, rspack as "module.exports", rspack } from './chunk-QH3M5FBF.js';
|
|
2
|
+
import './chunk-WRP6ANCC.js';
|
|
3
|
+
import './chunk-F4TS44KB.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
5
|
import './chunk-OBYFBPPO.js';
|
|
6
6
|
import './chunk-WJ4CZKXY.js';
|
package/dist/tsup.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
5
|
+
var chunkIMMNZSFZ_cjs = require('./chunk-IMMNZSFZ.cjs');
|
|
6
|
+
require('./chunk-T4AJOD6A.cjs');
|
|
7
|
+
require('./chunk-WE7PLY4H.cjs');
|
|
8
|
+
require('./chunk-6UVRB3IN.cjs');
|
|
9
|
+
require('./chunk-MOH4CWHN.cjs');
|
|
10
10
|
require('./chunk-ETKZMGLN.cjs');
|
|
11
11
|
require('./chunk-RF6RSWD4.cjs');
|
|
12
12
|
require('./chunk-FCTNMPJF.cjs');
|
|
@@ -16,13 +16,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "default", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkIMMNZSFZ_cjs.tsup_default; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "module.exports", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkIMMNZSFZ_cjs.tsup; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "tsup", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkIMMNZSFZ_cjs.tsup; }
|
|
28
28
|
});
|
package/dist/tsup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { tsup_default as default, tsup as "module.exports", tsup } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { tsup_default as default, tsup as "module.exports", tsup } from './chunk-FYKDALJL.js';
|
|
2
|
+
import './chunk-JKF342AW.js';
|
|
3
|
+
import './chunk-TY3QAXEY.js';
|
|
4
|
+
import './chunk-WRP6ANCC.js';
|
|
5
|
+
import './chunk-F4TS44KB.js';
|
|
6
6
|
import './chunk-JQCWV4DT.js';
|
|
7
7
|
import './chunk-OBYFBPPO.js';
|
|
8
8
|
import './chunk-WJ4CZKXY.js';
|
package/dist/types/babel.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@babel/core';
|
|
2
2
|
import '@babel/helper-plugin-utils';
|
|
3
|
-
export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-
|
|
3
|
+
export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-ohMN-3VJ.cjs';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
|
6
6
|
import '@stryke/types/file';
|
package/dist/types/babel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@babel/core';
|
|
2
2
|
import '@babel/helper-plugin-utils';
|
|
3
|
-
export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-
|
|
3
|
+
export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-Sxyrlt6g.js';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
|
6
6
|
import '@stryke/types/file';
|
package/dist/types/build.d.cts
CHANGED
|
@@ -18,6 +18,73 @@ interface BuildConfig {
|
|
|
18
18
|
* @defaultValue "neutral"
|
|
19
19
|
*/
|
|
20
20
|
platform?: "node" | "browser" | "neutral";
|
|
21
|
+
/**
|
|
22
|
+
* Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
25
|
+
*/
|
|
26
|
+
mainFields?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Array of strings indicating what conditions should be used for module resolution.
|
|
29
|
+
*/
|
|
30
|
+
conditions?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Array of strings indicating what file extensions should be used for module resolution.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
35
|
+
*/
|
|
36
|
+
extensions?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
|
|
42
|
+
*/
|
|
43
|
+
dedupe?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
46
|
+
*/
|
|
47
|
+
builtins?: (string | RegExp)[];
|
|
48
|
+
/**
|
|
49
|
+
* Define global variable replacements.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* This option allows you to specify global constants that will be replaced in the code during the build process. It is similar to the `define` option in esbuild and Vite, enabling you to replace specific identifiers with constant expressions at build time.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* {
|
|
57
|
+
* define: {
|
|
58
|
+
* __VERSION__: '"1.0.0"',
|
|
59
|
+
* __DEV__: 'process.env.NODE_ENV !== "production"'
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @see https://esbuild.github.io/api/#define
|
|
65
|
+
* @see https://vitejs.dev/config/build-options.html#define
|
|
66
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/replace
|
|
67
|
+
*/
|
|
68
|
+
define?: Record<string, any>;
|
|
69
|
+
/**
|
|
70
|
+
* Global variables that will have import statements injected where necessary
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* This option allows you to specify global variables that should be automatically imported from specified modules whenever they are used in the code. This is particularly useful for polyfilling Node.js globals in a browser environment.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* {
|
|
78
|
+
* inject: {
|
|
79
|
+
* process: 'process/browser',
|
|
80
|
+
* Buffer: ['buffer', 'Buffer'],
|
|
81
|
+
* }
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/inject
|
|
86
|
+
*/
|
|
87
|
+
inject?: Record<string, string | string[]>;
|
|
21
88
|
/**
|
|
22
89
|
* The alias mappings to use for module resolution during the build process.
|
|
23
90
|
*
|
|
@@ -33,6 +100,8 @@ interface BuildConfig {
|
|
|
33
100
|
* }
|
|
34
101
|
* }
|
|
35
102
|
* ```
|
|
103
|
+
*
|
|
104
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/alias
|
|
36
105
|
*/
|
|
37
106
|
alias?: Record<string, string>;
|
|
38
107
|
/**
|
|
@@ -51,15 +120,16 @@ interface BuildConfig {
|
|
|
51
120
|
*/
|
|
52
121
|
skipNodeModulesBundle?: boolean;
|
|
53
122
|
/**
|
|
54
|
-
*
|
|
123
|
+
* An optional set of override options to apply to the selected build variant.
|
|
55
124
|
*
|
|
56
|
-
* @
|
|
125
|
+
* @remarks
|
|
126
|
+
* This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
|
|
57
127
|
*/
|
|
58
|
-
|
|
128
|
+
override?: Record<string, any>;
|
|
59
129
|
}
|
|
60
|
-
type BuildResolvedConfig = BuildConfig
|
|
61
|
-
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
62
|
-
type ESBuildResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
130
|
+
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
131
|
+
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
132
|
+
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
63
133
|
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig;
|
|
64
134
|
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
65
135
|
type WebpackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|