@powerlines/plugin-rollup 0.7.18 → 0.7.19
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/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.ts +2 -2
- package/dist/helpers/unplugin.d.cts +2 -2
- package/dist/helpers/unplugin.d.ts +2 -2
- package/dist/{index-BO-ibNia.d.cts → index-CFL04PF-.d.cts} +136 -50
- package/dist/{index-BO-ibNia.d.ts → index-CFL04PF-.d.ts} +136 -50
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.ts +2 -2
- package/package.json +5 -5
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { createRollupPlugin } from './unplugin.cjs';
|
|
2
2
|
import 'esbuild';
|
|
3
|
-
import '../index-
|
|
3
|
+
import '../index-CFL04PF-.cjs';
|
|
4
4
|
import 'rollup';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/types/base';
|
|
6
7
|
import '@stryke/types/package-json';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'oxc-parser';
|
|
@@ -11,7 +12,6 @@ import 'unplugin';
|
|
|
11
12
|
import '@storm-software/build-tools/types';
|
|
12
13
|
import '@storm-software/config-tools/types';
|
|
13
14
|
import '@storm-software/config/types';
|
|
14
|
-
import '@stryke/types/base';
|
|
15
15
|
import '@stryke/types/configuration';
|
|
16
16
|
import '@stryke/types/file';
|
|
17
17
|
import 'vite';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { createRollupPlugin } from './unplugin.js';
|
|
2
2
|
import 'esbuild';
|
|
3
|
-
import '../index-
|
|
3
|
+
import '../index-CFL04PF-.js';
|
|
4
4
|
import 'rollup';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/types/base';
|
|
6
7
|
import '@stryke/types/package-json';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'oxc-parser';
|
|
@@ -11,7 +12,6 @@ import 'unplugin';
|
|
|
11
12
|
import '@storm-software/build-tools/types';
|
|
12
13
|
import '@storm-software/config-tools/types';
|
|
13
14
|
import '@storm-software/config/types';
|
|
14
|
-
import '@stryke/types/base';
|
|
15
15
|
import '@stryke/types/configuration';
|
|
16
16
|
import '@stryke/types/file';
|
|
17
17
|
import 'vite';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
-
import { R as RollupPluginContext } from '../index-
|
|
2
|
+
import { R as RollupPluginContext } from '../index-CFL04PF-.cjs';
|
|
3
3
|
import 'rollup';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
|
+
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jiti';
|
|
7
8
|
import 'oxc-parser';
|
|
@@ -10,7 +11,6 @@ import 'unplugin';
|
|
|
10
11
|
import '@storm-software/build-tools/types';
|
|
11
12
|
import '@storm-software/config-tools/types';
|
|
12
13
|
import '@storm-software/config/types';
|
|
13
|
-
import '@stryke/types/base';
|
|
14
14
|
import '@stryke/types/configuration';
|
|
15
15
|
import '@stryke/types/file';
|
|
16
16
|
import 'vite';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
-
import { R as RollupPluginContext } from '../index-
|
|
2
|
+
import { R as RollupPluginContext } from '../index-CFL04PF-.js';
|
|
3
3
|
import 'rollup';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
|
+
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jiti';
|
|
7
8
|
import 'oxc-parser';
|
|
@@ -10,7 +11,6 @@ import 'unplugin';
|
|
|
10
11
|
import '@storm-software/build-tools/types';
|
|
11
12
|
import '@storm-software/config-tools/types';
|
|
12
13
|
import '@storm-software/config/types';
|
|
13
|
-
import '@stryke/types/base';
|
|
14
14
|
import '@stryke/types/configuration';
|
|
15
15
|
import '@stryke/types/file';
|
|
16
16
|
import 'vite';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RollupOptions, OutputOptions } from 'rollup';
|
|
2
2
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
3
|
+
import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
@@ -8,7 +9,6 @@ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult
|
|
|
8
9
|
import { Format } from '@storm-software/build-tools/types';
|
|
9
10
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
10
11
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
11
|
-
import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
|
|
12
12
|
import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
13
13
|
import { AssetGlob } from '@stryke/types/file';
|
|
14
14
|
import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
|
|
@@ -28,6 +28,73 @@ interface BuildConfig {
|
|
|
28
28
|
* @defaultValue "neutral"
|
|
29
29
|
*/
|
|
30
30
|
platform?: "node" | "browser" | "neutral";
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
35
|
+
*/
|
|
36
|
+
mainFields?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Array of strings indicating what conditions should be used for module resolution.
|
|
39
|
+
*/
|
|
40
|
+
conditions?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Array of strings indicating what file extensions should be used for module resolution.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
45
|
+
*/
|
|
46
|
+
extensions?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* 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.
|
|
52
|
+
*/
|
|
53
|
+
dedupe?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
56
|
+
*/
|
|
57
|
+
builtins?: (string | RegExp)[];
|
|
58
|
+
/**
|
|
59
|
+
* Define global variable replacements.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* 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.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* {
|
|
67
|
+
* define: {
|
|
68
|
+
* __VERSION__: '"1.0.0"',
|
|
69
|
+
* __DEV__: 'process.env.NODE_ENV !== "production"'
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @see https://esbuild.github.io/api/#define
|
|
75
|
+
* @see https://vitejs.dev/config/build-options.html#define
|
|
76
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/replace
|
|
77
|
+
*/
|
|
78
|
+
define?: Record<string, any>;
|
|
79
|
+
/**
|
|
80
|
+
* Global variables that will have import statements injected where necessary
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* 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.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* {
|
|
88
|
+
* inject: {
|
|
89
|
+
* process: 'process/browser',
|
|
90
|
+
* Buffer: ['buffer', 'Buffer'],
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/inject
|
|
96
|
+
*/
|
|
97
|
+
inject?: Record<string, string | string[]>;
|
|
31
98
|
/**
|
|
32
99
|
* The alias mappings to use for module resolution during the build process.
|
|
33
100
|
*
|
|
@@ -43,6 +110,8 @@ interface BuildConfig {
|
|
|
43
110
|
* }
|
|
44
111
|
* }
|
|
45
112
|
* ```
|
|
113
|
+
*
|
|
114
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/alias
|
|
46
115
|
*/
|
|
47
116
|
alias?: Record<string, string>;
|
|
48
117
|
/**
|
|
@@ -61,13 +130,14 @@ interface BuildConfig {
|
|
|
61
130
|
*/
|
|
62
131
|
skipNodeModulesBundle?: boolean;
|
|
63
132
|
/**
|
|
64
|
-
*
|
|
133
|
+
* An optional set of override options to apply to the selected build variant.
|
|
65
134
|
*
|
|
66
|
-
* @
|
|
135
|
+
* @remarks
|
|
136
|
+
* 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.
|
|
67
137
|
*/
|
|
68
|
-
|
|
138
|
+
override?: Record<string, any>;
|
|
69
139
|
}
|
|
70
|
-
type BuildResolvedConfig = BuildConfig
|
|
140
|
+
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
71
141
|
type RollupBuildOutputConfig = Omit<OutputOptions, "dir" | "format">;
|
|
72
142
|
type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "output" | "logLevel"> & {
|
|
73
143
|
output: RollupBuildOutputConfig | RollupBuildOutputConfig[];
|
|
@@ -648,24 +718,33 @@ interface BaseConfig {
|
|
|
648
718
|
* The entry point(s) for the application
|
|
649
719
|
*/
|
|
650
720
|
entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
|
|
721
|
+
/**
|
|
722
|
+
* Configuration for the output of the build process
|
|
723
|
+
*/
|
|
724
|
+
output?: OutputConfig;
|
|
651
725
|
/**
|
|
652
726
|
* Configuration for linting the source code
|
|
727
|
+
*
|
|
728
|
+
* @remarks
|
|
729
|
+
* If set to `false`, linting will be disabled.
|
|
653
730
|
*/
|
|
654
731
|
lint?: Record<string, any> | false;
|
|
655
732
|
/**
|
|
656
733
|
* Configuration for testing the source code
|
|
734
|
+
*
|
|
735
|
+
* @remarks
|
|
736
|
+
* If set to `false`, testing will be disabled.
|
|
657
737
|
*/
|
|
658
738
|
test?: Record<string, any> | false;
|
|
659
|
-
/**
|
|
660
|
-
* Configuration for the output of the build process
|
|
661
|
-
*/
|
|
662
|
-
output?: OutputConfig;
|
|
663
739
|
/**
|
|
664
740
|
* Configuration for the transformation of the source code
|
|
665
741
|
*/
|
|
666
742
|
transform?: Record<string, any>;
|
|
667
743
|
/**
|
|
668
|
-
*
|
|
744
|
+
* Configuration provided to build processes
|
|
745
|
+
*
|
|
746
|
+
* @remarks
|
|
747
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
669
748
|
*/
|
|
670
749
|
build?: BuildConfig;
|
|
671
750
|
/**
|
|
@@ -695,37 +774,6 @@ interface BaseConfig {
|
|
|
695
774
|
tsconfigRaw?: TSConfig;
|
|
696
775
|
}
|
|
697
776
|
interface EnvironmentConfig extends BaseConfig {
|
|
698
|
-
/**
|
|
699
|
-
* 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.
|
|
700
|
-
*
|
|
701
|
-
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
702
|
-
*/
|
|
703
|
-
mainFields?: string[];
|
|
704
|
-
/**
|
|
705
|
-
* Array of strings indicating what conditions should be used for module resolution.
|
|
706
|
-
*/
|
|
707
|
-
conditions?: string[];
|
|
708
|
-
/**
|
|
709
|
-
* Array of strings indicating what conditions should be used for external modules.
|
|
710
|
-
*/
|
|
711
|
-
externalConditions?: string[];
|
|
712
|
-
/**
|
|
713
|
-
* Array of strings indicating what file extensions should be used for module resolution.
|
|
714
|
-
*
|
|
715
|
-
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
716
|
-
*/
|
|
717
|
-
extensions?: string[];
|
|
718
|
-
/**
|
|
719
|
-
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
720
|
-
*
|
|
721
|
-
* @remarks
|
|
722
|
-
* 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.
|
|
723
|
-
*/
|
|
724
|
-
dedupe?: string[];
|
|
725
|
-
/**
|
|
726
|
-
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
727
|
-
*/
|
|
728
|
-
builtins?: (string | RegExp)[];
|
|
729
777
|
/**
|
|
730
778
|
* Configuration options for the preview server
|
|
731
779
|
*/
|
|
@@ -798,14 +846,26 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
798
846
|
*/
|
|
799
847
|
framework?: string;
|
|
800
848
|
}
|
|
801
|
-
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
802
|
-
|
|
849
|
+
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
|
|
850
|
+
/**
|
|
851
|
+
* Configuration provided to build processes
|
|
852
|
+
*
|
|
853
|
+
* @remarks
|
|
854
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
855
|
+
*/
|
|
856
|
+
build: Omit<TBuildConfig, "override"> & {
|
|
803
857
|
/**
|
|
804
858
|
* The build variant being used by the Powerlines engine.
|
|
805
859
|
*/
|
|
806
860
|
variant?: TBuildVariant;
|
|
861
|
+
/**
|
|
862
|
+
* An optional set of override options to apply to the selected build variant.
|
|
863
|
+
*
|
|
864
|
+
* @remarks
|
|
865
|
+
* 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.
|
|
866
|
+
*/
|
|
867
|
+
override?: Partial<TBuildResolvedConfig>;
|
|
807
868
|
};
|
|
808
|
-
override?: Partial<TBuildResolvedConfig>;
|
|
809
869
|
};
|
|
810
870
|
type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
|
|
811
871
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "release" | "clean";
|
|
@@ -829,7 +889,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
829
889
|
*/
|
|
830
890
|
output?: string;
|
|
831
891
|
}
|
|
832
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"
|
|
892
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr">> & {
|
|
833
893
|
/**
|
|
834
894
|
* The name of the environment
|
|
835
895
|
*/
|
|
@@ -846,7 +906,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
846
906
|
/**
|
|
847
907
|
* The resolved options for the Powerlines project configuration.
|
|
848
908
|
*/
|
|
849
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "
|
|
909
|
+
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">> & {
|
|
850
910
|
/**
|
|
851
911
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
852
912
|
*/
|
|
@@ -877,6 +937,13 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
877
937
|
* The output configuration options to use for the build process
|
|
878
938
|
*/
|
|
879
939
|
output: OutputResolvedConfig;
|
|
940
|
+
/**
|
|
941
|
+
* Configuration provided to build processes
|
|
942
|
+
*
|
|
943
|
+
* @remarks
|
|
944
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
945
|
+
*/
|
|
946
|
+
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
880
947
|
/**
|
|
881
948
|
* The log level to use for the Powerlines processes.
|
|
882
949
|
*
|
|
@@ -931,7 +998,13 @@ interface InitContextOptions {
|
|
|
931
998
|
*/
|
|
932
999
|
isHighPriority: boolean;
|
|
933
1000
|
}
|
|
934
|
-
|
|
1001
|
+
/**
|
|
1002
|
+
* The unresolved Powerlines context.
|
|
1003
|
+
*
|
|
1004
|
+
* @remarks
|
|
1005
|
+
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
1006
|
+
*/
|
|
1007
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
935
1008
|
/**
|
|
936
1009
|
* The Storm workspace configuration
|
|
937
1010
|
*/
|
|
@@ -939,7 +1012,10 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
939
1012
|
/**
|
|
940
1013
|
* An object containing the options provided to Powerlines
|
|
941
1014
|
*/
|
|
942
|
-
config: TResolvedConfig
|
|
1015
|
+
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1016
|
+
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1017
|
+
output: TResolvedConfig["output"];
|
|
1018
|
+
};
|
|
943
1019
|
/**
|
|
944
1020
|
* A logging function for the Powerlines engine
|
|
945
1021
|
*/
|
|
@@ -1096,6 +1172,12 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
1096
1172
|
*/
|
|
1097
1173
|
extendLog: (name: string) => LogFn;
|
|
1098
1174
|
}
|
|
1175
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
1176
|
+
/**
|
|
1177
|
+
* The fully resolved Powerlines configuration
|
|
1178
|
+
*/
|
|
1179
|
+
config: TResolvedConfig;
|
|
1180
|
+
};
|
|
1099
1181
|
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
|
|
1100
1182
|
/**
|
|
1101
1183
|
* The environment specific resolved configuration
|
|
@@ -1136,6 +1218,10 @@ interface GenerateTypesResult {
|
|
|
1136
1218
|
directives?: string[];
|
|
1137
1219
|
code: string;
|
|
1138
1220
|
}
|
|
1221
|
+
type DeepPartial<T> = {
|
|
1222
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1223
|
+
};
|
|
1224
|
+
type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
|
|
1139
1225
|
interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
|
|
1140
1226
|
/**
|
|
1141
1227
|
* A function that returns configuration options to be merged with the build context's options.
|
|
@@ -1151,7 +1237,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
1151
1237
|
* @param config - The partial configuration object to be modified.
|
|
1152
1238
|
* @returns A promise that resolves to a partial configuration object.
|
|
1153
1239
|
*/
|
|
1154
|
-
config: (this:
|
|
1240
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
|
|
1155
1241
|
/**
|
|
1156
1242
|
* 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.
|
|
1157
1243
|
*
|
|
@@ -1254,7 +1340,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1254
1340
|
* @param config - The partial configuration object to be modified.
|
|
1255
1341
|
* @returns A promise that resolves to a partial configuration object.
|
|
1256
1342
|
*/
|
|
1257
|
-
config: PluginHook<(this:
|
|
1343
|
+
config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
|
|
1258
1344
|
/**
|
|
1259
1345
|
* A hook that is called to transform the source code.
|
|
1260
1346
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RollupOptions, OutputOptions } from 'rollup';
|
|
2
2
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
3
|
+
import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
@@ -8,7 +9,6 @@ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult
|
|
|
8
9
|
import { Format } from '@storm-software/build-tools/types';
|
|
9
10
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
10
11
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
11
|
-
import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
|
|
12
12
|
import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
13
13
|
import { AssetGlob } from '@stryke/types/file';
|
|
14
14
|
import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
|
|
@@ -28,6 +28,73 @@ interface BuildConfig {
|
|
|
28
28
|
* @defaultValue "neutral"
|
|
29
29
|
*/
|
|
30
30
|
platform?: "node" | "browser" | "neutral";
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
35
|
+
*/
|
|
36
|
+
mainFields?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Array of strings indicating what conditions should be used for module resolution.
|
|
39
|
+
*/
|
|
40
|
+
conditions?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Array of strings indicating what file extensions should be used for module resolution.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
45
|
+
*/
|
|
46
|
+
extensions?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* 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.
|
|
52
|
+
*/
|
|
53
|
+
dedupe?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
56
|
+
*/
|
|
57
|
+
builtins?: (string | RegExp)[];
|
|
58
|
+
/**
|
|
59
|
+
* Define global variable replacements.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* 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.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* {
|
|
67
|
+
* define: {
|
|
68
|
+
* __VERSION__: '"1.0.0"',
|
|
69
|
+
* __DEV__: 'process.env.NODE_ENV !== "production"'
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @see https://esbuild.github.io/api/#define
|
|
75
|
+
* @see https://vitejs.dev/config/build-options.html#define
|
|
76
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/replace
|
|
77
|
+
*/
|
|
78
|
+
define?: Record<string, any>;
|
|
79
|
+
/**
|
|
80
|
+
* Global variables that will have import statements injected where necessary
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* 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.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* {
|
|
88
|
+
* inject: {
|
|
89
|
+
* process: 'process/browser',
|
|
90
|
+
* Buffer: ['buffer', 'Buffer'],
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/inject
|
|
96
|
+
*/
|
|
97
|
+
inject?: Record<string, string | string[]>;
|
|
31
98
|
/**
|
|
32
99
|
* The alias mappings to use for module resolution during the build process.
|
|
33
100
|
*
|
|
@@ -43,6 +110,8 @@ interface BuildConfig {
|
|
|
43
110
|
* }
|
|
44
111
|
* }
|
|
45
112
|
* ```
|
|
113
|
+
*
|
|
114
|
+
* @see https://github.com/rollup/plugins/tree/master/packages/alias
|
|
46
115
|
*/
|
|
47
116
|
alias?: Record<string, string>;
|
|
48
117
|
/**
|
|
@@ -61,13 +130,14 @@ interface BuildConfig {
|
|
|
61
130
|
*/
|
|
62
131
|
skipNodeModulesBundle?: boolean;
|
|
63
132
|
/**
|
|
64
|
-
*
|
|
133
|
+
* An optional set of override options to apply to the selected build variant.
|
|
65
134
|
*
|
|
66
|
-
* @
|
|
135
|
+
* @remarks
|
|
136
|
+
* 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.
|
|
67
137
|
*/
|
|
68
|
-
|
|
138
|
+
override?: Record<string, any>;
|
|
69
139
|
}
|
|
70
|
-
type BuildResolvedConfig = BuildConfig
|
|
140
|
+
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
71
141
|
type RollupBuildOutputConfig = Omit<OutputOptions, "dir" | "format">;
|
|
72
142
|
type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "output" | "logLevel"> & {
|
|
73
143
|
output: RollupBuildOutputConfig | RollupBuildOutputConfig[];
|
|
@@ -648,24 +718,33 @@ interface BaseConfig {
|
|
|
648
718
|
* The entry point(s) for the application
|
|
649
719
|
*/
|
|
650
720
|
entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
|
|
721
|
+
/**
|
|
722
|
+
* Configuration for the output of the build process
|
|
723
|
+
*/
|
|
724
|
+
output?: OutputConfig;
|
|
651
725
|
/**
|
|
652
726
|
* Configuration for linting the source code
|
|
727
|
+
*
|
|
728
|
+
* @remarks
|
|
729
|
+
* If set to `false`, linting will be disabled.
|
|
653
730
|
*/
|
|
654
731
|
lint?: Record<string, any> | false;
|
|
655
732
|
/**
|
|
656
733
|
* Configuration for testing the source code
|
|
734
|
+
*
|
|
735
|
+
* @remarks
|
|
736
|
+
* If set to `false`, testing will be disabled.
|
|
657
737
|
*/
|
|
658
738
|
test?: Record<string, any> | false;
|
|
659
|
-
/**
|
|
660
|
-
* Configuration for the output of the build process
|
|
661
|
-
*/
|
|
662
|
-
output?: OutputConfig;
|
|
663
739
|
/**
|
|
664
740
|
* Configuration for the transformation of the source code
|
|
665
741
|
*/
|
|
666
742
|
transform?: Record<string, any>;
|
|
667
743
|
/**
|
|
668
|
-
*
|
|
744
|
+
* Configuration provided to build processes
|
|
745
|
+
*
|
|
746
|
+
* @remarks
|
|
747
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
669
748
|
*/
|
|
670
749
|
build?: BuildConfig;
|
|
671
750
|
/**
|
|
@@ -695,37 +774,6 @@ interface BaseConfig {
|
|
|
695
774
|
tsconfigRaw?: TSConfig;
|
|
696
775
|
}
|
|
697
776
|
interface EnvironmentConfig extends BaseConfig {
|
|
698
|
-
/**
|
|
699
|
-
* 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.
|
|
700
|
-
*
|
|
701
|
-
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
702
|
-
*/
|
|
703
|
-
mainFields?: string[];
|
|
704
|
-
/**
|
|
705
|
-
* Array of strings indicating what conditions should be used for module resolution.
|
|
706
|
-
*/
|
|
707
|
-
conditions?: string[];
|
|
708
|
-
/**
|
|
709
|
-
* Array of strings indicating what conditions should be used for external modules.
|
|
710
|
-
*/
|
|
711
|
-
externalConditions?: string[];
|
|
712
|
-
/**
|
|
713
|
-
* Array of strings indicating what file extensions should be used for module resolution.
|
|
714
|
-
*
|
|
715
|
-
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
716
|
-
*/
|
|
717
|
-
extensions?: string[];
|
|
718
|
-
/**
|
|
719
|
-
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
720
|
-
*
|
|
721
|
-
* @remarks
|
|
722
|
-
* 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.
|
|
723
|
-
*/
|
|
724
|
-
dedupe?: string[];
|
|
725
|
-
/**
|
|
726
|
-
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
727
|
-
*/
|
|
728
|
-
builtins?: (string | RegExp)[];
|
|
729
777
|
/**
|
|
730
778
|
* Configuration options for the preview server
|
|
731
779
|
*/
|
|
@@ -798,14 +846,26 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
798
846
|
*/
|
|
799
847
|
framework?: string;
|
|
800
848
|
}
|
|
801
|
-
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
802
|
-
|
|
849
|
+
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
|
|
850
|
+
/**
|
|
851
|
+
* Configuration provided to build processes
|
|
852
|
+
*
|
|
853
|
+
* @remarks
|
|
854
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
855
|
+
*/
|
|
856
|
+
build: Omit<TBuildConfig, "override"> & {
|
|
803
857
|
/**
|
|
804
858
|
* The build variant being used by the Powerlines engine.
|
|
805
859
|
*/
|
|
806
860
|
variant?: TBuildVariant;
|
|
861
|
+
/**
|
|
862
|
+
* An optional set of override options to apply to the selected build variant.
|
|
863
|
+
*
|
|
864
|
+
* @remarks
|
|
865
|
+
* 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.
|
|
866
|
+
*/
|
|
867
|
+
override?: Partial<TBuildResolvedConfig>;
|
|
807
868
|
};
|
|
808
|
-
override?: Partial<TBuildResolvedConfig>;
|
|
809
869
|
};
|
|
810
870
|
type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
|
|
811
871
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "release" | "clean";
|
|
@@ -829,7 +889,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
829
889
|
*/
|
|
830
890
|
output?: string;
|
|
831
891
|
}
|
|
832
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"
|
|
892
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr">> & {
|
|
833
893
|
/**
|
|
834
894
|
* The name of the environment
|
|
835
895
|
*/
|
|
@@ -846,7 +906,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
846
906
|
/**
|
|
847
907
|
* The resolved options for the Powerlines project configuration.
|
|
848
908
|
*/
|
|
849
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "
|
|
909
|
+
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">> & {
|
|
850
910
|
/**
|
|
851
911
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
852
912
|
*/
|
|
@@ -877,6 +937,13 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
877
937
|
* The output configuration options to use for the build process
|
|
878
938
|
*/
|
|
879
939
|
output: OutputResolvedConfig;
|
|
940
|
+
/**
|
|
941
|
+
* Configuration provided to build processes
|
|
942
|
+
*
|
|
943
|
+
* @remarks
|
|
944
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
945
|
+
*/
|
|
946
|
+
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
880
947
|
/**
|
|
881
948
|
* The log level to use for the Powerlines processes.
|
|
882
949
|
*
|
|
@@ -931,7 +998,13 @@ interface InitContextOptions {
|
|
|
931
998
|
*/
|
|
932
999
|
isHighPriority: boolean;
|
|
933
1000
|
}
|
|
934
|
-
|
|
1001
|
+
/**
|
|
1002
|
+
* The unresolved Powerlines context.
|
|
1003
|
+
*
|
|
1004
|
+
* @remarks
|
|
1005
|
+
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
1006
|
+
*/
|
|
1007
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
935
1008
|
/**
|
|
936
1009
|
* The Storm workspace configuration
|
|
937
1010
|
*/
|
|
@@ -939,7 +1012,10 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
939
1012
|
/**
|
|
940
1013
|
* An object containing the options provided to Powerlines
|
|
941
1014
|
*/
|
|
942
|
-
config: TResolvedConfig
|
|
1015
|
+
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1016
|
+
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1017
|
+
output: TResolvedConfig["output"];
|
|
1018
|
+
};
|
|
943
1019
|
/**
|
|
944
1020
|
* A logging function for the Powerlines engine
|
|
945
1021
|
*/
|
|
@@ -1096,6 +1172,12 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
1096
1172
|
*/
|
|
1097
1173
|
extendLog: (name: string) => LogFn;
|
|
1098
1174
|
}
|
|
1175
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
1176
|
+
/**
|
|
1177
|
+
* The fully resolved Powerlines configuration
|
|
1178
|
+
*/
|
|
1179
|
+
config: TResolvedConfig;
|
|
1180
|
+
};
|
|
1099
1181
|
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
|
|
1100
1182
|
/**
|
|
1101
1183
|
* The environment specific resolved configuration
|
|
@@ -1136,6 +1218,10 @@ interface GenerateTypesResult {
|
|
|
1136
1218
|
directives?: string[];
|
|
1137
1219
|
code: string;
|
|
1138
1220
|
}
|
|
1221
|
+
type DeepPartial<T> = {
|
|
1222
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1223
|
+
};
|
|
1224
|
+
type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
|
|
1139
1225
|
interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
|
|
1140
1226
|
/**
|
|
1141
1227
|
* A function that returns configuration options to be merged with the build context's options.
|
|
@@ -1151,7 +1237,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
1151
1237
|
* @param config - The partial configuration object to be modified.
|
|
1152
1238
|
* @returns A promise that resolves to a partial configuration object.
|
|
1153
1239
|
*/
|
|
1154
|
-
config: (this:
|
|
1240
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
|
|
1155
1241
|
/**
|
|
1156
1242
|
* 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.
|
|
1157
1243
|
*
|
|
@@ -1254,7 +1340,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1254
1340
|
* @param config - The partial configuration object to be modified.
|
|
1255
1341
|
* @returns A promise that resolves to a partial configuration object.
|
|
1256
1342
|
*/
|
|
1257
|
-
config: PluginHook<(this:
|
|
1343
|
+
config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
|
|
1258
1344
|
/**
|
|
1259
1345
|
* A hook that is called to transform the source code.
|
|
1260
1346
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-
|
|
2
|
-
export { b as RollupPluginResolvedConfig } from './index-
|
|
1
|
+
import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-CFL04PF-.cjs';
|
|
2
|
+
export { b as RollupPluginResolvedConfig } from './index-CFL04PF-.cjs';
|
|
3
3
|
export { createRollupPlugin } from './helpers/unplugin.cjs';
|
|
4
4
|
import 'rollup';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/types/base';
|
|
6
7
|
import '@stryke/types/package-json';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'oxc-parser';
|
|
@@ -11,7 +12,6 @@ import 'unplugin';
|
|
|
11
12
|
import '@storm-software/build-tools/types';
|
|
12
13
|
import '@storm-software/config-tools/types';
|
|
13
14
|
import '@storm-software/config/types';
|
|
14
|
-
import '@stryke/types/base';
|
|
15
15
|
import '@stryke/types/configuration';
|
|
16
16
|
import '@stryke/types/file';
|
|
17
17
|
import 'vite';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-
|
|
2
|
-
export { b as RollupPluginResolvedConfig } from './index-
|
|
1
|
+
import { R as RollupPluginContext, a as RollupPluginOptions, P as Plugin } from './index-CFL04PF-.js';
|
|
2
|
+
export { b as RollupPluginResolvedConfig } from './index-CFL04PF-.js';
|
|
3
3
|
export { createRollupPlugin } from './helpers/unplugin.js';
|
|
4
4
|
import 'rollup';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/types/base';
|
|
6
7
|
import '@stryke/types/package-json';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'oxc-parser';
|
|
@@ -11,7 +12,6 @@ import 'unplugin';
|
|
|
11
12
|
import '@storm-software/build-tools/types';
|
|
12
13
|
import '@storm-software/config-tools/types';
|
|
13
14
|
import '@storm-software/config/types';
|
|
14
|
-
import '@stryke/types/base';
|
|
15
15
|
import '@stryke/types/configuration';
|
|
16
16
|
import '@stryke/types/file';
|
|
17
17
|
import 'vite';
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-
|
|
1
|
+
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-CFL04PF-.cjs';
|
|
2
2
|
import 'rollup';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'oxc-parser';
|
|
@@ -9,7 +10,6 @@ import 'unplugin';
|
|
|
9
10
|
import '@storm-software/build-tools/types';
|
|
10
11
|
import '@storm-software/config-tools/types';
|
|
11
12
|
import '@storm-software/config/types';
|
|
12
|
-
import '@stryke/types/base';
|
|
13
13
|
import '@stryke/types/configuration';
|
|
14
14
|
import '@stryke/types/file';
|
|
15
15
|
import 'vite';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-
|
|
1
|
+
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-CFL04PF-.js';
|
|
2
2
|
import 'rollup';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'oxc-parser';
|
|
@@ -9,7 +10,6 @@ import 'unplugin';
|
|
|
9
10
|
import '@storm-software/build-tools/types';
|
|
10
11
|
import '@storm-software/config-tools/types';
|
|
11
12
|
import '@storm-software/config/types';
|
|
12
|
-
import '@stryke/types/base';
|
|
13
13
|
import '@stryke/types/configuration';
|
|
14
14
|
import '@stryke/types/file';
|
|
15
15
|
import 'vite';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-
|
|
1
|
+
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-CFL04PF-.cjs';
|
|
2
2
|
import 'rollup';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'oxc-parser';
|
|
@@ -9,7 +10,6 @@ import 'unplugin';
|
|
|
9
10
|
import '@storm-software/build-tools/types';
|
|
10
11
|
import '@storm-software/config-tools/types';
|
|
11
12
|
import '@storm-software/config/types';
|
|
12
|
-
import '@stryke/types/base';
|
|
13
13
|
import '@stryke/types/configuration';
|
|
14
14
|
import '@stryke/types/file';
|
|
15
15
|
import 'vite';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-
|
|
1
|
+
export { R as RollupPluginContext, a as RollupPluginOptions, b as RollupPluginResolvedConfig } from '../index-CFL04PF-.js';
|
|
2
2
|
import 'rollup';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'oxc-parser';
|
|
@@ -9,7 +10,6 @@ import 'unplugin';
|
|
|
9
10
|
import '@storm-software/build-tools/types';
|
|
10
11
|
import '@storm-software/config-tools/types';
|
|
11
12
|
import '@storm-software/config/types';
|
|
12
|
-
import '@stryke/types/base';
|
|
13
13
|
import '@stryke/types/configuration';
|
|
14
14
|
import '@stryke/types/file';
|
|
15
15
|
import 'vite';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rollup",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -134,15 +134,15 @@
|
|
|
134
134
|
"@stryke/types": "^0.10.2",
|
|
135
135
|
"defu": "^6.1.4",
|
|
136
136
|
"jiti": "^2.6.1",
|
|
137
|
-
"powerlines": "^0.
|
|
137
|
+
"powerlines": "^0.20.0",
|
|
138
138
|
"rollup": "^4.53.2",
|
|
139
139
|
"unplugin": "^2.3.10"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@powerlines/nx": "^0.10.
|
|
143
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
142
|
+
"@powerlines/nx": "^0.10.10",
|
|
143
|
+
"@powerlines/plugin-plugin": "^0.11.18",
|
|
144
144
|
"@types/node": "^22.19.1"
|
|
145
145
|
},
|
|
146
146
|
"publishConfig": { "access": "public" },
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "e33924ab31dbf508b8983523edbaecffeebbee4f"
|
|
148
148
|
}
|