@powerlines/core 0.43.30 → 0.44.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/constants/index.cjs +4 -0
- package/dist/constants/index.d.cts +2 -1
- package/dist/constants/index.d.mts +2 -1
- package/dist/constants/index.mjs +2 -1
- package/dist/constants/log-level.cjs +43 -0
- package/dist/constants/log-level.d.cts +40 -0
- package/dist/constants/log-level.d.cts.map +1 -0
- package/dist/constants/log-level.d.mts +40 -0
- package/dist/constants/log-level.d.mts.map +1 -0
- package/dist/constants/log-level.mjs +41 -0
- package/dist/constants/log-level.mjs.map +1 -0
- package/dist/index.cjs +6 -3
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -3
- package/dist/lib/index.cjs +3 -3
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.mts +2 -2
- package/dist/lib/index.mjs +3 -3
- package/dist/lib/logger.cjs +29 -22
- package/dist/lib/logger.d.cts +11 -22
- package/dist/lib/logger.d.cts.map +1 -1
- package/dist/lib/logger.d.mts +11 -22
- package/dist/lib/logger.d.mts.map +1 -1
- package/dist/lib/logger.mjs +28 -21
- package/dist/lib/logger.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +3 -3
- package/dist/lib/unplugin/plugin.mjs +4 -4
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/index.cjs +1 -1
- package/dist/lib/utilities/index.mjs +1 -1
- package/dist/lib/utilities/write-file.cjs +1 -2
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.cts.map +1 -1
- package/dist/lib/utilities/write-file.d.mts +1 -1
- package/dist/lib/utilities/write-file.d.mts.map +1 -1
- package/dist/lib/utilities/write-file.mjs +1 -2
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +3 -2
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.mts +2 -2
- package/dist/plugin-utils/index.mjs +3 -3
- package/dist/plugin-utils/logging.cjs +54 -1
- package/dist/plugin-utils/logging.d.cts +11 -1
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +11 -1
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +53 -1
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/types/config.d.cts +30 -23
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +30 -23
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +95 -19
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +95 -19
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/log.cjs +26 -0
- package/dist/types/log.d.cts +90 -0
- package/dist/types/log.d.cts.map +1 -0
- package/dist/types/log.d.mts +90 -0
- package/dist/types/log.d.mts.map +1 -0
- package/dist/types/log.mjs +25 -0
- package/dist/types/log.mjs.map +1 -0
- package/package.json +2 -2
package/dist/types/context.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
2
|
import { Plugin } from "./plugin.cjs";
|
|
3
3
|
import { HooksList, HooksListItem } from "./hooks.cjs";
|
|
4
|
+
import { LogFn, LogFnConfig, LogLevelResolvedConfig, LogMeta } from "./log.cjs";
|
|
4
5
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
5
|
-
import { EngineOptions, EnvironmentResolvedConfig,
|
|
6
|
+
import { EngineOptions, EnvironmentResolvedConfig, ParsedUserConfig, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions } from "./config.cjs";
|
|
6
7
|
import { Jiti } from "jiti";
|
|
7
8
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
9
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
@@ -12,7 +13,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
12
13
|
import { Range } from "semver";
|
|
13
14
|
import { RequestInfo, Response } from "undici";
|
|
14
15
|
import { Unimport } from "unimport";
|
|
15
|
-
import { ExternalIdResult, UnpluginBuildContext,
|
|
16
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginMessage } from "unplugin";
|
|
16
17
|
|
|
17
18
|
//#region src/types/context.d.ts
|
|
18
19
|
interface MetaInfo {
|
|
@@ -128,6 +129,9 @@ interface ResolveResult extends ExternalIdResult {
|
|
|
128
129
|
*/
|
|
129
130
|
virtual?: boolean;
|
|
130
131
|
}
|
|
132
|
+
interface PowerlinesMessage extends UnpluginMessage {
|
|
133
|
+
meta: Partial<LogMeta>;
|
|
134
|
+
}
|
|
131
135
|
/**
|
|
132
136
|
* The base Powerlines context.
|
|
133
137
|
*
|
|
@@ -142,7 +146,7 @@ interface BaseContext {
|
|
|
142
146
|
/**
|
|
143
147
|
* The timestamp when the context was initialized
|
|
144
148
|
*/
|
|
145
|
-
timestamp:
|
|
149
|
+
timestamp: number;
|
|
146
150
|
/**
|
|
147
151
|
* The Powerlines environment paths
|
|
148
152
|
*/
|
|
@@ -158,7 +162,7 @@ interface BaseContext {
|
|
|
158
162
|
/**
|
|
159
163
|
* The log level to use for the Powerlines processes.
|
|
160
164
|
*/
|
|
161
|
-
logLevel:
|
|
165
|
+
logLevel: LogLevelResolvedConfig;
|
|
162
166
|
/**
|
|
163
167
|
* A logging function for the Powerlines engine
|
|
164
168
|
*/
|
|
@@ -166,27 +170,27 @@ interface BaseContext {
|
|
|
166
170
|
/**
|
|
167
171
|
* A logging function for fatal messages
|
|
168
172
|
*/
|
|
169
|
-
fatal: (message: string |
|
|
173
|
+
fatal: (message: string | PowerlinesMessage) => void;
|
|
170
174
|
/**
|
|
171
175
|
* A logging function for error messages
|
|
172
176
|
*/
|
|
173
|
-
error: (message: string |
|
|
177
|
+
error: (message: string | PowerlinesMessage) => void;
|
|
174
178
|
/**
|
|
175
179
|
* A logging function for warning messages
|
|
176
180
|
*/
|
|
177
|
-
warn: (message: string |
|
|
181
|
+
warn: (message: string | PowerlinesMessage) => void;
|
|
178
182
|
/**
|
|
179
183
|
* A logging function for informational messages
|
|
180
184
|
*/
|
|
181
|
-
info: (message: string |
|
|
185
|
+
info: (message: string | PowerlinesMessage) => void;
|
|
182
186
|
/**
|
|
183
187
|
* A logging function for debug messages
|
|
184
188
|
*/
|
|
185
|
-
debug: (message: string |
|
|
189
|
+
debug: (message: string | PowerlinesMessage) => void;
|
|
186
190
|
/**
|
|
187
191
|
* A logging function for trace messages
|
|
188
192
|
*/
|
|
189
|
-
trace: (message: string |
|
|
193
|
+
trace: (message: string | PowerlinesMessage) => void;
|
|
190
194
|
/**
|
|
191
195
|
* A function to create a timer for measuring the duration of asynchronous operations
|
|
192
196
|
*
|
|
@@ -204,17 +208,17 @@ interface BaseContext {
|
|
|
204
208
|
/**
|
|
205
209
|
* Create a new logger instance
|
|
206
210
|
*
|
|
207
|
-
* @param
|
|
211
|
+
* @param config - The configuration options to use for the logger instance, which can be used to customize the appearance and behavior of the log messages generated by the logger. This is typically the name of the plugin or module that is creating the logger instance.
|
|
208
212
|
* @returns A logger function
|
|
209
213
|
*/
|
|
210
|
-
createLog: (
|
|
214
|
+
createLog: (config?: LogFnConfig) => LogFn;
|
|
211
215
|
/**
|
|
212
|
-
* Extend the current logger instance with a new
|
|
216
|
+
* Extend the current logger instance with a new source
|
|
213
217
|
*
|
|
214
|
-
* @param
|
|
218
|
+
* @param config - The overlay metadata to use for the badge in the log output.
|
|
215
219
|
* @returns A logger function
|
|
216
220
|
*/
|
|
217
|
-
extendLog: (
|
|
221
|
+
extendLog: (config: LogFnConfig) => LogFn;
|
|
218
222
|
/**
|
|
219
223
|
* A function to create a deep clone of the context
|
|
220
224
|
*
|
|
@@ -223,6 +227,49 @@ interface BaseContext {
|
|
|
223
227
|
*/
|
|
224
228
|
clone: () => Promise<BaseContext>;
|
|
225
229
|
}
|
|
230
|
+
interface ExecutionStateItem {
|
|
231
|
+
/**
|
|
232
|
+
* The timestamp when the command, hook, or plugin execution started
|
|
233
|
+
*/
|
|
234
|
+
timestamp: number;
|
|
235
|
+
/**
|
|
236
|
+
* The name of the command, hook, or plugin being executed
|
|
237
|
+
*/
|
|
238
|
+
name: string;
|
|
239
|
+
}
|
|
240
|
+
interface HookExecutionStateItem extends ExecutionStateItem {
|
|
241
|
+
/**
|
|
242
|
+
* The order of the hook being executed, which can be "pre", "post", or "normal". This indicates whether the hook is being executed
|
|
243
|
+
*/
|
|
244
|
+
order: "pre" | "post" | "normal";
|
|
245
|
+
}
|
|
246
|
+
interface ExecutionState {
|
|
247
|
+
/**
|
|
248
|
+
* A unique identifier for the current execution instance, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
249
|
+
*/
|
|
250
|
+
executionId: string;
|
|
251
|
+
/**
|
|
252
|
+
* The options provided to the Powerlines process for this execution
|
|
253
|
+
*/
|
|
254
|
+
options: ResolvedExecutionOptions;
|
|
255
|
+
/**
|
|
256
|
+
* An object representing the currently active command, hook, and plugin executions for this execution context
|
|
257
|
+
*/
|
|
258
|
+
active: {
|
|
259
|
+
/**
|
|
260
|
+
* The currently active command execution for this execution context
|
|
261
|
+
*/
|
|
262
|
+
command: ExecutionStateItem | null;
|
|
263
|
+
/**
|
|
264
|
+
* The currently active hook execution for this execution context, if any
|
|
265
|
+
*/
|
|
266
|
+
hook: HookExecutionStateItem | null;
|
|
267
|
+
/**
|
|
268
|
+
* The currently active plugin execution for this execution context, if any
|
|
269
|
+
*/
|
|
270
|
+
plugin: ExecutionStateItem | null;
|
|
271
|
+
};
|
|
272
|
+
}
|
|
226
273
|
/**
|
|
227
274
|
* The Powerlines engine context.
|
|
228
275
|
*
|
|
@@ -231,9 +278,9 @@ interface BaseContext {
|
|
|
231
278
|
*/
|
|
232
279
|
interface EngineContext extends BaseContext {
|
|
233
280
|
/**
|
|
234
|
-
* A list of
|
|
281
|
+
* A list of all command executions that will be run during the lifecycle of the engine
|
|
235
282
|
*/
|
|
236
|
-
executions:
|
|
283
|
+
executions: ExecutionState[];
|
|
237
284
|
}
|
|
238
285
|
/**
|
|
239
286
|
* The unresolved Powerlines context.
|
|
@@ -512,6 +559,10 @@ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<Unr
|
|
|
512
559
|
clone: () => Promise<Context<TResolvedConfig>>;
|
|
513
560
|
};
|
|
514
561
|
interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
562
|
+
/**
|
|
563
|
+
* The unique identifier of the execution context, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
564
|
+
*/
|
|
565
|
+
id: string;
|
|
515
566
|
/**
|
|
516
567
|
* The expected plugins options for the Powerlines project.
|
|
517
568
|
*
|
|
@@ -592,7 +643,20 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
592
643
|
clone: () => Promise<ExecutionContext<TResolvedConfig>>;
|
|
593
644
|
}
|
|
594
645
|
interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
646
|
+
/**
|
|
647
|
+
* The unique identifier of the plugin, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
648
|
+
*/
|
|
649
|
+
pluginId: string;
|
|
650
|
+
/**
|
|
651
|
+
* The plugin instance associated with this context, which can be used to access the plugin's options and other properties.
|
|
652
|
+
*/
|
|
595
653
|
plugin: Plugin<PluginContext<TResolvedConfig>>;
|
|
654
|
+
/**
|
|
655
|
+
* The context for the plugin, which provides access to the Powerlines engine and other utilities for interacting with the build process.
|
|
656
|
+
*
|
|
657
|
+
* @remarks
|
|
658
|
+
* This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
|
|
659
|
+
*/
|
|
596
660
|
context: PluginContext<TResolvedConfig>;
|
|
597
661
|
}
|
|
598
662
|
type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = HooksListItem<TContext, TKey> & {
|
|
@@ -600,6 +664,10 @@ type SelectHookResultItem<TContext extends PluginContext, TKey extends string> =
|
|
|
600
664
|
};
|
|
601
665
|
type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
|
|
602
666
|
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
667
|
+
/**
|
|
668
|
+
* The unique identifier of the environment associated with this context, which can be used for logging and other purposes to distinguish between different environments in the same process.
|
|
669
|
+
*/
|
|
670
|
+
id: string;
|
|
603
671
|
/**
|
|
604
672
|
* The expected plugins options for the Powerlines project.
|
|
605
673
|
*
|
|
@@ -631,7 +699,11 @@ interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedCo
|
|
|
631
699
|
*/
|
|
632
700
|
clone: () => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
633
701
|
}
|
|
634
|
-
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig
|
|
702
|
+
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
703
|
+
/**
|
|
704
|
+
* The unique identifier of the plugin associated with this context, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
705
|
+
*/
|
|
706
|
+
id: string;
|
|
635
707
|
/**
|
|
636
708
|
* The environment specific resolved configuration
|
|
637
709
|
*/
|
|
@@ -665,7 +737,11 @@ declare type __ΩParseOptions = any[];
|
|
|
665
737
|
declare type __ΩEmitOptions = any[];
|
|
666
738
|
declare type __ΩEmitEntryOptions = any[];
|
|
667
739
|
declare type __ΩResolveResult = any[];
|
|
740
|
+
declare type __ΩPowerlinesMessage = any[];
|
|
668
741
|
declare type __ΩBaseContext = any[];
|
|
742
|
+
declare type __ΩExecutionStateItem = any[];
|
|
743
|
+
declare type __ΩHookExecutionStateItem = any[];
|
|
744
|
+
declare type __ΩExecutionState = any[];
|
|
669
745
|
declare type __ΩEngineContext = any[];
|
|
670
746
|
declare type __ΩUnresolvedContext = any[];
|
|
671
747
|
declare type __ΩContext = any[];
|
|
@@ -678,5 +754,5 @@ declare type __ΩPluginContext = any[];
|
|
|
678
754
|
declare type __ΩBuildPluginContext = any[];
|
|
679
755
|
declare type __ΩWithUnpluginBuildContext = any[];
|
|
680
756
|
//#endregion
|
|
681
|
-
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
|
|
757
|
+
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, PowerlinesMessage, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩPowerlinesMessage, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
|
|
682
758
|
//# sourceMappingURL=context.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;UAqDiB,QAAA;EAAA;;;EAIf,QAAA;EAAA;;;EAKA,OAAA;EAeA;;;EAVA,SAAA;EAkBe;;;EAbf,SAAA;EAagC;;;EARhC,QAAA;EASY;AAGd;;EAPE,UAAA;AAAA;AAAA,UAGe,QAAA,SAAiB,IAAA;EAChC,MAAA,EAAQ,IAAA;AAAA;AAAA,UAGO,iBAAA;EACf,IAAA;EACA,GAAA,EAAK,SAAA;AAAA;;;;UAMU,UAAA;EAST;;;EALN,EAAA;EAewB;;AAG1B;EAbE,IAAA,EAAM,WAAA;;;;EAKN,GAAA;EAUwB;;;EALxB,MAAA,GAAS,iBAAA;AAAA;AAAA,KAGC,eAAA,GAAkB,IAAA,CAAK,QAAA;EACjC,WAAA,QAAmB,OAAA;EACnB,aAAA,GAAgB,MAAA,EAAQ,UAAA,KAAe,OAAA,CAAQ,UAAA;EAC/C,qBAAA,QAA6B,OAAA;AAAA;AAAA,UAGd,kBAAA;EACf,KAAA;AAAA;;;;UAMe,kBAAA;EAVqB;;AAGtC;;;EAaE,cAAA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, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
2
|
import { Plugin } from "./plugin.mjs";
|
|
3
3
|
import { HooksList, HooksListItem } from "./hooks.mjs";
|
|
4
|
+
import { LogFn, LogFnConfig, LogLevelResolvedConfig, LogMeta } from "./log.mjs";
|
|
4
5
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
5
|
-
import { EngineOptions, EnvironmentResolvedConfig,
|
|
6
|
-
import { ExternalIdResult, UnpluginBuildContext,
|
|
6
|
+
import { EngineOptions, EnvironmentResolvedConfig, ParsedUserConfig, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions } from "./config.mjs";
|
|
7
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginMessage } from "unplugin";
|
|
7
8
|
import MagicString, { SourceMap } from "magic-string";
|
|
8
9
|
import { Jiti } from "jiti";
|
|
9
10
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
@@ -128,6 +129,9 @@ interface ResolveResult extends ExternalIdResult {
|
|
|
128
129
|
*/
|
|
129
130
|
virtual?: boolean;
|
|
130
131
|
}
|
|
132
|
+
interface PowerlinesMessage extends UnpluginMessage {
|
|
133
|
+
meta: Partial<LogMeta>;
|
|
134
|
+
}
|
|
131
135
|
/**
|
|
132
136
|
* The base Powerlines context.
|
|
133
137
|
*
|
|
@@ -142,7 +146,7 @@ interface BaseContext {
|
|
|
142
146
|
/**
|
|
143
147
|
* The timestamp when the context was initialized
|
|
144
148
|
*/
|
|
145
|
-
timestamp:
|
|
149
|
+
timestamp: number;
|
|
146
150
|
/**
|
|
147
151
|
* The Powerlines environment paths
|
|
148
152
|
*/
|
|
@@ -158,7 +162,7 @@ interface BaseContext {
|
|
|
158
162
|
/**
|
|
159
163
|
* The log level to use for the Powerlines processes.
|
|
160
164
|
*/
|
|
161
|
-
logLevel:
|
|
165
|
+
logLevel: LogLevelResolvedConfig;
|
|
162
166
|
/**
|
|
163
167
|
* A logging function for the Powerlines engine
|
|
164
168
|
*/
|
|
@@ -166,27 +170,27 @@ interface BaseContext {
|
|
|
166
170
|
/**
|
|
167
171
|
* A logging function for fatal messages
|
|
168
172
|
*/
|
|
169
|
-
fatal: (message: string |
|
|
173
|
+
fatal: (message: string | PowerlinesMessage) => void;
|
|
170
174
|
/**
|
|
171
175
|
* A logging function for error messages
|
|
172
176
|
*/
|
|
173
|
-
error: (message: string |
|
|
177
|
+
error: (message: string | PowerlinesMessage) => void;
|
|
174
178
|
/**
|
|
175
179
|
* A logging function for warning messages
|
|
176
180
|
*/
|
|
177
|
-
warn: (message: string |
|
|
181
|
+
warn: (message: string | PowerlinesMessage) => void;
|
|
178
182
|
/**
|
|
179
183
|
* A logging function for informational messages
|
|
180
184
|
*/
|
|
181
|
-
info: (message: string |
|
|
185
|
+
info: (message: string | PowerlinesMessage) => void;
|
|
182
186
|
/**
|
|
183
187
|
* A logging function for debug messages
|
|
184
188
|
*/
|
|
185
|
-
debug: (message: string |
|
|
189
|
+
debug: (message: string | PowerlinesMessage) => void;
|
|
186
190
|
/**
|
|
187
191
|
* A logging function for trace messages
|
|
188
192
|
*/
|
|
189
|
-
trace: (message: string |
|
|
193
|
+
trace: (message: string | PowerlinesMessage) => void;
|
|
190
194
|
/**
|
|
191
195
|
* A function to create a timer for measuring the duration of asynchronous operations
|
|
192
196
|
*
|
|
@@ -204,17 +208,17 @@ interface BaseContext {
|
|
|
204
208
|
/**
|
|
205
209
|
* Create a new logger instance
|
|
206
210
|
*
|
|
207
|
-
* @param
|
|
211
|
+
* @param config - The configuration options to use for the logger instance, which can be used to customize the appearance and behavior of the log messages generated by the logger. This is typically the name of the plugin or module that is creating the logger instance.
|
|
208
212
|
* @returns A logger function
|
|
209
213
|
*/
|
|
210
|
-
createLog: (
|
|
214
|
+
createLog: (config?: LogFnConfig) => LogFn;
|
|
211
215
|
/**
|
|
212
|
-
* Extend the current logger instance with a new
|
|
216
|
+
* Extend the current logger instance with a new source
|
|
213
217
|
*
|
|
214
|
-
* @param
|
|
218
|
+
* @param config - The overlay metadata to use for the badge in the log output.
|
|
215
219
|
* @returns A logger function
|
|
216
220
|
*/
|
|
217
|
-
extendLog: (
|
|
221
|
+
extendLog: (config: LogFnConfig) => LogFn;
|
|
218
222
|
/**
|
|
219
223
|
* A function to create a deep clone of the context
|
|
220
224
|
*
|
|
@@ -223,6 +227,49 @@ interface BaseContext {
|
|
|
223
227
|
*/
|
|
224
228
|
clone: () => Promise<BaseContext>;
|
|
225
229
|
}
|
|
230
|
+
interface ExecutionStateItem {
|
|
231
|
+
/**
|
|
232
|
+
* The timestamp when the command, hook, or plugin execution started
|
|
233
|
+
*/
|
|
234
|
+
timestamp: number;
|
|
235
|
+
/**
|
|
236
|
+
* The name of the command, hook, or plugin being executed
|
|
237
|
+
*/
|
|
238
|
+
name: string;
|
|
239
|
+
}
|
|
240
|
+
interface HookExecutionStateItem extends ExecutionStateItem {
|
|
241
|
+
/**
|
|
242
|
+
* The order of the hook being executed, which can be "pre", "post", or "normal". This indicates whether the hook is being executed
|
|
243
|
+
*/
|
|
244
|
+
order: "pre" | "post" | "normal";
|
|
245
|
+
}
|
|
246
|
+
interface ExecutionState {
|
|
247
|
+
/**
|
|
248
|
+
* A unique identifier for the current execution instance, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
249
|
+
*/
|
|
250
|
+
executionId: string;
|
|
251
|
+
/**
|
|
252
|
+
* The options provided to the Powerlines process for this execution
|
|
253
|
+
*/
|
|
254
|
+
options: ResolvedExecutionOptions;
|
|
255
|
+
/**
|
|
256
|
+
* An object representing the currently active command, hook, and plugin executions for this execution context
|
|
257
|
+
*/
|
|
258
|
+
active: {
|
|
259
|
+
/**
|
|
260
|
+
* The currently active command execution for this execution context
|
|
261
|
+
*/
|
|
262
|
+
command: ExecutionStateItem | null;
|
|
263
|
+
/**
|
|
264
|
+
* The currently active hook execution for this execution context, if any
|
|
265
|
+
*/
|
|
266
|
+
hook: HookExecutionStateItem | null;
|
|
267
|
+
/**
|
|
268
|
+
* The currently active plugin execution for this execution context, if any
|
|
269
|
+
*/
|
|
270
|
+
plugin: ExecutionStateItem | null;
|
|
271
|
+
};
|
|
272
|
+
}
|
|
226
273
|
/**
|
|
227
274
|
* The Powerlines engine context.
|
|
228
275
|
*
|
|
@@ -231,9 +278,9 @@ interface BaseContext {
|
|
|
231
278
|
*/
|
|
232
279
|
interface EngineContext extends BaseContext {
|
|
233
280
|
/**
|
|
234
|
-
* A list of
|
|
281
|
+
* A list of all command executions that will be run during the lifecycle of the engine
|
|
235
282
|
*/
|
|
236
|
-
executions:
|
|
283
|
+
executions: ExecutionState[];
|
|
237
284
|
}
|
|
238
285
|
/**
|
|
239
286
|
* The unresolved Powerlines context.
|
|
@@ -512,6 +559,10 @@ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<Unr
|
|
|
512
559
|
clone: () => Promise<Context<TResolvedConfig>>;
|
|
513
560
|
};
|
|
514
561
|
interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
562
|
+
/**
|
|
563
|
+
* The unique identifier of the execution context, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
564
|
+
*/
|
|
565
|
+
id: string;
|
|
515
566
|
/**
|
|
516
567
|
* The expected plugins options for the Powerlines project.
|
|
517
568
|
*
|
|
@@ -592,7 +643,20 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
592
643
|
clone: () => Promise<ExecutionContext<TResolvedConfig>>;
|
|
593
644
|
}
|
|
594
645
|
interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
646
|
+
/**
|
|
647
|
+
* The unique identifier of the plugin, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
648
|
+
*/
|
|
649
|
+
pluginId: string;
|
|
650
|
+
/**
|
|
651
|
+
* The plugin instance associated with this context, which can be used to access the plugin's options and other properties.
|
|
652
|
+
*/
|
|
595
653
|
plugin: Plugin<PluginContext<TResolvedConfig>>;
|
|
654
|
+
/**
|
|
655
|
+
* The context for the plugin, which provides access to the Powerlines engine and other utilities for interacting with the build process.
|
|
656
|
+
*
|
|
657
|
+
* @remarks
|
|
658
|
+
* This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
|
|
659
|
+
*/
|
|
596
660
|
context: PluginContext<TResolvedConfig>;
|
|
597
661
|
}
|
|
598
662
|
type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = HooksListItem<TContext, TKey> & {
|
|
@@ -600,6 +664,10 @@ type SelectHookResultItem<TContext extends PluginContext, TKey extends string> =
|
|
|
600
664
|
};
|
|
601
665
|
type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
|
|
602
666
|
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
667
|
+
/**
|
|
668
|
+
* The unique identifier of the environment associated with this context, which can be used for logging and other purposes to distinguish between different environments in the same process.
|
|
669
|
+
*/
|
|
670
|
+
id: string;
|
|
603
671
|
/**
|
|
604
672
|
* The expected plugins options for the Powerlines project.
|
|
605
673
|
*
|
|
@@ -631,7 +699,11 @@ interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedCo
|
|
|
631
699
|
*/
|
|
632
700
|
clone: () => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
633
701
|
}
|
|
634
|
-
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig
|
|
702
|
+
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
703
|
+
/**
|
|
704
|
+
* The unique identifier of the plugin associated with this context, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
705
|
+
*/
|
|
706
|
+
id: string;
|
|
635
707
|
/**
|
|
636
708
|
* The environment specific resolved configuration
|
|
637
709
|
*/
|
|
@@ -665,7 +737,11 @@ declare type __ΩParseOptions = any[];
|
|
|
665
737
|
declare type __ΩEmitOptions = any[];
|
|
666
738
|
declare type __ΩEmitEntryOptions = any[];
|
|
667
739
|
declare type __ΩResolveResult = any[];
|
|
740
|
+
declare type __ΩPowerlinesMessage = any[];
|
|
668
741
|
declare type __ΩBaseContext = any[];
|
|
742
|
+
declare type __ΩExecutionStateItem = any[];
|
|
743
|
+
declare type __ΩHookExecutionStateItem = any[];
|
|
744
|
+
declare type __ΩExecutionState = any[];
|
|
669
745
|
declare type __ΩEngineContext = any[];
|
|
670
746
|
declare type __ΩUnresolvedContext = any[];
|
|
671
747
|
declare type __ΩContext = any[];
|
|
@@ -678,5 +754,5 @@ declare type __ΩPluginContext = any[];
|
|
|
678
754
|
declare type __ΩBuildPluginContext = any[];
|
|
679
755
|
declare type __ΩWithUnpluginBuildContext = any[];
|
|
680
756
|
//#endregion
|
|
681
|
-
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
|
|
757
|
+
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, PowerlinesMessage, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩPowerlinesMessage, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
|
|
682
758
|
//# sourceMappingURL=context.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;UAqDiB,QAAA;EAAA;;;EAIf,QAAA;EAAA;;;EAKA,OAAA;EAeA;;;EAVA,SAAA;EAkBe;;;EAbf,SAAA;EAagC;;;EARhC,QAAA;EASY;AAGd;;EAPE,UAAA;AAAA;AAAA,UAGe,QAAA,SAAiB,IAAA;EAChC,MAAA,EAAQ,IAAA;AAAA;AAAA,UAGO,iBAAA;EACf,IAAA;EACA,GAAA,EAAK,SAAA;AAAA;;;;UAMU,UAAA;EAST;;;EALN,EAAA;EAewB;;AAG1B;EAbE,IAAA,EAAM,WAAA;;;;EAKN,GAAA;EAUwB;;;EALxB,MAAA,GAAS,iBAAA;AAAA;AAAA,KAGC,e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;AAAA;AAAA,KAGzB,kBAAA,yBACc,cAAA,GAAiB,cAAA,IACvC,oBAAA,GAAuB,aAAA,CAAc,eAAA;AAAA,KAE7B,wBAAA,kBAA0C,aAAA,IACpD,oBAAA,GAAuB,QAAA;AAAA"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ import { API, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess,
|
|
|
5
5
|
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./unplugin.cjs";
|
|
6
6
|
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./plugin.cjs";
|
|
7
7
|
import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩNormalizedStringFilter, __ΩPluginFilter, __ΩTransformHookFilter } from "./hooks.cjs";
|
|
8
|
+
import { CreateLoggerFunction, LogCategories, LogCategory, LogFn, LogFnConfig, LogFnMeta, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogLevels, LogMeta, Logger, __ΩCreateLoggerFunction, __ΩLogCategory, __ΩLogFn, __ΩLogFnConfig, __ΩLogFnMeta, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMeta, __ΩLogger } from "./log.cjs";
|
|
8
9
|
import { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩLevel, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./tsconfig.cjs";
|
|
9
|
-
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.cjs";
|
|
10
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, CopyResolvedConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InlineConfig, LintInlineConfig,
|
|
10
|
+
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, PowerlinesMessage, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩPowerlinesMessage, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.cjs";
|
|
11
|
+
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, CopyResolvedConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InlineConfig, LintInlineConfig, Mode, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolveResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩInlineConfig, __ΩLintInlineConfig, __ΩMode, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolveResolvedConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEngineOptions, __ΩResolvedEntryTypeDefinition, __ΩResolvedExecutionOptions, __ΩTestInlineConfig, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./config.cjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import { API, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess,
|
|
|
5
5
|
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./unplugin.mjs";
|
|
6
6
|
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./plugin.mjs";
|
|
7
7
|
import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩNormalizedStringFilter, __ΩPluginFilter, __ΩTransformHookFilter } from "./hooks.mjs";
|
|
8
|
+
import { CreateLoggerFunction, LogCategories, LogCategory, LogFn, LogFnConfig, LogFnMeta, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogLevels, LogMeta, Logger, __ΩCreateLoggerFunction, __ΩLogCategory, __ΩLogFn, __ΩLogFnConfig, __ΩLogFnMeta, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMeta, __ΩLogger } from "./log.mjs";
|
|
8
9
|
import { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩLevel, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./tsconfig.mjs";
|
|
9
|
-
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.mjs";
|
|
10
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, CopyResolvedConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InlineConfig, LintInlineConfig,
|
|
10
|
+
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, PowerlinesMessage, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩPowerlinesMessage, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.mjs";
|
|
11
|
+
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, CopyResolvedConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InlineConfig, LintInlineConfig, Mode, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolveResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩInlineConfig, __ΩLintInlineConfig, __ΩMode, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolveResolvedConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEngineOptions, __ΩResolvedEntryTypeDefinition, __ΩResolvedExecutionOptions, __ΩTestInlineConfig, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./config.mjs";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types/log.ts
|
|
3
|
+
const LogLevels = {
|
|
4
|
+
SILENT: "silent",
|
|
5
|
+
ERROR: "error",
|
|
6
|
+
WARN: "warn",
|
|
7
|
+
INFO: "info",
|
|
8
|
+
DEBUG: "debug",
|
|
9
|
+
TRACE: "trace"
|
|
10
|
+
};
|
|
11
|
+
const LogCategories = {
|
|
12
|
+
GENERAL: "general",
|
|
13
|
+
FS: "fs",
|
|
14
|
+
PERFORMANCE: "performance",
|
|
15
|
+
CONFIG: "config",
|
|
16
|
+
PLUGINS: "plugins",
|
|
17
|
+
HOOKS: "hooks",
|
|
18
|
+
ENV: "env",
|
|
19
|
+
IPC: "ipc",
|
|
20
|
+
BABEL: "babel",
|
|
21
|
+
NETWORK: "network"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.LogCategories = LogCategories;
|
|
26
|
+
exports.LogLevels = LogLevels;
|