@powerlines/core 0.13.1 → 0.13.2
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/index.cjs +3 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/lib/index.cjs +3 -0
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.mts +2 -2
- package/dist/lib/index.mjs +2 -2
- package/dist/lib/logger.cjs +41 -2
- package/dist/lib/logger.d.cts +29 -1
- package/dist/lib/logger.d.cts.map +1 -1
- package/dist/lib/logger.d.mts +29 -1
- package/dist/lib/logger.d.mts.map +1 -1
- package/dist/lib/logger.mjs +38 -2
- package/dist/lib/logger.mjs.map +1 -1
- package/dist/plugin-base.cjs +1 -1
- package/dist/plugin-base.mjs +1 -1
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.mts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.mts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +2 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.mts +1 -1
- package/package.json +13 -13
package/dist/index.cjs
CHANGED
|
@@ -12,6 +12,8 @@ const require_lib_utilities_source_map = require('./lib/utilities/source-map.cjs
|
|
|
12
12
|
const require_lib_utilities_write_file = require('./lib/utilities/write-file.cjs');
|
|
13
13
|
require('./lib/index.cjs');
|
|
14
14
|
|
|
15
|
+
exports.colorBackground = require_lib_logger.colorBackground;
|
|
16
|
+
exports.colorText = require_lib_logger.colorText;
|
|
15
17
|
exports.combineContexts = require_lib_unplugin_helpers.combineContexts;
|
|
16
18
|
exports.createLog = require_lib_logger.createLog;
|
|
17
19
|
exports.createUnplugin = require_lib_unplugin_plugin.createUnplugin;
|
|
@@ -28,6 +30,7 @@ exports.getFileHeaderWarningText = require_lib_utilities_file_header.getFileHead
|
|
|
28
30
|
exports.getMagicString = require_lib_utilities_source_file.getMagicString;
|
|
29
31
|
exports.getSourceFile = require_lib_utilities_source_file.getSourceFile;
|
|
30
32
|
exports.getString = require_lib_utilities_source_file.getString;
|
|
33
|
+
exports.getTextColor = require_lib_logger.getTextColor;
|
|
31
34
|
exports.getTypescriptFileHeader = require_lib_utilities_file_header.getTypescriptFileHeader;
|
|
32
35
|
exports.getUniqueInputs = require_lib_entry.getUniqueInputs;
|
|
33
36
|
exports.isResolvedEntryTypeDefinition = require_lib_entry.isResolvedEntryTypeDefinition;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from "./types/fs.cjs";
|
|
2
2
|
import { CommandType, Commands, __ΩCommandType, __ΩCommands } from "./types/commands.cjs";
|
|
3
|
-
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./types/plugin.cjs";
|
|
4
3
|
import { API, __ΩAPI } from "./types/api.cjs";
|
|
5
4
|
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./types/unplugin.cjs";
|
|
5
|
+
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./types/plugin.cjs";
|
|
6
6
|
import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType } from "./types/hooks.cjs";
|
|
7
7
|
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./types/tsconfig.cjs";
|
|
8
8
|
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, WorkerProcess, __ΩAPIContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext, __ΩWorkerProcess } from "./types/context.cjs";
|
|
9
9
|
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, ConfigEnv, CopyConfig, CopyResolvedConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentConfig, EnvironmentResolvedConfig, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, Logger, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolveResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩConfigEnv, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩLogger, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolveResolvedConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./types/config.cjs";
|
|
10
10
|
import { PartiallyResolvedContext, __ΩPartiallyResolvedContext, defineConfig, loadUserConfigFile, loadWorkspaceConfig } from "./lib/config.cjs";
|
|
11
11
|
import { getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync } from "./lib/entry.cjs";
|
|
12
|
-
import { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog } from "./lib/logger.cjs";
|
|
12
|
+
import { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor } from "./lib/logger.cjs";
|
|
13
13
|
import { combineContexts, isUnpluginBuilderVariant } from "./lib/unplugin/helpers.cjs";
|
|
14
14
|
import { CreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./lib/unplugin/module-resolution.cjs";
|
|
15
15
|
import { CreateUnpluginOptions, CreateUnpluginResolverOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./lib/unplugin/plugin.cjs";
|
|
@@ -18,4 +18,4 @@ import { format, formatFolder } from "./lib/utilities/format.cjs";
|
|
|
18
18
|
import { getMagicString, getSourceFile, getString } from "./lib/utilities/source-file.cjs";
|
|
19
19
|
import { generateSourceMap } from "./lib/utilities/source-map.cjs";
|
|
20
20
|
import { writeFile } from "./lib/utilities/write-file.cjs";
|
|
21
|
-
export { API, APIContext, AnyOutputUserConfig, AnyUserConfig, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, ConfigEnv, Context, CopyConfig, CopyResolvedConfig, CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, FetchOptions, FileHeaderOptions, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, Logger, MetaInfo, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, PowerlinesCommand, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionLevel, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResolvedConfig, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, TSCompilerOptions, TSConfig, TransformResult, TypesInlineConfig, TypesResult, UnimportContext, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, UnresolvedContext, UserConfig, UserConfigFn, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIContext, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBasePlugin, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩConfigEnv, __ΩContext, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookFunctions, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩLogger, __ΩMetaInfo, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResolvedConfig, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTransformResult, __ΩTypesInlineConfig, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigFn, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
21
|
+
export { API, APIContext, AnyOutputUserConfig, AnyUserConfig, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, ConfigEnv, Context, CopyConfig, CopyResolvedConfig, CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, FetchOptions, FileHeaderOptions, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, Logger, MetaInfo, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, PowerlinesCommand, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionLevel, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResolvedConfig, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, TSCompilerOptions, TSConfig, TransformResult, TypesInlineConfig, TypesResult, UnimportContext, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, UnresolvedContext, UserConfig, UserConfigFn, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIContext, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBasePlugin, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩConfigEnv, __ΩContext, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookFunctions, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩLogger, __ΩMetaInfo, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResolvedConfig, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTransformResult, __ΩTypesInlineConfig, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigFn, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, colorBackground, colorText, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTextColor, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from "./types/fs.mjs";
|
|
2
2
|
import { CommandType, Commands, __ΩCommandType, __ΩCommands } from "./types/commands.mjs";
|
|
3
|
-
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./types/plugin.mjs";
|
|
4
3
|
import { API, __ΩAPI } from "./types/api.mjs";
|
|
5
4
|
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./types/unplugin.mjs";
|
|
5
|
+
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./types/plugin.mjs";
|
|
6
6
|
import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType } from "./types/hooks.mjs";
|
|
7
7
|
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./types/tsconfig.mjs";
|
|
8
8
|
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, WorkerProcess, __ΩAPIContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext, __ΩWorkerProcess } from "./types/context.mjs";
|
|
9
9
|
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, ConfigEnv, CopyConfig, CopyResolvedConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentConfig, EnvironmentResolvedConfig, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, Logger, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolveResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩConfigEnv, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩLogger, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolveResolvedConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./types/config.mjs";
|
|
10
10
|
import { PartiallyResolvedContext, __ΩPartiallyResolvedContext, defineConfig, loadUserConfigFile, loadWorkspaceConfig } from "./lib/config.mjs";
|
|
11
11
|
import { getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync } from "./lib/entry.mjs";
|
|
12
|
-
import { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog } from "./lib/logger.mjs";
|
|
12
|
+
import { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor } from "./lib/logger.mjs";
|
|
13
13
|
import { combineContexts, isUnpluginBuilderVariant } from "./lib/unplugin/helpers.mjs";
|
|
14
14
|
import { CreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./lib/unplugin/module-resolution.mjs";
|
|
15
15
|
import { CreateUnpluginOptions, CreateUnpluginResolverOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./lib/unplugin/plugin.mjs";
|
|
@@ -18,4 +18,4 @@ import { format, formatFolder } from "./lib/utilities/format.mjs";
|
|
|
18
18
|
import { getMagicString, getSourceFile, getString } from "./lib/utilities/source-file.mjs";
|
|
19
19
|
import { generateSourceMap } from "./lib/utilities/source-map.mjs";
|
|
20
20
|
import { writeFile } from "./lib/utilities/write-file.mjs";
|
|
21
|
-
export { API, APIContext, AnyOutputUserConfig, AnyUserConfig, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, ConfigEnv, Context, CopyConfig, CopyResolvedConfig, CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, FetchOptions, FileHeaderOptions, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, Logger, MetaInfo, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, PowerlinesCommand, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionLevel, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResolvedConfig, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, TSCompilerOptions, TSConfig, TransformResult, TypesInlineConfig, TypesResult, UnimportContext, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, UnresolvedContext, UserConfig, UserConfigFn, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIContext, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBasePlugin, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩConfigEnv, __ΩContext, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookFunctions, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩLogger, __ΩMetaInfo, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResolvedConfig, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTransformResult, __ΩTypesInlineConfig, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigFn, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
21
|
+
export { API, APIContext, AnyOutputUserConfig, AnyUserConfig, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, ConfigEnv, Context, CopyConfig, CopyResolvedConfig, CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, FetchOptions, FileHeaderOptions, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, Logger, MetaInfo, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, PowerlinesCommand, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionLevel, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResolvedConfig, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, TSCompilerOptions, TSConfig, TransformResult, TypesInlineConfig, TypesResult, UnimportContext, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, UnresolvedContext, UserConfig, UserConfigFn, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIContext, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBasePlugin, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩConfigEnv, __ΩContext, __ΩCopyConfig, __ΩCopyResolvedConfig, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookFunctions, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩLogger, __ΩMetaInfo, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResolvedConfig, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTransformResult, __ΩTypesInlineConfig, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigFn, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, colorBackground, colorText, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTextColor, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineConfig, loadUserConfigFile, loadWorkspaceConfig } from "./lib/config.mjs";
|
|
2
2
|
import { getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync } from "./lib/entry.mjs";
|
|
3
|
-
import { createLog, extendLog } from "./lib/logger.mjs";
|
|
3
|
+
import { colorBackground, colorText, createLog, extendLog, getTextColor } from "./lib/logger.mjs";
|
|
4
4
|
import { combineContexts, isUnpluginBuilderVariant } from "./lib/unplugin/helpers.mjs";
|
|
5
5
|
import { createUnpluginModuleResolutionFunctions } from "./lib/unplugin/module-resolution.mjs";
|
|
6
6
|
import { getMagicString, getSourceFile, getString } from "./lib/utilities/source-file.mjs";
|
|
@@ -11,4 +11,4 @@ import { generateSourceMap } from "./lib/utilities/source-map.mjs";
|
|
|
11
11
|
import { writeFile } from "./lib/utilities/write-file.mjs";
|
|
12
12
|
import "./lib/index.mjs";
|
|
13
13
|
|
|
14
|
-
export { combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
14
|
+
export { colorBackground, colorText, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTextColor, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/lib/index.cjs
CHANGED
|
@@ -13,6 +13,8 @@ const require_lib_utilities_source_map = require('./utilities/source-map.cjs');
|
|
|
13
13
|
const require_lib_utilities_write_file = require('./utilities/write-file.cjs');
|
|
14
14
|
require('./utilities/index.cjs');
|
|
15
15
|
|
|
16
|
+
exports.colorBackground = require_lib_logger.colorBackground;
|
|
17
|
+
exports.colorText = require_lib_logger.colorText;
|
|
16
18
|
exports.combineContexts = require_lib_unplugin_helpers.combineContexts;
|
|
17
19
|
exports.createLog = require_lib_logger.createLog;
|
|
18
20
|
exports.createUnplugin = require_lib_unplugin_plugin.createUnplugin;
|
|
@@ -29,6 +31,7 @@ exports.getFileHeaderWarningText = require_lib_utilities_file_header.getFileHead
|
|
|
29
31
|
exports.getMagicString = require_lib_utilities_source_file.getMagicString;
|
|
30
32
|
exports.getSourceFile = require_lib_utilities_source_file.getSourceFile;
|
|
31
33
|
exports.getString = require_lib_utilities_source_file.getString;
|
|
34
|
+
exports.getTextColor = require_lib_logger.getTextColor;
|
|
32
35
|
exports.getTypescriptFileHeader = require_lib_utilities_file_header.getTypescriptFileHeader;
|
|
33
36
|
exports.getUniqueInputs = require_lib_entry.getUniqueInputs;
|
|
34
37
|
exports.isResolvedEntryTypeDefinition = require_lib_entry.isResolvedEntryTypeDefinition;
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PartiallyResolvedContext, __ΩPartiallyResolvedContext, defineConfig, loadUserConfigFile, loadWorkspaceConfig } from "./config.cjs";
|
|
2
2
|
import { getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync } from "./entry.cjs";
|
|
3
|
-
import { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog } from "./logger.cjs";
|
|
3
|
+
import { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor } from "./logger.cjs";
|
|
4
4
|
import { combineContexts, isUnpluginBuilderVariant } from "./unplugin/helpers.cjs";
|
|
5
5
|
import { CreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./unplugin/module-resolution.cjs";
|
|
6
6
|
import { CreateUnpluginOptions, CreateUnpluginResolverOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./unplugin/plugin.cjs";
|
|
@@ -9,4 +9,4 @@ import { format, formatFolder } from "./utilities/format.cjs";
|
|
|
9
9
|
import { getMagicString, getSourceFile, getString } from "./utilities/source-file.cjs";
|
|
10
10
|
import { generateSourceMap } from "./utilities/source-map.cjs";
|
|
11
11
|
import { writeFile } from "./utilities/write-file.cjs";
|
|
12
|
-
export { CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, FileHeaderOptions, PartiallyResolvedContext, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩFileHeaderOptions, __ΩPartiallyResolvedContext, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
12
|
+
export { CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, FileHeaderOptions, PartiallyResolvedContext, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩFileHeaderOptions, __ΩPartiallyResolvedContext, colorBackground, colorText, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTextColor, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/lib/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PartiallyResolvedContext, __ΩPartiallyResolvedContext, defineConfig, loadUserConfigFile, loadWorkspaceConfig } from "./config.mjs";
|
|
2
2
|
import { getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync } from "./entry.mjs";
|
|
3
|
-
import { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog } from "./logger.mjs";
|
|
3
|
+
import { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor } from "./logger.mjs";
|
|
4
4
|
import { combineContexts, isUnpluginBuilderVariant } from "./unplugin/helpers.mjs";
|
|
5
5
|
import { CreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./unplugin/module-resolution.mjs";
|
|
6
6
|
import { CreateUnpluginOptions, CreateUnpluginResolverOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./unplugin/plugin.mjs";
|
|
@@ -9,4 +9,4 @@ import { format, formatFolder } from "./utilities/format.mjs";
|
|
|
9
9
|
import { getMagicString, getSourceFile, getString } from "./utilities/source-file.mjs";
|
|
10
10
|
import { generateSourceMap } from "./utilities/source-map.mjs";
|
|
11
11
|
import { writeFile } from "./utilities/write-file.mjs";
|
|
12
|
-
export { CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, FileHeaderOptions, PartiallyResolvedContext, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩFileHeaderOptions, __ΩPartiallyResolvedContext, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
12
|
+
export { CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, FileHeaderOptions, PartiallyResolvedContext, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩFileHeaderOptions, __ΩPartiallyResolvedContext, colorBackground, colorText, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTextColor, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/lib/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineConfig, loadUserConfigFile, loadWorkspaceConfig } from "./config.mjs";
|
|
2
2
|
import { getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync } from "./entry.mjs";
|
|
3
|
-
import { createLog, extendLog } from "./logger.mjs";
|
|
3
|
+
import { colorBackground, colorText, createLog, extendLog, getTextColor } from "./logger.mjs";
|
|
4
4
|
import { combineContexts, isUnpluginBuilderVariant } from "./unplugin/helpers.mjs";
|
|
5
5
|
import { createUnpluginModuleResolutionFunctions } from "./unplugin/module-resolution.mjs";
|
|
6
6
|
import { getMagicString, getSourceFile, getString } from "./utilities/source-file.mjs";
|
|
@@ -12,4 +12,4 @@ import { generateSourceMap } from "./utilities/source-map.mjs";
|
|
|
12
12
|
import { writeFile } from "./utilities/write-file.mjs";
|
|
13
13
|
import "./utilities/index.mjs";
|
|
14
14
|
|
|
15
|
-
export { combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
15
|
+
export { colorBackground, colorText, combineContexts, createLog, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTextColor, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/lib/logger.cjs
CHANGED
|
@@ -50,10 +50,49 @@ const BADGE_COLORS = [
|
|
|
50
50
|
"#34D399",
|
|
51
51
|
"#8B5CF6"
|
|
52
52
|
];
|
|
53
|
+
/**
|
|
54
|
+
* Generate a consistent color based on the input text.
|
|
55
|
+
*
|
|
56
|
+
* @param text - The input text to generate the color from.
|
|
57
|
+
* @return A hexadecimal color string.
|
|
58
|
+
*/
|
|
59
|
+
const getTextColor = (text) => {
|
|
60
|
+
return BADGE_COLORS[text.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0];
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Generate a consistent color based on the input text.
|
|
64
|
+
*
|
|
65
|
+
* @param text - The input text to generate the color from.
|
|
66
|
+
* @return A hexadecimal color string.
|
|
67
|
+
*/
|
|
68
|
+
const colorText = (text) => {
|
|
69
|
+
const title = (0, _stryke_string_format_title_case.titleCase)(text);
|
|
70
|
+
return chalk.default.hex(getTextColor(title))(title);
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Generate a consistent color based on the input text.
|
|
74
|
+
*
|
|
75
|
+
* @param text - The input text to generate the color from.
|
|
76
|
+
* @return A hexadecimal color string.
|
|
77
|
+
*/
|
|
78
|
+
const colorBackground = (text) => {
|
|
79
|
+
const title = (0, _stryke_string_format_title_case.titleCase)(text);
|
|
80
|
+
return chalk.default.inverse.hex(getTextColor(title))(` ${title} `);
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
84
|
+
*
|
|
85
|
+
* @param logFn - The original logging function to extend.
|
|
86
|
+
* @param name - The name to use for the badge in the log output.
|
|
87
|
+
* @returns A new logging function that includes the badge in its output.
|
|
88
|
+
*/
|
|
53
89
|
const extendLog = (logFn, name) => {
|
|
54
|
-
return (type, ...args) => logFn(type, ` ${
|
|
90
|
+
return (type, ...args) => logFn(type, ` ${colorBackground(name)} ${args.join(" ")} `);
|
|
55
91
|
};
|
|
56
92
|
|
|
57
93
|
//#endregion
|
|
94
|
+
exports.colorBackground = colorBackground;
|
|
95
|
+
exports.colorText = colorText;
|
|
58
96
|
exports.createLog = createLog;
|
|
59
|
-
exports.extendLog = extendLog;
|
|
97
|
+
exports.extendLog = extendLog;
|
|
98
|
+
exports.getTextColor = getTextColor;
|
package/dist/lib/logger.d.cts
CHANGED
|
@@ -16,8 +16,36 @@ interface CreateLogOptions {
|
|
|
16
16
|
* @returns A logging function.
|
|
17
17
|
*/
|
|
18
18
|
declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
|
|
19
|
+
/**
|
|
20
|
+
* Generate a consistent color based on the input text.
|
|
21
|
+
*
|
|
22
|
+
* @param text - The input text to generate the color from.
|
|
23
|
+
* @return A hexadecimal color string.
|
|
24
|
+
*/
|
|
25
|
+
declare const getTextColor: (text: string) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Generate a consistent color based on the input text.
|
|
28
|
+
*
|
|
29
|
+
* @param text - The input text to generate the color from.
|
|
30
|
+
* @return A hexadecimal color string.
|
|
31
|
+
*/
|
|
32
|
+
declare const colorText: (text: string) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Generate a consistent color based on the input text.
|
|
35
|
+
*
|
|
36
|
+
* @param text - The input text to generate the color from.
|
|
37
|
+
* @return A hexadecimal color string.
|
|
38
|
+
*/
|
|
39
|
+
declare const colorBackground: (text: string) => string;
|
|
40
|
+
/**
|
|
41
|
+
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
42
|
+
*
|
|
43
|
+
* @param logFn - The original logging function to extend.
|
|
44
|
+
* @param name - The name to use for the badge in the log output.
|
|
45
|
+
* @returns A new logging function that includes the badge in its output.
|
|
46
|
+
*/
|
|
19
47
|
declare const extendLog: (logFn: LogFn, name: string) => LogFn;
|
|
20
48
|
declare type __ΩCreateLogOptions = any[];
|
|
21
49
|
//#endregion
|
|
22
|
-
export { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog };
|
|
50
|
+
export { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor };
|
|
23
51
|
//# sourceMappingURL=logger.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.cts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA2BiB,gBAAA;EACf,IAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;
|
|
1
|
+
{"version":3,"file":"logger.d.cts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA2BiB,gBAAA;EACf,IAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;;;;;;;cAyDU,YAAA,GAAgB,IAAA;;;;;;;cAiBhB,SAAA,GAAa,IAAA;;;AAjB1B;;;;cA6Ba,eAAA,GAAmB,IAAA;AAZhC;;;;;AAYA;;AAZA,cAyBa,SAAA,GAAa,KAAA,EAAO,KAAA,EAAO,IAAA,aAAe,KAAA;AAAA"}
|
package/dist/lib/logger.d.mts
CHANGED
|
@@ -16,8 +16,36 @@ interface CreateLogOptions {
|
|
|
16
16
|
* @returns A logging function.
|
|
17
17
|
*/
|
|
18
18
|
declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
|
|
19
|
+
/**
|
|
20
|
+
* Generate a consistent color based on the input text.
|
|
21
|
+
*
|
|
22
|
+
* @param text - The input text to generate the color from.
|
|
23
|
+
* @return A hexadecimal color string.
|
|
24
|
+
*/
|
|
25
|
+
declare const getTextColor: (text: string) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Generate a consistent color based on the input text.
|
|
28
|
+
*
|
|
29
|
+
* @param text - The input text to generate the color from.
|
|
30
|
+
* @return A hexadecimal color string.
|
|
31
|
+
*/
|
|
32
|
+
declare const colorText: (text: string) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Generate a consistent color based on the input text.
|
|
35
|
+
*
|
|
36
|
+
* @param text - The input text to generate the color from.
|
|
37
|
+
* @return A hexadecimal color string.
|
|
38
|
+
*/
|
|
39
|
+
declare const colorBackground: (text: string) => string;
|
|
40
|
+
/**
|
|
41
|
+
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
42
|
+
*
|
|
43
|
+
* @param logFn - The original logging function to extend.
|
|
44
|
+
* @param name - The name to use for the badge in the log output.
|
|
45
|
+
* @returns A new logging function that includes the badge in its output.
|
|
46
|
+
*/
|
|
19
47
|
declare const extendLog: (logFn: LogFn, name: string) => LogFn;
|
|
20
48
|
declare type __ΩCreateLogOptions = any[];
|
|
21
49
|
//#endregion
|
|
22
|
-
export { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog };
|
|
50
|
+
export { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor };
|
|
23
51
|
//# sourceMappingURL=logger.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.mts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA2BiB,gBAAA;EACf,IAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;
|
|
1
|
+
{"version":3,"file":"logger.d.mts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA2BiB,gBAAA;EACf,IAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;;;;;;;cAyDU,YAAA,GAAgB,IAAA;;;;;;;cAiBhB,SAAA,GAAa,IAAA;;;AAjB1B;;;;cA6Ba,eAAA,GAAmB,IAAA;AAZhC;;;;;AAYA;;AAZA,cAyBa,SAAA,GAAa,KAAA,EAAO,KAAA,EAAO,IAAA,aAAe,KAAA;AAAA"}
|
package/dist/lib/logger.mjs
CHANGED
|
@@ -47,10 +47,46 @@ const BADGE_COLORS = [
|
|
|
47
47
|
"#34D399",
|
|
48
48
|
"#8B5CF6"
|
|
49
49
|
];
|
|
50
|
+
/**
|
|
51
|
+
* Generate a consistent color based on the input text.
|
|
52
|
+
*
|
|
53
|
+
* @param text - The input text to generate the color from.
|
|
54
|
+
* @return A hexadecimal color string.
|
|
55
|
+
*/
|
|
56
|
+
const getTextColor = (text) => {
|
|
57
|
+
return BADGE_COLORS[text.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0];
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Generate a consistent color based on the input text.
|
|
61
|
+
*
|
|
62
|
+
* @param text - The input text to generate the color from.
|
|
63
|
+
* @return A hexadecimal color string.
|
|
64
|
+
*/
|
|
65
|
+
const colorText = (text) => {
|
|
66
|
+
const title = titleCase(text);
|
|
67
|
+
return chalk.hex(getTextColor(title))(title);
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Generate a consistent color based on the input text.
|
|
71
|
+
*
|
|
72
|
+
* @param text - The input text to generate the color from.
|
|
73
|
+
* @return A hexadecimal color string.
|
|
74
|
+
*/
|
|
75
|
+
const colorBackground = (text) => {
|
|
76
|
+
const title = titleCase(text);
|
|
77
|
+
return chalk.inverse.hex(getTextColor(title))(` ${title} `);
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
81
|
+
*
|
|
82
|
+
* @param logFn - The original logging function to extend.
|
|
83
|
+
* @param name - The name to use for the badge in the log output.
|
|
84
|
+
* @returns A new logging function that includes the badge in its output.
|
|
85
|
+
*/
|
|
50
86
|
const extendLog = (logFn, name) => {
|
|
51
|
-
return (type, ...args) => logFn(type, ` ${
|
|
87
|
+
return (type, ...args) => logFn(type, ` ${colorBackground(name)} ${args.join(" ")} `);
|
|
52
88
|
};
|
|
53
89
|
|
|
54
90
|
//#endregion
|
|
55
|
-
export { createLog, extendLog };
|
|
91
|
+
export { colorBackground, colorText, createLog, extendLog, getTextColor };
|
|
56
92
|
//# sourceMappingURL=logger.mjs.map
|
package/dist/lib/logger.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.mjs","names":[],"sources":["../../src/lib/logger.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getLogFn, getLogLevel } from \"@storm-software/config-tools/logger\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { getColor } from \"@storm-software/config-tools/utilities/colors\";\nimport { noop } from \"@stryke/helpers/noop\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport chalk from \"chalk\";\nimport type { LogFn, WorkspaceConfig } from \"../types\";\n\nexport interface CreateLogOptions {\n name?: string;\n logLevel?: LogLevelLabel | null;\n customLogger?: LogFn;\n colors?: WorkspaceConfig[\"colors\"];\n}\n\n/**\n * Create a logging function with a specific name and options.\n *\n * @param name - The name of the logging function.\n * @param options - The options to configure the logging function.\n * @returns A logging function.\n */\nexport const createLog = (\n name: string | null,\n options: CreateLogOptions = {}\n): LogFn => {\n const logLevel =\n options.logLevel === null\n ? LogLevelLabel.SILENT\n : options.logLevel || LogLevelLabel.INFO;\n if (logLevel === LogLevelLabel.SILENT) {\n return noop;\n }\n\n if (options.customLogger) {\n return options.customLogger;\n }\n\n return (type: LogLevelLabel, ...args: string[]) =>\n getLogFn(getLogLevel(type), {\n ...options,\n logLevel\n })(\n `${chalk.bold.hex(\n getColor(\"brand\", options as Parameters<typeof getColor>[1])\n )(\n `${name ? kebabCase(name) : \"\"}${options.name ? `${name ? chalk.gray(\" > \") : \"\"}${kebabCase(options.name)}` : \"\"}${chalk.gray(\" > \")}`\n )}${args.join(\" \")} `.trim()\n );\n};\n\nconst BADGE_COLORS = [\n \"#00A0DD\",\n \"#6FCE4E\",\n \"#FBBF24\",\n \"#F43F5E\",\n \"#3B82F6\",\n \"#A855F7\",\n \"#469592\",\n \"#288EDF\",\n \"#D8B4FE\",\n \"#10B981\",\n \"#EF4444\",\n \"#F0EC56\",\n \"#F472B6\",\n \"#22D3EE\",\n \"#EAB308\",\n \"#84CC16\",\n \"#F87171\",\n \"#0EA5E9\",\n \"#D946EF\",\n \"#FACC15\",\n \"#34D399\",\n \"#8B5CF6\"\n] as const;\n\nexport const
|
|
1
|
+
{"version":3,"file":"logger.mjs","names":[],"sources":["../../src/lib/logger.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getLogFn, getLogLevel } from \"@storm-software/config-tools/logger\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { getColor } from \"@storm-software/config-tools/utilities/colors\";\nimport { noop } from \"@stryke/helpers/noop\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport chalk from \"chalk\";\nimport type { LogFn, WorkspaceConfig } from \"../types\";\n\nexport interface CreateLogOptions {\n name?: string;\n logLevel?: LogLevelLabel | null;\n customLogger?: LogFn;\n colors?: WorkspaceConfig[\"colors\"];\n}\n\n/**\n * Create a logging function with a specific name and options.\n *\n * @param name - The name of the logging function.\n * @param options - The options to configure the logging function.\n * @returns A logging function.\n */\nexport const createLog = (\n name: string | null,\n options: CreateLogOptions = {}\n): LogFn => {\n const logLevel =\n options.logLevel === null\n ? LogLevelLabel.SILENT\n : options.logLevel || LogLevelLabel.INFO;\n if (logLevel === LogLevelLabel.SILENT) {\n return noop;\n }\n\n if (options.customLogger) {\n return options.customLogger;\n }\n\n return (type: LogLevelLabel, ...args: string[]) =>\n getLogFn(getLogLevel(type), {\n ...options,\n logLevel\n })(\n `${chalk.bold.hex(\n getColor(\"brand\", options as Parameters<typeof getColor>[1])\n )(\n `${name ? kebabCase(name) : \"\"}${options.name ? `${name ? chalk.gray(\" > \") : \"\"}${kebabCase(options.name)}` : \"\"}${chalk.gray(\" > \")}`\n )}${args.join(\" \")} `.trim()\n );\n};\n\nconst BADGE_COLORS = [\n \"#00A0DD\",\n \"#6FCE4E\",\n \"#FBBF24\",\n \"#F43F5E\",\n \"#3B82F6\",\n \"#A855F7\",\n \"#469592\",\n \"#288EDF\",\n \"#D8B4FE\",\n \"#10B981\",\n \"#EF4444\",\n \"#F0EC56\",\n \"#F472B6\",\n \"#22D3EE\",\n \"#EAB308\",\n \"#84CC16\",\n \"#F87171\",\n \"#0EA5E9\",\n \"#D946EF\",\n \"#FACC15\",\n \"#34D399\",\n \"#8B5CF6\"\n] as const;\n\n/**\n * Generate a consistent color based on the input text.\n *\n * @param text - The input text to generate the color from.\n * @return A hexadecimal color string.\n */\nexport const getTextColor = (text: string): string => {\n return (\n BADGE_COLORS[\n text\n .split(\"\")\n .map(char => char.charCodeAt(0))\n .reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length\n ] || BADGE_COLORS[0]\n );\n};\n\n/**\n * Generate a consistent color based on the input text.\n *\n * @param text - The input text to generate the color from.\n * @return A hexadecimal color string.\n */\nexport const colorText = (text: string): string => {\n const title = titleCase(text);\n\n return chalk.hex(getTextColor(title))(title);\n};\n\n/**\n * Generate a consistent color based on the input text.\n *\n * @param text - The input text to generate the color from.\n * @return A hexadecimal color string.\n */\nexport const colorBackground = (text: string): string => {\n const title = titleCase(text);\n\n return chalk.inverse.hex(getTextColor(title))(` ${title} `);\n};\n\n/**\n * Extend a logging function with a specific name, adding a colored badge to the log output.\n *\n * @param logFn - The original logging function to extend.\n * @param name - The name to use for the badge in the log output.\n * @returns A new logging function that includes the badge in its output.\n */\nexport const extendLog = (logFn: LogFn, name: string): LogFn => {\n return (type: LogLevelLabel, ...args: string[]) =>\n logFn(type, ` ${colorBackground(name)} ${args.join(\" \")} `);\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAyCA,MAAa,aACX,MACA,UAA4B,EAAE,KACpB;CACV,MAAM,WACJ,QAAQ,aAAa,OACjB,cAAc,SACd,QAAQ,YAAY,cAAc;AACxC,KAAI,aAAa,cAAc,OAC7B,QAAO;AAGT,KAAI,QAAQ,aACV,QAAO,QAAQ;AAGjB,SAAQ,MAAqB,GAAG,SAC9B,SAAS,YAAY,KAAK,EAAE;EAC1B,GAAG;EACH;EACD,CAAC,CACA,GAAG,MAAM,KAAK,IACZ,SAAS,SAAS,QAA0C,CAC7D,CACC,GAAG,OAAO,UAAU,KAAK,GAAG,KAAK,QAAQ,OAAO,GAAG,OAAO,MAAM,KAAK,MAAM,GAAG,KAAK,UAAU,QAAQ,KAAK,KAAK,KAAK,MAAM,KAAK,MAAM,GACtI,GAAG,KAAK,KAAK,IAAI,CAAC,GAAG,MAAM,CAC7B;;AAGL,MAAM,eAAe;CACnB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;AAQD,MAAa,gBAAgB,SAAyB;AACpD,QACE,aACE,KACG,MAAM,GAAG,CACT,KAAI,SAAQ,KAAK,WAAW,EAAE,CAAC,CAC/B,QAAQ,KAAK,aAAa,MAAM,UAAU,EAAE,GAAG,aAAa,WAC5D,aAAa;;;;;;;;AAUtB,MAAa,aAAa,SAAyB;CACjD,MAAM,QAAQ,UAAU,KAAK;AAE7B,QAAO,MAAM,IAAI,aAAa,MAAM,CAAC,CAAC,MAAM;;;;;;;;AAS9C,MAAa,mBAAmB,SAAyB;CACvD,MAAM,QAAQ,UAAU,KAAK;AAE7B,QAAO,MAAM,QAAQ,IAAI,aAAa,MAAM,CAAC,CAAC,IAAI,MAAM,GAAG;;;;;;;;;AAU7D,MAAa,aAAa,OAAc,SAAwB;AAC9D,SAAQ,MAAqB,GAAG,SAC9B,MAAM,MAAM,IAAI,gBAAgB,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,CAAC,GAAG"}
|
package/dist/plugin-base.cjs
CHANGED
package/dist/plugin-base.mjs
CHANGED
package/dist/plugin-base.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-base.mjs","names":[],"sources":["../src/plugin-base.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { build, UserConfig as BuildOptions } from \"tsdown\";\nimport { formatPackageJson } from \"./plugin-utils/format-package-json\";\nimport { ResolvedConfig, UserConfig } from \"./types/config\";\nimport { PluginContext } from \"./types/context\";\nimport { Plugin } from \"./types/plugin\";\n\nexport interface BasePluginOptions {\n tsdown?: Partial<BuildOptions>;\n}\n\nexport type BasePluginUserConfig = UserConfig & {\n tsdown: BasePluginOptions;\n};\n\nexport type BasePluginResolvedConfig = ResolvedConfig & {\n tsdown: Required<BasePluginOptions>;\n};\n\nexport type BasePluginContext<\n TResolvedConfig extends BasePluginResolvedConfig = BasePluginResolvedConfig\n> = PluginContext<TResolvedConfig>;\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends BasePluginContext = BasePluginContext>(\n options: BasePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"base\",\n config() {\n return {\n projectType: \"library\",\n input: [\"src/index.ts\", \"src/types/*.ts\", \"src/helpers/*.ts\"],\n output: {\n format: [\"cjs\", \"esm\"],\n dts: false\n },\n platform: \"node\",\n tsdown: {\n format: [\"cjs\", \"esm\"],\n logLevel: \"silent\",\n target: \"
|
|
1
|
+
{"version":3,"file":"plugin-base.mjs","names":[],"sources":["../src/plugin-base.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { build, UserConfig as BuildOptions } from \"tsdown\";\nimport { formatPackageJson } from \"./plugin-utils/format-package-json\";\nimport { ResolvedConfig, UserConfig } from \"./types/config\";\nimport { PluginContext } from \"./types/context\";\nimport { Plugin } from \"./types/plugin\";\n\nexport interface BasePluginOptions {\n tsdown?: Partial<BuildOptions>;\n}\n\nexport type BasePluginUserConfig = UserConfig & {\n tsdown: BasePluginOptions;\n};\n\nexport type BasePluginResolvedConfig = ResolvedConfig & {\n tsdown: Required<BasePluginOptions>;\n};\n\nexport type BasePluginContext<\n TResolvedConfig extends BasePluginResolvedConfig = BasePluginResolvedConfig\n> = PluginContext<TResolvedConfig>;\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends BasePluginContext = BasePluginContext>(\n options: BasePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"base\",\n config() {\n return {\n projectType: \"library\",\n input: [\"src/index.ts\", \"src/types/*.ts\", \"src/helpers/*.ts\"],\n output: {\n format: [\"cjs\", \"esm\"],\n dts: false\n },\n platform: \"node\",\n tsdown: {\n format: [\"cjs\", \"esm\"],\n logLevel: \"silent\",\n target: \"esnext\",\n cjsDefault: true,\n treeshake: true,\n exports: true,\n fixedExtension: true,\n nodeProtocol: true,\n minify: false,\n dts: true,\n shims: true,\n outDir: \"dist\",\n clean: true,\n deps: {\n neverBundle: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//],\n skipNodeModulesBundle: true\n },\n unbundle: true,\n ...options.tsdown\n }\n };\n },\n async build() {\n await build({\n name: this.config.name,\n cwd: appendPath(this.config.root, this.workspaceConfig.workspaceRoot),\n entry:\n this.entry.filter(entry => entry?.file).length > 0\n ? Object.fromEntries(\n this.entry\n .filter(entry => entry?.file)\n .map(entry => [\n entry.output ||\n replaceExtension(\n replacePath(\n replacePath(\n entry.file,\n joinPaths(this.config.root, \"src\")\n ),\n this.entryPath\n )\n ),\n entry.file\n ])\n )\n : [\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"src\",\n \"**/*.ts\"\n ),\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"src\",\n \"**/*.tsx\"\n )\n ],\n platform: this.config.platform,\n tsconfig: this.tsconfig.tsconfigFilePath,\n outDir: this.config.output.path,\n ...this.config.tsdown\n });\n\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AA8CA,MAAa,UACX,UAA6B,EAAE,KACV;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,aAAa;IACb,OAAO;KAAC;KAAgB;KAAkB;KAAmB;IAC7D,QAAQ;KACN,QAAQ,CAAC,OAAO,MAAM;KACtB,KAAK;KACN;IACD,UAAU;IACV,QAAQ;KACN,QAAQ,CAAC,OAAO,MAAM;KACtB,UAAU;KACV,QAAQ;KACR,YAAY;KACZ,WAAW;KACX,SAAS;KACT,gBAAgB;KAChB,cAAc;KACd,QAAQ;KACR,KAAK;KACL,OAAO;KACP,QAAQ;KACR,OAAO;KACP,MAAM;MACJ,aAAa;OAAC;OAAc;OAAoB;OAAiB;MACjE,uBAAuB;MACxB;KACD,UAAU;KACV,GAAG,QAAQ;KACZ;IACF;;EAEH,MAAM,QAAQ;AACZ,SAAM,MAAM;IACV,MAAM,KAAK,OAAO;IAClB,KAAK,WAAW,KAAK,OAAO,MAAM,KAAK,gBAAgB,cAAc;IACrE,OACE,KAAK,MAAM,QAAO,UAAS,OAAO,KAAK,CAAC,SAAS,IAC7C,OAAO,YACL,KAAK,MACF,QAAO,UAAS,OAAO,KAAK,CAC5B,KAAI,UAAS,CACZ,MAAM,UACJ,iBACE,YACE,YACE,MAAM,MACN,UAAU,KAAK,OAAO,MAAM,MAAM,CACnC,EACD,KAAK,UACN,CACF,EACH,MAAM,KACP,CAAC,CACL,GACD,CACE,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,MACZ,OACA,UACD,EACD,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,MACZ,OACA,WACD,CACF;IACP,UAAU,KAAK,OAAO;IACtB,UAAU,KAAK,SAAS;IACxB,QAAQ,KAAK,OAAO,OAAO;IAC3B,GAAG,KAAK,OAAO;IAChB,CAAC;AAEF,SAAM,kBAAkB,KAAK;;EAEhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, TypesResult } from "../types/plugin.cjs";
|
|
2
1
|
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "../types/unplugin.cjs";
|
|
2
|
+
import { Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, TypesResult } from "../types/plugin.cjs";
|
|
3
3
|
import { HooksListItem } from "../types/hooks.cjs";
|
|
4
4
|
import { PluginContext, ResolveResult, UnresolvedContext } from "../types/context.cjs";
|
|
5
5
|
import { EnvironmentConfig, EnvironmentResolvedConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, ResolvedConfig } from "../types/config.cjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, TypesResult } from "../types/plugin.mjs";
|
|
2
1
|
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "../types/unplugin.mjs";
|
|
2
|
+
import { Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, TypesResult } from "../types/plugin.mjs";
|
|
3
3
|
import { HooksListItem } from "../types/hooks.mjs";
|
|
4
4
|
import { PluginContext, ResolveResult, UnresolvedContext } from "../types/context.mjs";
|
|
5
5
|
import { EnvironmentConfig, EnvironmentResolvedConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, ResolvedConfig } from "../types/config.mjs";
|
package/dist/types/hooks.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BasePlugin, Plugin, PluginHook, PluginHooks } from "./plugin.cjs";
|
|
2
1
|
import { UnpluginBuilderVariant, UnpluginHookFunctions } from "./unplugin.cjs";
|
|
2
|
+
import { BasePlugin, Plugin, PluginHook, PluginHooks } from "./plugin.cjs";
|
|
3
3
|
import { PluginContext, SelectHooksOptions } from "./context.cjs";
|
|
4
4
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
5
5
|
import { UnpluginOptions } from "unplugin";
|
package/dist/types/hooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BasePlugin, Plugin, PluginHook, PluginHooks } from "./plugin.mjs";
|
|
2
1
|
import { UnpluginBuilderVariant, UnpluginHookFunctions } from "./unplugin.mjs";
|
|
2
|
+
import { BasePlugin, Plugin, PluginHook, PluginHooks } from "./plugin.mjs";
|
|
3
3
|
import { PluginContext, SelectHooksOptions } from "./context.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from "./fs.cjs";
|
|
2
2
|
import { CommandType, Commands, __ΩCommandType, __ΩCommands } from "./commands.cjs";
|
|
3
|
-
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./plugin.cjs";
|
|
4
3
|
import { API, __ΩAPI } from "./api.cjs";
|
|
5
4
|
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./unplugin.cjs";
|
|
5
|
+
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./plugin.cjs";
|
|
6
6
|
import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType } from "./hooks.cjs";
|
|
7
7
|
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./tsconfig.cjs";
|
|
8
8
|
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, WorkerProcess, __ΩAPIContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext, __ΩWorkerProcess } from "./context.cjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from "./fs.mjs";
|
|
2
2
|
import { CommandType, Commands, __ΩCommandType, __ΩCommands } from "./commands.mjs";
|
|
3
|
-
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./plugin.mjs";
|
|
4
3
|
import { API, __ΩAPI } from "./api.mjs";
|
|
5
4
|
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./unplugin.mjs";
|
|
5
|
+
import { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult } from "./plugin.mjs";
|
|
6
6
|
import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType } from "./hooks.mjs";
|
|
7
7
|
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./tsconfig.mjs";
|
|
8
8
|
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, WorkerProcess, __ΩAPIContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext, __ΩWorkerProcess } from "./context.mjs";
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PLUGIN_NON_HOOK_FIELDS } from "../constants/plugin.cjs";
|
|
2
2
|
import { CommandType } from "./commands.cjs";
|
|
3
|
+
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "./unplugin.cjs";
|
|
3
4
|
import { BuildPluginContext, PluginContext, ResolveResult, UnresolvedContext } from "./context.cjs";
|
|
4
5
|
import { EnvironmentConfig, EnvironmentResolvedConfig, PluginConfig, ResolvedConfig } from "./config.cjs";
|
|
5
6
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
@@ -200,7 +201,7 @@ interface BasePlugin<TContext extends PluginContext> {
|
|
|
200
201
|
*/
|
|
201
202
|
config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
202
203
|
}
|
|
203
|
-
type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & BasePlugin<TContext>;
|
|
204
|
+
type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & BasePlugin<TContext> & Pick<UnpluginOptions$1<TContext>, UnpluginBuilderVariant>;
|
|
204
205
|
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>;
|
|
205
206
|
type PluginHookFields<TContext extends PluginContext = PluginContext, TKey extends string = string> = TKey extends ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> ? never : TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? TKey : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: `${TKey}:${K & string}` }[keyof HookFunctions<TContext>[TKey]] : never : never;
|
|
206
207
|
declare type __ΩPluginHookObject = any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PLUGIN_NON_HOOK_FIELDS } from "../constants/plugin.mjs";
|
|
2
2
|
import { CommandType } from "./commands.mjs";
|
|
3
|
+
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "./unplugin.mjs";
|
|
3
4
|
import { BuildPluginContext, PluginContext, ResolveResult, UnresolvedContext } from "./context.mjs";
|
|
4
5
|
import { EnvironmentConfig, EnvironmentResolvedConfig, PluginConfig, ResolvedConfig } from "./config.mjs";
|
|
5
6
|
import { HookFilter, TransformResult } from "unplugin";
|
|
@@ -200,7 +201,7 @@ interface BasePlugin<TContext extends PluginContext> {
|
|
|
200
201
|
*/
|
|
201
202
|
config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
202
203
|
}
|
|
203
|
-
type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & BasePlugin<TContext>;
|
|
204
|
+
type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & BasePlugin<TContext> & Pick<UnpluginOptions$1<TContext>, UnpluginBuilderVariant>;
|
|
204
205
|
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>;
|
|
205
206
|
type PluginHookFields<TContext extends PluginContext = PluginContext, TKey extends string = string> = TKey extends ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> ? never : TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? TKey : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: `${TKey}:${K & string}` }[keyof HookFunctions<TContext>[TKey]] : never : never;
|
|
206
207
|
declare type __ΩPluginHookObject = any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginHook } from "./plugin.cjs";
|
|
2
1
|
import { API } from "./api.cjs";
|
|
2
|
+
import { PluginHook } from "./plugin.cjs";
|
|
3
3
|
import { Context, PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
4
4
|
import { UserConfig } from "./config.cjs";
|
|
5
5
|
import { MaybePromise } from "@stryke/types/base";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginHook } from "./plugin.mjs";
|
|
2
1
|
import { API } from "./api.mjs";
|
|
2
|
+
import { PluginHook } from "./plugin.mjs";
|
|
3
3
|
import { Context, PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
4
4
|
import { UserConfig } from "./config.mjs";
|
|
5
5
|
import { HookFilter, UnpluginContextMeta, UnpluginOptions } from "unplugin";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/core",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
|
|
6
6
|
"homepage": "https://stormsoftware.com",
|
|
@@ -495,16 +495,16 @@
|
|
|
495
495
|
"dependencies": {
|
|
496
496
|
"@storm-software/config": "^1.137.26",
|
|
497
497
|
"@storm-software/config-tools": "^1.189.72",
|
|
498
|
-
"@stryke/convert": "^0.6.
|
|
499
|
-
"@stryke/env": "^0.20.
|
|
500
|
-
"@stryke/fs": "^0.33.
|
|
501
|
-
"@stryke/hash": "^0.13.
|
|
502
|
-
"@stryke/helpers": "^0.10.
|
|
503
|
-
"@stryke/json": "^0.14.
|
|
504
|
-
"@stryke/path": "^0.27.
|
|
505
|
-
"@stryke/string-format": "^0.17.
|
|
506
|
-
"@stryke/type-checks": "^0.6.
|
|
507
|
-
"@stryke/unique-id": "^0.3.
|
|
498
|
+
"@stryke/convert": "^0.6.58",
|
|
499
|
+
"@stryke/env": "^0.20.83",
|
|
500
|
+
"@stryke/fs": "^0.33.66",
|
|
501
|
+
"@stryke/hash": "^0.13.19",
|
|
502
|
+
"@stryke/helpers": "^0.10.8",
|
|
503
|
+
"@stryke/json": "^0.14.12",
|
|
504
|
+
"@stryke/path": "^0.27.4",
|
|
505
|
+
"@stryke/string-format": "^0.17.9",
|
|
506
|
+
"@stryke/type-checks": "^0.6.1",
|
|
507
|
+
"@stryke/unique-id": "^0.3.77",
|
|
508
508
|
"c12": "^3.3.4",
|
|
509
509
|
"chalk": "5.6.2",
|
|
510
510
|
"compatx": "^0.2.0",
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
},
|
|
519
519
|
"devDependencies": {
|
|
520
520
|
"@storm-software/testing-tools": "^1.119.147",
|
|
521
|
-
"@stryke/types": "^0.11.
|
|
521
|
+
"@stryke/types": "^0.11.3",
|
|
522
522
|
"@types/diff-match-patch": "^1.0.36",
|
|
523
523
|
"@types/node": "^25.5.2",
|
|
524
524
|
"@types/semver": "^7.7.1",
|
|
@@ -527,5 +527,5 @@
|
|
|
527
527
|
"typescript": "^5.9.3"
|
|
528
528
|
},
|
|
529
529
|
"publishConfig": { "access": "public" },
|
|
530
|
-
"gitHead": "
|
|
530
|
+
"gitHead": "454fceda20c6f4dda53f6bc5901e5768ac253365"
|
|
531
531
|
}
|