@powerlines/core 0.14.5 → 0.15.1
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/api.cjs +6 -5
- package/dist/constants/api.d.cts +3 -3
- package/dist/constants/api.d.cts.map +1 -1
- package/dist/constants/api.d.mts +3 -3
- package/dist/constants/api.d.mts.map +1 -1
- package/dist/constants/api.mjs +4 -4
- package/dist/constants/api.mjs.map +1 -1
- package/dist/constants/commands.cjs +3 -2
- package/dist/constants/commands.d.cts +1 -1
- package/dist/constants/commands.d.mts +1 -1
- package/dist/constants/commands.mjs +2 -2
- package/dist/constants/commands.mjs.map +1 -1
- package/dist/constants/devtools.cjs +23 -0
- package/dist/constants/devtools.d.cts +13 -0
- package/dist/constants/devtools.d.cts.map +1 -0
- package/dist/constants/devtools.d.mts +13 -0
- package/dist/constants/devtools.d.mts.map +1 -0
- package/dist/constants/devtools.mjs +14 -0
- package/dist/constants/devtools.mjs.map +1 -0
- package/dist/constants/environments.cjs +1 -0
- package/dist/constants/extensions.cjs +21 -0
- package/dist/constants/extensions.d.cts +5 -0
- package/dist/constants/extensions.d.cts.map +1 -0
- package/dist/constants/extensions.d.mts +5 -0
- package/dist/constants/extensions.d.mts.map +1 -0
- package/dist/constants/extensions.mjs +20 -0
- package/dist/constants/extensions.mjs.map +1 -0
- package/dist/constants/fs.cjs +1 -0
- package/dist/constants/hooks.cjs +1 -0
- package/dist/constants/index.cjs +48 -30
- package/dist/constants/index.d.cts +5 -3
- package/dist/constants/index.d.mts +5 -3
- package/dist/constants/index.mjs +5 -3
- package/dist/constants/log-level.cjs +90 -0
- package/dist/constants/log-level.d.cts +63 -0
- package/dist/constants/log-level.d.cts.map +1 -0
- package/dist/constants/log-level.d.mts +63 -0
- package/dist/constants/log-level.d.mts.map +1 -0
- package/dist/constants/log-level.mjs +82 -0
- package/dist/constants/log-level.mjs.map +1 -0
- package/dist/constants/meta.cjs +1 -0
- package/dist/constants/plugin.cjs +3 -2
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/context/base-context.cjs +127 -0
- package/dist/context/base-context.d.cts +81 -0
- package/dist/context/base-context.d.cts.map +1 -0
- package/dist/context/base-context.d.mts +81 -0
- package/dist/context/base-context.d.mts.map +1 -0
- package/dist/context/base-context.mjs +125 -0
- package/dist/context/base-context.mjs.map +1 -0
- package/dist/context/context.cjs +934 -0
- package/dist/context/context.d.cts +369 -0
- package/dist/context/context.d.cts.map +1 -0
- package/dist/context/context.d.mts +369 -0
- package/dist/context/context.d.mts.map +1 -0
- package/dist/context/context.mjs +932 -0
- package/dist/context/context.mjs.map +1 -0
- package/dist/context/environment-context.cjs +219 -0
- package/dist/context/environment-context.d.cts +100 -0
- package/dist/context/environment-context.d.cts.map +1 -0
- package/dist/context/environment-context.d.mts +100 -0
- package/dist/context/environment-context.d.mts.map +1 -0
- package/dist/context/environment-context.mjs +218 -0
- package/dist/context/environment-context.mjs.map +1 -0
- package/dist/context/execution-context.cjs +230 -0
- package/dist/context/execution-context.d.cts +101 -0
- package/dist/context/execution-context.d.cts.map +1 -0
- package/dist/context/execution-context.d.mts +101 -0
- package/dist/context/execution-context.d.mts.map +1 -0
- package/dist/context/execution-context.mjs +228 -0
- package/dist/context/execution-context.mjs.map +1 -0
- package/dist/context/index.cjs +12 -0
- package/dist/context/index.d.cts +6 -0
- package/dist/context/index.d.mts +6 -0
- package/dist/context/index.mjs +7 -0
- package/dist/context/plugin-context.cjs +83 -0
- package/dist/context/plugin-context.d.cts +18 -0
- package/dist/context/plugin-context.d.cts.map +1 -0
- package/dist/context/plugin-context.d.mts +18 -0
- package/dist/context/plugin-context.d.mts.map +1 -0
- package/dist/context/plugin-context.mjs +82 -0
- package/dist/context/plugin-context.mjs.map +1 -0
- package/dist/index.cjs +62 -9
- package/dist/index.d.cts +20 -9
- package/dist/index.d.mts +20 -9
- package/dist/index.mjs +17 -5
- package/dist/lib/config.cjs +160 -15
- package/dist/lib/config.d.cts +92 -6
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +92 -6
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +154 -16
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/context-helpers.cjs +43 -0
- package/dist/lib/context-helpers.d.cts +19 -0
- package/dist/lib/context-helpers.d.cts.map +1 -0
- package/dist/lib/context-helpers.d.mts +19 -0
- package/dist/lib/context-helpers.d.mts.map +1 -0
- package/dist/lib/context-helpers.mjs +41 -0
- package/dist/lib/context-helpers.mjs.map +1 -0
- package/dist/lib/entry.cjs +5 -5
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +5 -5
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/environment.cjs +72 -0
- package/dist/lib/environment.d.cts +12 -0
- package/dist/lib/environment.d.cts.map +1 -0
- package/dist/lib/environment.d.mts +12 -0
- package/dist/lib/environment.d.mts.map +1 -0
- package/dist/lib/environment.mjs +67 -0
- package/dist/lib/environment.mjs.map +1 -0
- package/dist/lib/events.cjs +43 -0
- package/dist/lib/events.d.cts +10 -0
- package/dist/lib/events.d.cts.map +1 -0
- package/dist/lib/events.d.mts +10 -0
- package/dist/lib/events.d.mts.map +1 -0
- package/dist/lib/events.mjs +42 -0
- package/dist/lib/events.mjs.map +1 -0
- package/dist/lib/generate-types.cjs +371 -0
- package/dist/lib/generate-types.d.cts +67 -0
- package/dist/lib/generate-types.d.cts.map +1 -0
- package/dist/lib/generate-types.d.mts +67 -0
- package/dist/lib/generate-types.d.mts.map +1 -0
- package/dist/lib/generate-types.mjs +368 -0
- package/dist/lib/generate-types.mjs.map +1 -0
- package/dist/lib/hooks.cjs +152 -0
- package/dist/lib/hooks.d.cts +28 -0
- package/dist/lib/hooks.d.cts.map +1 -0
- package/dist/lib/hooks.d.mts +28 -0
- package/dist/lib/hooks.d.mts.map +1 -0
- package/dist/lib/hooks.mjs +147 -0
- package/dist/lib/hooks.mjs.map +1 -0
- package/dist/lib/index.cjs +64 -9
- package/dist/lib/index.d.cts +15 -3
- package/dist/lib/index.d.mts +15 -3
- package/dist/lib/index.mjs +19 -5
- package/dist/lib/install-dependencies.cjs +25 -0
- package/dist/lib/install-dependencies.d.cts +12 -0
- package/dist/lib/install-dependencies.d.cts.map +1 -0
- package/dist/lib/install-dependencies.d.mts +12 -0
- package/dist/lib/install-dependencies.d.mts.map +1 -0
- package/dist/lib/install-dependencies.mjs +24 -0
- package/dist/lib/install-dependencies.mjs.map +1 -0
- package/dist/lib/meta.cjs +57 -0
- package/dist/lib/meta.d.cts +34 -0
- package/dist/lib/meta.d.cts.map +1 -0
- package/dist/lib/meta.d.mts +34 -0
- package/dist/lib/meta.d.mts.map +1 -0
- package/dist/lib/meta.mjs +54 -0
- package/dist/lib/meta.mjs.map +1 -0
- package/dist/lib/plugins.cjs +150 -0
- package/dist/lib/plugins.d.cts +40 -0
- package/dist/lib/plugins.d.cts.map +1 -0
- package/dist/lib/plugins.d.mts +40 -0
- package/dist/lib/plugins.d.mts.map +1 -0
- package/dist/lib/plugins.mjs +146 -0
- package/dist/lib/plugins.mjs.map +1 -0
- package/dist/lib/resolver.cjs +35 -0
- package/dist/lib/resolver.d.cts +21 -0
- package/dist/lib/resolver.d.cts.map +1 -0
- package/dist/lib/resolver.d.mts +21 -0
- package/dist/lib/resolver.d.mts.map +1 -0
- package/dist/lib/resolver.mjs +33 -0
- package/dist/lib/resolver.mjs.map +1 -0
- package/dist/lib/schemas.cjs +9 -0
- package/dist/lib/schemas.d.cts +2 -0
- package/dist/lib/schemas.d.mts +2 -0
- package/dist/lib/schemas.mjs +3 -0
- package/dist/lib/streaming-channel.cjs +260 -0
- package/dist/lib/streaming-channel.d.cts +133 -0
- package/dist/lib/streaming-channel.d.cts.map +1 -0
- package/dist/lib/streaming-channel.d.mts +133 -0
- package/dist/lib/streaming-channel.d.mts.map +1 -0
- package/dist/lib/streaming-channel.mjs +258 -0
- package/dist/lib/streaming-channel.mjs.map +1 -0
- package/dist/lib/typescript/index.cjs +16 -0
- package/dist/lib/typescript/index.d.cts +3 -0
- package/dist/lib/typescript/index.d.mts +3 -0
- package/dist/lib/typescript/index.mjs +4 -0
- package/dist/lib/typescript/ts-morph.cjs +105 -0
- package/dist/lib/typescript/ts-morph.d.cts +38 -0
- package/dist/lib/typescript/ts-morph.d.cts.map +1 -0
- package/dist/lib/typescript/ts-morph.d.mts +38 -0
- package/dist/lib/typescript/ts-morph.d.mts.map +1 -0
- package/dist/lib/typescript/ts-morph.mjs +102 -0
- package/dist/lib/typescript/ts-morph.mjs.map +1 -0
- package/dist/lib/typescript/tsconfig.cjs +253 -0
- package/dist/lib/typescript/tsconfig.d.cts +77 -0
- package/dist/lib/typescript/tsconfig.d.cts.map +1 -0
- package/dist/lib/typescript/tsconfig.d.mts +77 -0
- package/dist/lib/typescript/tsconfig.d.mts.map +1 -0
- package/dist/lib/typescript/tsconfig.mjs +240 -0
- package/dist/lib/typescript/tsconfig.mjs.map +1 -0
- package/dist/lib/unplugin/helpers.cjs +2 -2
- package/dist/lib/unplugin/module-resolution.cjs +18 -18
- package/dist/lib/unplugin/module-resolution.mjs +18 -18
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +55 -62
- package/dist/lib/unplugin/plugin.d.cts +10 -11
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +10 -11
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +55 -62
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/file-header.cjs +2 -2
- package/dist/lib/utilities/file-header.mjs +2 -2
- package/dist/lib/utilities/file-header.mjs.map +1 -1
- package/dist/lib/utilities/format.cjs +1 -1
- package/dist/lib/utilities/format.mjs +1 -1
- package/dist/lib/utilities/index.cjs +2 -2
- package/dist/lib/utilities/index.mjs +2 -2
- 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/lib/vfs.cjs +1104 -0
- package/dist/lib/vfs.d.cts +321 -0
- package/dist/lib/vfs.d.cts.map +1 -0
- package/dist/lib/vfs.d.mts +321 -0
- package/dist/lib/vfs.d.mts.map +1 -0
- package/dist/lib/vfs.mjs +1102 -0
- package/dist/lib/vfs.mjs.map +1 -0
- 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/build-helpers.cjs +2 -2
- package/dist/plugin-utils/build-helpers.mjs +2 -2
- package/dist/plugin-utils/build-helpers.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +22 -12
- package/dist/plugin-utils/context-helpers.d.cts +9 -1
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +9 -1
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +22 -13
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +13 -5
- package/dist/plugin-utils/filter.d.cts +2 -1
- package/dist/plugin-utils/filter.d.cts.map +1 -1
- package/dist/plugin-utils/filter.d.mts +2 -1
- package/dist/plugin-utils/filter.d.mts.map +1 -1
- package/dist/plugin-utils/filter.mjs +13 -6
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/format.cjs +44 -0
- package/dist/plugin-utils/format.d.cts +11 -0
- package/dist/plugin-utils/format.d.cts.map +1 -0
- package/dist/plugin-utils/format.d.mts +11 -0
- package/dist/plugin-utils/format.d.mts.map +1 -0
- package/dist/plugin-utils/format.mjs +43 -0
- package/dist/plugin-utils/format.mjs.map +1 -0
- package/dist/plugin-utils/helpers.cjs +6 -6
- package/dist/plugin-utils/helpers.d.cts +15 -15
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +15 -15
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +1 -1
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +34 -4
- package/dist/plugin-utils/index.d.cts +7 -4
- package/dist/plugin-utils/index.d.mts +7 -4
- package/dist/plugin-utils/index.mjs +9 -6
- package/dist/plugin-utils/install.cjs +47 -0
- package/dist/plugin-utils/install.d.cts +23 -0
- package/dist/plugin-utils/install.d.cts.map +1 -0
- package/dist/plugin-utils/install.d.mts +23 -0
- package/dist/plugin-utils/install.d.mts.map +1 -0
- package/dist/plugin-utils/install.mjs +45 -0
- package/dist/plugin-utils/install.mjs.map +1 -0
- package/dist/plugin-utils/logging.cjs +588 -1
- package/dist/plugin-utils/logging.d.cts +93 -1
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +93 -1
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +572 -1
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +1 -1
- package/dist/plugin-utils/merge.mjs +1 -1
- package/dist/plugin-utils/modules.cjs +1 -1
- package/dist/plugin-utils/modules.mjs +1 -1
- package/dist/plugin-utils/modules.mjs.map +1 -1
- package/dist/plugin-utils/paths.cjs +6 -2
- package/dist/plugin-utils/paths.mjs +6 -2
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/virtual.cjs +80 -0
- package/dist/plugin-utils/virtual.d.cts +69 -0
- package/dist/plugin-utils/virtual.d.cts.map +1 -0
- package/dist/plugin-utils/virtual.d.mts +69 -0
- package/dist/plugin-utils/virtual.d.mts.map +1 -0
- package/dist/plugin-utils/virtual.mjs +73 -0
- package/dist/plugin-utils/virtual.mjs.map +1 -0
- package/dist/schemas/fs.cjs +232 -0
- package/dist/schemas/fs.d.cts +127 -0
- package/dist/schemas/fs.d.cts.map +1 -0
- package/dist/schemas/fs.d.mts +127 -0
- package/dist/schemas/fs.d.mts.map +1 -0
- package/dist/schemas/fs.mjs +226 -0
- package/dist/schemas/fs.mjs.map +1 -0
- package/dist/storage/base.cjs +216 -0
- package/dist/storage/base.d.cts +201 -0
- package/dist/storage/base.d.cts.map +1 -0
- package/dist/storage/base.d.mts +201 -0
- package/dist/storage/base.d.mts.map +1 -0
- package/dist/storage/base.mjs +215 -0
- package/dist/storage/base.mjs.map +1 -0
- package/dist/storage/file-system.cjs +180 -0
- package/dist/storage/file-system.d.cts +129 -0
- package/dist/storage/file-system.d.cts.map +1 -0
- package/dist/storage/file-system.d.mts +129 -0
- package/dist/storage/file-system.d.mts.map +1 -0
- package/dist/storage/file-system.mjs +179 -0
- package/dist/storage/file-system.mjs.map +1 -0
- package/dist/storage/helpers.cjs +37 -0
- package/dist/storage/helpers.d.cts +25 -0
- package/dist/storage/helpers.d.cts.map +1 -0
- package/dist/storage/helpers.d.mts +25 -0
- package/dist/storage/helpers.d.mts.map +1 -0
- package/dist/storage/helpers.mjs +34 -0
- package/dist/storage/helpers.mjs.map +1 -0
- package/dist/storage/index.cjs +12 -0
- package/dist/storage/index.d.cts +5 -0
- package/dist/storage/index.d.mts +5 -0
- package/dist/storage/index.mjs +6 -0
- package/dist/storage/virtual.cjs +98 -0
- package/dist/storage/virtual.d.cts +80 -0
- package/dist/storage/virtual.d.cts.map +1 -0
- package/dist/storage/virtual.d.mts +80 -0
- package/dist/storage/virtual.d.mts.map +1 -0
- package/dist/storage/virtual.mjs +97 -0
- package/dist/storage/virtual.mjs.map +1 -0
- package/dist/types/api.d.cts +18 -152
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +18 -152
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +194 -135
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +195 -136
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +152 -128
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +155 -131
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.mts +1 -1
- package/dist/types/index.d.cts +5 -6
- package/dist/types/index.d.mts +5 -6
- package/dist/types/logging.d.cts +161 -0
- package/dist/types/logging.d.cts.map +1 -0
- package/dist/types/logging.d.mts +161 -0
- package/dist/types/logging.d.mts.map +1 -0
- package/dist/types/plugin.d.cts +6 -9
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +6 -9
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/tsconfig.d.mts +1 -1
- package/dist/types/unplugin.d.cts +5 -26
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +5 -26
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +259 -457
- package/schemas/fs.capnp +42 -0
- package/dist/constants/virtual-modules.cjs +0 -8
- package/dist/constants/virtual-modules.d.cts +0 -6
- package/dist/constants/virtual-modules.d.cts.map +0 -1
- package/dist/constants/virtual-modules.d.mts +0 -6
- package/dist/constants/virtual-modules.d.mts.map +0 -1
- package/dist/constants/virtual-modules.mjs +0 -7
- package/dist/constants/virtual-modules.mjs.map +0 -1
- package/dist/lib/logger.cjs +0 -99
- package/dist/lib/logger.d.cts +0 -53
- package/dist/lib/logger.d.cts.map +0 -1
- package/dist/lib/logger.d.mts +0 -53
- package/dist/lib/logger.d.mts.map +0 -1
- package/dist/lib/logger.mjs +0 -93
- package/dist/lib/logger.mjs.map +0 -1
- package/dist/types/_internal.cjs +0 -0
- package/dist/types/_internal.d.cts +0 -106
- package/dist/types/_internal.d.cts.map +0 -1
- package/dist/types/_internal.d.mts +0 -106
- package/dist/types/_internal.d.mts.map +0 -1
- package/dist/types/_internal.mjs +0 -1
- package/dist/types/commands.d.cts +0 -16
- package/dist/types/commands.d.cts.map +0 -1
- package/dist/types/commands.d.mts +0 -16
- package/dist/types/commands.d.mts.map +0 -1
- package/dist/types/utils.d.cts +0 -9
- package/dist/types/utils.d.cts.map +0 -1
- package/dist/types/utils.d.mts +0 -9
- package/dist/types/utils.d.mts.map +0 -1
package/dist/types/context.d.mts
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
2
|
import { Plugin } from "./plugin.mjs";
|
|
3
|
-
import { HooksList, HooksListItem } from "./hooks.mjs";
|
|
3
|
+
import { CallHookOptions, HooksList, HooksListItem, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
4
|
+
import { LogFn, LogMessage, Logger, LoggerOptions } from "./logging.mjs";
|
|
4
5
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
5
|
-
import { EnvironmentResolvedConfig,
|
|
6
|
-
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
7
|
-
import MagicString, { SourceMap } from "magic-string";
|
|
8
|
-
import { Jiti } from "jiti";
|
|
6
|
+
import { EnvironmentResolvedConfig, ExecutionOptions, Options, PluginConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./config.mjs";
|
|
9
7
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
|
+
import { Jiti } from "jiti";
|
|
9
|
+
import { ExternalIdResult, UnpluginBuildContext } from "unplugin";
|
|
10
|
+
import MagicString, { SourceMap } from "magic-string";
|
|
10
11
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
11
|
-
import { PackageJson } from "@stryke/types/package-json";
|
|
12
12
|
import { ParseResult, ParserOptions } from "oxc-parser";
|
|
13
|
-
import { Range } from "semver";
|
|
14
13
|
import { RequestInfo, Response } from "undici";
|
|
14
|
+
import { DeepReadonly } from "@stryke/types/base";
|
|
15
|
+
import { PackageJson } from "@stryke/types/package-json";
|
|
16
|
+
import { Range } from "semver";
|
|
15
17
|
import { Unimport } from "unimport";
|
|
16
18
|
|
|
17
19
|
//#region src/types/context.d.ts
|
|
18
|
-
|
|
20
|
+
type MetaInfo = Record<string, any> & {
|
|
19
21
|
/**
|
|
20
22
|
* The checksum generated from the resolved options
|
|
21
23
|
*/
|
|
22
24
|
checksum: string;
|
|
23
25
|
/**
|
|
24
|
-
* The
|
|
26
|
+
* The execution id
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
executionId: string;
|
|
27
29
|
/**
|
|
28
30
|
* The release id
|
|
29
31
|
*/
|
|
30
32
|
releaseId: string;
|
|
31
33
|
/**
|
|
32
|
-
* The
|
|
34
|
+
* The execution timestamp
|
|
33
35
|
*/
|
|
34
36
|
timestamp: number;
|
|
35
37
|
/**
|
|
@@ -40,7 +42,7 @@ interface MetaInfo {
|
|
|
40
42
|
* A hash that represents the path to the configuration root directory
|
|
41
43
|
*/
|
|
42
44
|
configHash: string;
|
|
43
|
-
}
|
|
45
|
+
};
|
|
44
46
|
interface Resolver extends Jiti {
|
|
45
47
|
plugin: Jiti;
|
|
46
48
|
}
|
|
@@ -134,15 +136,15 @@ interface ResolveResult extends ExternalIdResult {
|
|
|
134
136
|
* @remarks
|
|
135
137
|
* This context provides the foundational structure for interacting with the Powerlines engine.
|
|
136
138
|
*/
|
|
137
|
-
interface BaseContext {
|
|
139
|
+
interface BaseContext<TSystemContext = unknown> extends Pick<Required<Options>, "cwd"> {
|
|
138
140
|
/**
|
|
139
|
-
* The
|
|
141
|
+
* The system instance associated with the context, which can be used to interact with the Powerlines engine and perform various operations during the build process. The specific type of the system may vary depending on the environment and use case, but it typically provides methods for logging, file system operations, and other interactions with the Powerlines engine.
|
|
140
142
|
*/
|
|
141
|
-
|
|
143
|
+
system: TSystemContext;
|
|
142
144
|
/**
|
|
143
145
|
* The timestamp when the context was initialized
|
|
144
146
|
*/
|
|
145
|
-
timestamp:
|
|
147
|
+
timestamp: number;
|
|
146
148
|
/**
|
|
147
149
|
* The Powerlines environment paths
|
|
148
150
|
*/
|
|
@@ -152,41 +154,37 @@ interface BaseContext {
|
|
|
152
154
|
*/
|
|
153
155
|
powerlinesPath: string;
|
|
154
156
|
/**
|
|
155
|
-
* The
|
|
156
|
-
*/
|
|
157
|
-
configFile: ParsedUserConfig;
|
|
158
|
-
/**
|
|
159
|
-
* The log level to use for the Powerlines processes.
|
|
157
|
+
* The options provided to the Powerlines process.
|
|
160
158
|
*/
|
|
161
|
-
|
|
159
|
+
options: Options;
|
|
162
160
|
/**
|
|
163
|
-
*
|
|
161
|
+
* An instance of the Powerlines logger client that can be used to generate log messages with consistent formatting and metadata.
|
|
164
162
|
*/
|
|
165
|
-
|
|
163
|
+
logger: Logger;
|
|
166
164
|
/**
|
|
167
165
|
* A logging function for fatal messages
|
|
168
166
|
*/
|
|
169
|
-
fatal: (message: string |
|
|
167
|
+
fatal: (message: string | LogMessage | Error) => void;
|
|
170
168
|
/**
|
|
171
169
|
* A logging function for error messages
|
|
172
170
|
*/
|
|
173
|
-
error: (message: string |
|
|
171
|
+
error: (message: string | LogMessage | Error) => void;
|
|
174
172
|
/**
|
|
175
173
|
* A logging function for warning messages
|
|
176
174
|
*/
|
|
177
|
-
warn: (message: string |
|
|
175
|
+
warn: (message: string | LogMessage) => void;
|
|
178
176
|
/**
|
|
179
177
|
* A logging function for informational messages
|
|
180
178
|
*/
|
|
181
|
-
info: (message: string |
|
|
179
|
+
info: (message: string | LogMessage) => void;
|
|
182
180
|
/**
|
|
183
181
|
* A logging function for debug messages
|
|
184
182
|
*/
|
|
185
|
-
debug: (message: string |
|
|
183
|
+
debug: (message: string | LogMessage) => void;
|
|
186
184
|
/**
|
|
187
185
|
* A logging function for trace messages
|
|
188
186
|
*/
|
|
189
|
-
trace: (message: string |
|
|
187
|
+
trace: (message: string | LogMessage) => void;
|
|
190
188
|
/**
|
|
191
189
|
* A function to create a timer for measuring the duration of asynchronous operations
|
|
192
190
|
*
|
|
@@ -204,36 +202,17 @@ interface BaseContext {
|
|
|
204
202
|
/**
|
|
205
203
|
* Create a new logger instance
|
|
206
204
|
*
|
|
207
|
-
* @param
|
|
208
|
-
* @returns A logger
|
|
205
|
+
* @param options - 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.
|
|
206
|
+
* @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
|
|
209
207
|
*/
|
|
210
|
-
|
|
208
|
+
createLogger: (options: LoggerOptions, logFn?: LogFn) => Logger;
|
|
211
209
|
/**
|
|
212
|
-
* Extend the current logger instance with a new
|
|
210
|
+
* Extend the current logger instance with a new source
|
|
213
211
|
*
|
|
214
|
-
* @param
|
|
215
|
-
* @returns A logger
|
|
212
|
+
* @param options - The overlay metadata to use for the badge in the log output.
|
|
213
|
+
* @returns A logger client instance that extends the current logger with the provided configuration options.
|
|
216
214
|
*/
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* A function to create a deep clone of the context
|
|
220
|
-
*
|
|
221
|
-
* @remarks
|
|
222
|
-
* This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
|
|
223
|
-
*/
|
|
224
|
-
clone: () => Promise<BaseContext>;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* The Powerlines engine context.
|
|
228
|
-
*
|
|
229
|
-
* @remarks
|
|
230
|
-
* This context is used during the execution of the Powerlines engine, providing access to the input user configurations.
|
|
231
|
-
*/
|
|
232
|
-
interface EngineContext extends BaseContext {
|
|
233
|
-
/**
|
|
234
|
-
* A list of API contexts for each configured run instance
|
|
235
|
-
*/
|
|
236
|
-
executions: ResolvedExecutionOptions[];
|
|
215
|
+
extendLogger: (options: LoggerOptions, logFn?: LogFn) => Logger;
|
|
237
216
|
}
|
|
238
217
|
/**
|
|
239
218
|
* The unresolved Powerlines context.
|
|
@@ -241,19 +220,30 @@ interface EngineContext extends BaseContext {
|
|
|
241
220
|
* @remarks
|
|
242
221
|
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
243
222
|
*/
|
|
244
|
-
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends BaseContext {
|
|
223
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends BaseContext<TSystemContext> {
|
|
245
224
|
/**
|
|
246
|
-
* The options provided to the Powerlines process
|
|
225
|
+
* The options provided to the Powerlines process, resolved with default values and merged with any configuration provided by plugins or other sources. This is typically the final configuration used during the build process, but may also include additional options that are relevant to the context and its interactions with the Powerlines engine.
|
|
247
226
|
*/
|
|
248
|
-
options:
|
|
227
|
+
options: ExecutionOptions;
|
|
249
228
|
/**
|
|
250
229
|
* An object containing the options provided to Powerlines
|
|
251
230
|
*/
|
|
252
|
-
config: Omit<TResolvedConfig["userConfig"], "output"> & Required<Pick<TResolvedConfig["userConfig"], "output">> & {
|
|
231
|
+
config: Omit<TResolvedConfig["userConfig"], "output"> & Required<Pick<TResolvedConfig["userConfig"], "output">> & Pick<TResolvedConfig, "cwd" | "mode" | "root" | "framework" | "configFile" | "name" | "logLevel"> & {
|
|
232
|
+
/**
|
|
233
|
+
* The output configuration options for the Powerlines process, which may include settings related to the output directory, file naming conventions, and other options that affect how the compiled output is generated and structured. This is typically derived from the user configuration but may also include additional options provided by plugins or other sources.
|
|
234
|
+
*/
|
|
253
235
|
output: TResolvedConfig["output"];
|
|
236
|
+
/**
|
|
237
|
+
* The configuration values read from the user configuration file before any resolution or merging with default values or plugin-provided configurations. This represents the raw configuration as defined by the user, and can be useful for debugging or for plugins that need to access the original configuration values before they are processed by Powerlines.
|
|
238
|
+
*/
|
|
239
|
+
readonly userConfig: DeepReadonly<TResolvedConfig["userConfig"]>;
|
|
240
|
+
/**
|
|
241
|
+
* The configuration options that were provided inline to the Powerlines CLI.
|
|
242
|
+
*/
|
|
243
|
+
readonly inlineConfig: DeepReadonly<TResolvedConfig["inlineConfig"]>;
|
|
254
244
|
};
|
|
255
245
|
/**
|
|
256
|
-
*
|
|
246
|
+
* A place to store metadata information on the context for access in plugins and other parts of the system. This can be used to store information about the current execution, such as a unique identifier for the execution, timestamps, or any other relevant data that may be useful for plugins or other parts of the system to access during the build process.
|
|
257
247
|
*/
|
|
258
248
|
meta: MetaInfo;
|
|
259
249
|
/**
|
|
@@ -263,31 +253,49 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
263
253
|
/**
|
|
264
254
|
* The path to a directory where the reflection data buffers (used by the build processes) are stored
|
|
265
255
|
*/
|
|
266
|
-
dataPath: string;
|
|
256
|
+
readonly dataPath: string;
|
|
267
257
|
/**
|
|
268
258
|
* The path to a directory where the project cache (used by the build processes) is stored
|
|
269
259
|
*/
|
|
270
|
-
cachePath: string;
|
|
260
|
+
readonly cachePath: string;
|
|
271
261
|
/**
|
|
272
262
|
* The Powerlines artifacts directory
|
|
273
263
|
*/
|
|
274
|
-
artifactsPath: string;
|
|
264
|
+
readonly artifactsPath: string;
|
|
275
265
|
/**
|
|
276
266
|
* The path to the Powerlines builtin runtime modules directory
|
|
277
267
|
*/
|
|
278
|
-
builtinsPath: string;
|
|
268
|
+
readonly builtinsPath: string;
|
|
279
269
|
/**
|
|
280
270
|
* The path to the Powerlines entry modules directory
|
|
281
271
|
*/
|
|
282
|
-
entryPath: string;
|
|
272
|
+
readonly entryPath: string;
|
|
283
273
|
/**
|
|
284
274
|
* The path to the Powerlines infrastructure modules directory
|
|
285
275
|
*/
|
|
286
|
-
infrastructurePath: string;
|
|
276
|
+
readonly infrastructurePath: string;
|
|
287
277
|
/**
|
|
288
278
|
* The path to the Powerlines TypeScript declaration files directory
|
|
289
279
|
*/
|
|
290
|
-
typesPath: string;
|
|
280
|
+
readonly typesPath: string;
|
|
281
|
+
/**
|
|
282
|
+
* Invokes the configured plugin hooks
|
|
283
|
+
*
|
|
284
|
+
* @remarks
|
|
285
|
+
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
286
|
+
*
|
|
287
|
+
* @param hook - The hook to call
|
|
288
|
+
* @param options - The options to provide to the hook
|
|
289
|
+
* @param args - The arguments to pass to the hook
|
|
290
|
+
* @returns The result of the hook call
|
|
291
|
+
*/
|
|
292
|
+
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
293
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
294
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
295
|
+
/**
|
|
296
|
+
* The virtual file system interface for managing files during the build process
|
|
297
|
+
*/
|
|
298
|
+
fs: VirtualFileSystemInterface;
|
|
291
299
|
/**
|
|
292
300
|
* The project's `package.json` file content
|
|
293
301
|
*/
|
|
@@ -312,10 +320,6 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
312
320
|
* The entry points of the source code
|
|
313
321
|
*/
|
|
314
322
|
entry: ResolvedEntryTypeDefinition[];
|
|
315
|
-
/**
|
|
316
|
-
* The virtual file system manager used during the build process to reference generated runtime files
|
|
317
|
-
*/
|
|
318
|
-
fs: VirtualFileSystemInterface;
|
|
319
323
|
/**
|
|
320
324
|
* The Jiti module resolver
|
|
321
325
|
*/
|
|
@@ -490,39 +494,42 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
490
494
|
* @remarks
|
|
491
495
|
* This context is used after the user configuration has been fully resolved and merged with default values, providing access to the final configuration options and utility functions for interacting with the Powerlines engine.
|
|
492
496
|
*/
|
|
493
|
-
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
497
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> = Omit<UnresolvedContext<TResolvedConfig, TSystemContext>, "config" | "callHook"> & {
|
|
494
498
|
/**
|
|
495
499
|
* The fully resolved Powerlines configuration
|
|
496
500
|
*/
|
|
497
501
|
config: TResolvedConfig;
|
|
498
502
|
/**
|
|
499
|
-
*
|
|
500
|
-
*/
|
|
501
|
-
setup: () => Promise<void>;
|
|
502
|
-
/**
|
|
503
|
-
* A function to create a deep clone of the context
|
|
503
|
+
* Invokes the configured plugin hooks
|
|
504
504
|
*
|
|
505
505
|
* @remarks
|
|
506
|
-
*
|
|
506
|
+
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
507
|
+
*
|
|
508
|
+
* @param hook - The hook to call
|
|
509
|
+
* @param options - The options to provide to the hook
|
|
510
|
+
* @param args - The arguments to pass to the hook
|
|
511
|
+
* @returns The result of the hook call
|
|
507
512
|
*/
|
|
508
|
-
|
|
513
|
+
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
514
|
+
environment?: string | EnvironmentContext<any, any>;
|
|
515
|
+
}, ...args: InferHookParameters<PluginContext<any, any>, TKey>) => Promise<InferHookReturnType<PluginContext<any, any>, TKey> | undefined>;
|
|
509
516
|
};
|
|
510
|
-
interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
517
|
+
interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Context<TResolvedConfig, TSystemContext> {
|
|
518
|
+
/**
|
|
519
|
+
* 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.
|
|
520
|
+
*/
|
|
521
|
+
readonly id: string;
|
|
511
522
|
/**
|
|
512
523
|
* The expected plugins options for the Powerlines project.
|
|
513
524
|
*
|
|
514
525
|
* @remarks
|
|
515
526
|
* This is a record of plugin identifiers to their respective options. This field is populated by the Powerlines engine during both plugin initialization and the `init` command.
|
|
516
527
|
*/
|
|
517
|
-
plugins: Plugin<PluginContext<TResolvedConfig>>[];
|
|
518
|
-
/**
|
|
519
|
-
* A function to add a plugin to the context and update the configuration options
|
|
520
|
-
*/
|
|
521
|
-
addPlugin: (plugin: Plugin<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
528
|
+
plugins: Plugin<PluginContext<TResolvedConfig, TSystemContext>>[];
|
|
522
529
|
/**
|
|
523
530
|
* A table for storing the current context for each configured environment
|
|
524
531
|
*/
|
|
525
|
-
environments: Record<string, EnvironmentContext<TResolvedConfig>>;
|
|
532
|
+
environments: Record<string, EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
526
533
|
/**
|
|
527
534
|
* Retrieves the context for a specific environment by name
|
|
528
535
|
*
|
|
@@ -537,7 +544,7 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
537
544
|
* const defaultEnv = await apiContext.getEnvironment();
|
|
538
545
|
* ```
|
|
539
546
|
*/
|
|
540
|
-
getEnvironment: (name?: string) => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
547
|
+
getEnvironment: (name?: string) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
541
548
|
/**
|
|
542
549
|
* Safely retrieves the context for a specific environment by name
|
|
543
550
|
*
|
|
@@ -565,87 +572,105 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
565
572
|
*
|
|
566
573
|
* Using this method helps avoid unhandled exceptions in cases where an environment might not be defined.
|
|
567
574
|
*/
|
|
568
|
-
getEnvironmentSafe: (name?: string) => Promise<EnvironmentContext<TResolvedConfig> | undefined>;
|
|
575
|
+
getEnvironmentSafe: (name?: string) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext> | undefined>;
|
|
569
576
|
/**
|
|
570
577
|
* A function to copy the context and update the fields for a specific environment
|
|
571
578
|
*
|
|
572
579
|
* @param environment - The environment configuration to use.
|
|
573
580
|
* @returns A new context instance with the updated environment.
|
|
574
581
|
*/
|
|
575
|
-
|
|
582
|
+
createEnvironment: (environment: EnvironmentResolvedConfig<TResolvedConfig>["environment"]) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
576
583
|
/**
|
|
577
584
|
* A function to merge all configured environments into a single context
|
|
578
585
|
*
|
|
579
586
|
* @returns A promise that resolves to the merged environment context.
|
|
580
587
|
*/
|
|
581
|
-
toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
588
|
+
toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
582
589
|
/**
|
|
583
|
-
* A function to
|
|
590
|
+
* A function used internally to add a plugin to the context and update the configuration options
|
|
584
591
|
*
|
|
585
|
-
* @
|
|
586
|
-
* This
|
|
592
|
+
* @danger
|
|
593
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
594
|
+
*
|
|
595
|
+
* @internal
|
|
587
596
|
*/
|
|
588
|
-
|
|
597
|
+
unstable_addPlugin: (plugin: PluginConfig<PluginContext<TResolvedConfig, TSystemContext>>) => Promise<void>;
|
|
589
598
|
}
|
|
590
|
-
interface
|
|
591
|
-
|
|
592
|
-
|
|
599
|
+
interface EnvironmentPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Plugin<PluginContext<TResolvedConfig, TSystemContext>> {
|
|
600
|
+
/**
|
|
601
|
+
* A internal field to store the plugin configuration and context for the environment context
|
|
602
|
+
*
|
|
603
|
+
* @danger
|
|
604
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
605
|
+
*
|
|
606
|
+
* @internal
|
|
607
|
+
*/
|
|
608
|
+
$$internal: {
|
|
609
|
+
/**
|
|
610
|
+
* The unique identifier of the plugin, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
611
|
+
*/
|
|
612
|
+
readonly id: string;
|
|
613
|
+
/**
|
|
614
|
+
* The context for the plugin, which provides access to the Powerlines engine and other utilities for interacting with the build process.
|
|
615
|
+
*
|
|
616
|
+
* @remarks
|
|
617
|
+
* This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
|
|
618
|
+
*/
|
|
619
|
+
readonly context: PluginContext<TResolvedConfig, TSystemContext>;
|
|
620
|
+
};
|
|
593
621
|
}
|
|
594
622
|
type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = HooksListItem<TContext, TKey> & {
|
|
595
623
|
context: TContext;
|
|
596
624
|
};
|
|
597
625
|
type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
|
|
598
|
-
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
626
|
+
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Context<EnvironmentResolvedConfig<TResolvedConfig>, TSystemContext> {
|
|
627
|
+
/**
|
|
628
|
+
* 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.
|
|
629
|
+
*/
|
|
630
|
+
readonly id: string;
|
|
599
631
|
/**
|
|
600
632
|
* The expected plugins options for the Powerlines project.
|
|
601
633
|
*
|
|
602
634
|
* @remarks
|
|
603
635
|
* This is a record of plugin identifiers to their respective options. This field is populated by the Powerlines engine during both plugin initialization and the `init` command.
|
|
604
636
|
*/
|
|
605
|
-
plugins:
|
|
606
|
-
/**
|
|
607
|
-
* A function to add a plugin to the context and update the configuration options
|
|
608
|
-
*/
|
|
609
|
-
addPlugin: (plugin: Plugin<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
637
|
+
plugins: EnvironmentPlugin<TResolvedConfig, TSystemContext>[];
|
|
610
638
|
/**
|
|
611
|
-
*
|
|
639
|
+
* A table holding references to hook functions registered by plugins
|
|
612
640
|
*/
|
|
613
|
-
|
|
641
|
+
hooks: HooksList<PluginContext<TResolvedConfig, TSystemContext>>;
|
|
614
642
|
/**
|
|
615
|
-
*
|
|
643
|
+
* The execution context associated with this environment, which provides access to the project configuration, environment, and utility functions for performing the build. The execution context is used to manage the state and behavior of the build process across multiple environments, allowing for hooks to be called at different stages of the build and for environment-specific configurations to be applied.
|
|
644
|
+
*
|
|
645
|
+
* @danger
|
|
646
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
647
|
+
*
|
|
648
|
+
* @internal
|
|
616
649
|
*/
|
|
617
|
-
|
|
650
|
+
unstable_execution: ExecutionContext<TResolvedConfig, TSystemContext>;
|
|
618
651
|
/**
|
|
619
652
|
* Retrieves the hook handlers for a specific hook name
|
|
620
653
|
*/
|
|
621
|
-
selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig>, TKey>;
|
|
654
|
+
selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig, TSystemContext>, TKey>;
|
|
622
655
|
/**
|
|
623
|
-
* A function to
|
|
656
|
+
* A function used internally to add a plugin to the context and update the configuration options
|
|
624
657
|
*
|
|
625
|
-
* @
|
|
626
|
-
* This
|
|
658
|
+
* @danger
|
|
659
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
660
|
+
*
|
|
661
|
+
* @internal
|
|
627
662
|
*/
|
|
628
|
-
|
|
663
|
+
unstable_addPlugin: (plugin: PluginConfig<PluginContext<TResolvedConfig, TSystemContext>>) => Promise<void>;
|
|
629
664
|
}
|
|
630
|
-
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>,
|
|
665
|
+
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Context<EnvironmentResolvedConfig<TResolvedConfig>, TSystemContext> {
|
|
631
666
|
/**
|
|
632
|
-
* The
|
|
667
|
+
* 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.
|
|
633
668
|
*/
|
|
634
|
-
|
|
669
|
+
readonly id: string;
|
|
635
670
|
/**
|
|
636
|
-
*
|
|
637
|
-
*
|
|
638
|
-
* @remarks
|
|
639
|
-
* This is provided for compatibility with other logging libraries that expect a `logger` property.
|
|
640
|
-
*/
|
|
641
|
-
logger: LogFn;
|
|
642
|
-
/**
|
|
643
|
-
* A function to create a deep clone of the context
|
|
644
|
-
*
|
|
645
|
-
* @remarks
|
|
646
|
-
* This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
|
|
671
|
+
* The context for the environment associated with this plugin context, which provides access to the Powerlines engine and other utilities for interacting with the build process. This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
|
|
647
672
|
*/
|
|
648
|
-
|
|
673
|
+
readonly environment: EnvironmentContext;
|
|
649
674
|
}
|
|
650
675
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
651
676
|
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
@@ -662,11 +687,10 @@ declare type __ΩEmitOptions = any[];
|
|
|
662
687
|
declare type __ΩEmitEntryOptions = any[];
|
|
663
688
|
declare type __ΩResolveResult = any[];
|
|
664
689
|
declare type __ΩBaseContext = any[];
|
|
665
|
-
declare type __ΩEngineContext = any[];
|
|
666
690
|
declare type __ΩUnresolvedContext = any[];
|
|
667
691
|
declare type __ΩContext = any[];
|
|
668
692
|
declare type __ΩExecutionContext = any[];
|
|
669
|
-
declare type __Ω
|
|
693
|
+
declare type __ΩEnvironmentPlugin = any[];
|
|
670
694
|
declare type __ΩSelectHookResultItem = any[];
|
|
671
695
|
declare type __ΩSelectHookResult = any[];
|
|
672
696
|
declare type __ΩEnvironmentContext = any[];
|
|
@@ -674,5 +698,5 @@ declare type __ΩPluginContext = any[];
|
|
|
674
698
|
declare type __ΩBuildPluginContext = any[];
|
|
675
699
|
declare type __ΩWithUnpluginBuildContext = any[];
|
|
676
700
|
//#endregion
|
|
677
|
-
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions,
|
|
701
|
+
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
|
|
678
702
|
//# 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":";;;;;;;;;;;;;;;;;;;KAuDY,QAAA,GAAW,MAAA;EAAX;;;EAIV,QAAA;EAJqB;;;EASrB,WAAA;EAUA;;;EALA,SAAA;EAeU;AAGZ;;EAbE,SAAA;EAaoC;;;EARpC,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;EASf;;;EALA,EAAA;EAeS;;;EAVT,IAAA,EAAM,WAAA;EAamB;;;EARzB,GAAA;EASmB;;;EAJn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GU,aAAA,6BACa,cAAA,GAAiB,cAAA,oCAErC,OAAA,CAAQ,yBAAA,CAA0B,eAAA,GAAkB,cAAA;EA1DvB;AAEvC;;EAFuC,SA8D5B,EAAA;EA3De;;;EAAA,SAgEf,WAAA,EAAa,kBAAA;AAAA;AAAA,KAGZ,kBAAA,yBACc,cAAA,GAAiB,cAAA,IACvC,oBAAA,GAAuB,aAAA,CAAc,eAAA;AAAA,KAE7B,wBAAA,kBAA0C,aAAA,IACpD,oBAAA,GAAuB,QAAA;AAAA"}
|
package/dist/types/fs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
1
2
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
3
|
import { AssetGlob } from "@stryke/types/file";
|
|
3
|
-
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
4
4
|
|
|
5
5
|
//#region src/types/fs.d.ts
|
|
6
6
|
type VirtualFileExtension = "js" | "ts" | "jsx" | "tsx";
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
import { BaseCommandType, CommandType, Commands, __ΩBaseCommandType, __ΩCommandType, __ΩCommands } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { API, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess, __ΩAPI, __ΩEngine, __ΩExecution, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess } from "./api.cjs";
|
|
5
|
-
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./unplugin.cjs";
|
|
2
|
+
import { BaseCommandType, BaseExecutionAPIMethods, CommandType, Commands, PowerlinesExecutionAPIMethods, SupportedCommands, __ΩBaseCommandType, __ΩBaseExecutionAPIMethods, __ΩCommandType, __ΩCommands, __ΩPowerlinesExecutionAPIMethods, __ΩSupportedCommands } from "./api.cjs";
|
|
3
|
+
import { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions, __ΩBuilderVariant, __ΩUnpluginBuilderVariant, __ΩUnpluginHookFunctions, __ΩUnpluginOptions } from "./unplugin.cjs";
|
|
6
4
|
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
5
|
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";
|
|
6
|
+
import { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage, __ΩCustomLogger, __ΩCustomLoggerMessage, __ΩLogCategory, __ΩLogFn, __ΩLogFnMeta, __ΩLogFnOptions, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMessage, __ΩLogMeta, __ΩLogger, __ΩLoggerMessage, __ΩLoggerMeta, __ΩLoggerOptions, __ΩPowerlinesMessage } from "./logging.cjs";
|
|
8
7
|
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,
|
|
10
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig,
|
|
8
|
+
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.cjs";
|
|
9
|
+
import { AnyOutputUserConfig, AnyUserConfig, BaseExecutionOptions, BuildInlineConfig, CleanInlineConfig, Config, ConfigParams, CopyConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, FrameworkOptions, InferOverridableConfig, InlineConfig, InlineConfigPaths, LintInlineConfig, Mode, Options, OutputConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBaseExecutionOptions, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩConfigParams, __ΩCopyConfig, __ΩCreateInlineConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩFrameworkOptions, __ΩInferOverridableConfig, __ΩInlineConfig, __ΩInlineConfigPaths, __ΩLintInlineConfig, __ΩMode, __ΩOptions, __ΩOutputConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedCopyConfig, __ΩResolvedEntryTypeDefinition, __ΩResolvedEnvironmentConfig, __ΩResolvedOutputConfig, __ΩResolvedResolveConfig, __ΩTestInlineConfig, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./config.cjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
import { BaseCommandType, CommandType, Commands, __ΩBaseCommandType, __ΩCommandType, __ΩCommands } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { API, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess, __ΩAPI, __ΩEngine, __ΩExecution, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess } from "./api.mjs";
|
|
5
|
-
import { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig } from "./unplugin.mjs";
|
|
2
|
+
import { BaseCommandType, BaseExecutionAPIMethods, CommandType, Commands, PowerlinesExecutionAPIMethods, SupportedCommands, __ΩBaseCommandType, __ΩBaseExecutionAPIMethods, __ΩCommandType, __ΩCommands, __ΩPowerlinesExecutionAPIMethods, __ΩSupportedCommands } from "./api.mjs";
|
|
3
|
+
import { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions, __ΩBuilderVariant, __ΩUnpluginBuilderVariant, __ΩUnpluginHookFunctions, __ΩUnpluginOptions } from "./unplugin.mjs";
|
|
6
4
|
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
5
|
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";
|
|
6
|
+
import { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage, __ΩCustomLogger, __ΩCustomLoggerMessage, __ΩLogCategory, __ΩLogFn, __ΩLogFnMeta, __ΩLogFnOptions, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMessage, __ΩLogMeta, __ΩLogger, __ΩLoggerMessage, __ΩLoggerMeta, __ΩLoggerOptions, __ΩPowerlinesMessage } from "./logging.mjs";
|
|
8
7
|
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,
|
|
10
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig,
|
|
8
|
+
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.mjs";
|
|
9
|
+
import { AnyOutputUserConfig, AnyUserConfig, BaseExecutionOptions, BuildInlineConfig, CleanInlineConfig, Config, ConfigParams, CopyConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, FrameworkOptions, InferOverridableConfig, InlineConfig, InlineConfigPaths, LintInlineConfig, Mode, Options, OutputConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBaseExecutionOptions, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩConfigParams, __ΩCopyConfig, __ΩCreateInlineConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩFrameworkOptions, __ΩInferOverridableConfig, __ΩInlineConfig, __ΩInlineConfigPaths, __ΩLintInlineConfig, __ΩMode, __ΩOptions, __ΩOutputConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedCopyConfig, __ΩResolvedEntryTypeDefinition, __ΩResolvedEnvironmentConfig, __ΩResolvedOutputConfig, __ΩResolvedResolveConfig, __ΩTestInlineConfig, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./config.mjs";
|