@powerlines/core 0.15.0 → 0.15.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/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 +5 -5
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts +5 -5
- 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.d.cts +2 -2
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts +2 -2
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- 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 +11 -12
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +11 -12
- 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.d.cts +2 -2
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts +2 -2
- package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
- 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 +140 -130
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +143 -133
- 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 +6 -27
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +6 -27
- 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/config.d.mts
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
2
2
|
import { Plugin } from "./plugin.mjs";
|
|
3
|
+
import { LogFn, LogLevelResolvedConfig, LogLevelUserConfig } from "./logging.mjs";
|
|
3
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
4
5
|
import { PluginContext } from "./context.mjs";
|
|
5
6
|
import { ConfigLayer, ResolvedConfig } from "c12";
|
|
6
|
-
import {
|
|
7
|
+
import { CompatibilityDateSpec, CompatibilityDates } from "compatx";
|
|
7
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
8
9
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
9
|
-
import { DeepPartial, MaybePromise, NonUndefined,
|
|
10
|
+
import { DeepPartial, DeepReadonly, MaybePromise, NonUndefined, RequiredKeys } from "@stryke/types/base";
|
|
10
11
|
import { TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
11
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
12
|
-
import { CompatibilityDateSpec, CompatibilityDates } from "compatx";
|
|
13
13
|
import { PreviewOptions, ResolvedPreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region src/types/config.d.ts
|
|
16
|
-
type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
|
|
17
|
-
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
18
|
-
type LogLevelConfig = Record<LogLevel, boolean>;
|
|
19
|
-
interface Logger {
|
|
20
|
-
log: LogFn;
|
|
21
|
-
level: LogLevelLabel;
|
|
22
|
-
}
|
|
23
16
|
/**
|
|
24
17
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
25
18
|
*/
|
|
@@ -46,6 +39,7 @@ type PluginConfig<TContext extends PluginContext = PluginContext> = string | Plu
|
|
|
46
39
|
type PartialPlugin<TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
47
40
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext> | PartialPlugin<TContext>[]>;
|
|
48
41
|
type ProjectType = "application" | "library";
|
|
42
|
+
type Mode = "development" | "test" | "production";
|
|
49
43
|
/**
|
|
50
44
|
* The configuration options for resolving modules in a Powerlines project.
|
|
51
45
|
*/
|
|
@@ -239,53 +233,87 @@ interface OutputConfig {
|
|
|
239
233
|
*/
|
|
240
234
|
storage?: StoragePort | StoragePreset;
|
|
241
235
|
}
|
|
242
|
-
interface
|
|
236
|
+
interface FrameworkOptions {
|
|
243
237
|
/**
|
|
244
|
-
* The
|
|
238
|
+
* The name of the framework
|
|
239
|
+
*
|
|
240
|
+
* @remarks
|
|
241
|
+
* This value is used to identify the framework in logs, error messages, and other places where the framework's name is needed.
|
|
242
|
+
*
|
|
243
|
+
* @defaultValue "powerlines"
|
|
245
244
|
*/
|
|
246
|
-
|
|
245
|
+
name: string;
|
|
247
246
|
/**
|
|
248
|
-
* The
|
|
247
|
+
* The version of the framework
|
|
249
248
|
*
|
|
250
249
|
* @remarks
|
|
251
|
-
*
|
|
250
|
+
* This value is used to identify the version of the framework in logs, error messages, and other places where the framework's version is needed.
|
|
251
|
+
*
|
|
252
|
+
* @defaultValue "0.0.1"
|
|
252
253
|
*/
|
|
253
|
-
|
|
254
|
+
version?: string;
|
|
254
255
|
/**
|
|
255
|
-
*
|
|
256
|
+
* The organization or author of the framework
|
|
256
257
|
*
|
|
257
|
-
* @defaultValue "
|
|
258
|
+
* @defaultValue "storm-software"
|
|
258
259
|
*/
|
|
259
|
-
|
|
260
|
+
orgId: string;
|
|
261
|
+
}
|
|
262
|
+
interface Options {
|
|
260
263
|
/**
|
|
261
|
-
*
|
|
264
|
+
* The current working directory the Powerlines processes should operate in
|
|
262
265
|
*
|
|
263
266
|
* @remarks
|
|
264
|
-
* If
|
|
267
|
+
* If not provided, the {@link WorkspaceConfig.workspaceRoot | workspace root} will be used as the current working directory. If the workspace root cannot be determined, the process's current working directory will be used.
|
|
268
|
+
*/
|
|
269
|
+
cwd?: string;
|
|
270
|
+
/**
|
|
271
|
+
* The log level label indicating the severity of the log message, or a more detailed log level configuration object that allows for specifying different log levels for different categories of logs.
|
|
265
272
|
*
|
|
266
|
-
* @
|
|
273
|
+
* @remarks
|
|
274
|
+
* The log level determines the minimum severity of messages that will be logged. For example, if the log level is set to `LogLevel.INFO`, then messages with a severity of `INFO`, `WARN`, and `ERROR` will be logged, while messages with a severity of `DEBUG` and `TRACE` will be ignored. Setting the log level to `LogLevel.SILENT` will disable all logging. Alternatively, you can provide a more detailed configuration object that allows you to specify different log levels for different categories of logs, providing granular control over the logging behavior for different aspects of the system.
|
|
275
|
+
*
|
|
276
|
+
* @defaultValue "info"
|
|
267
277
|
*/
|
|
268
|
-
|
|
278
|
+
logLevel?: LogLevelUserConfig;
|
|
269
279
|
/**
|
|
270
|
-
*
|
|
280
|
+
* Details about the framework being used in the current execution, which can be used by plugins and other parts of the system to customize behavior based on the framework.
|
|
271
281
|
*/
|
|
272
|
-
|
|
282
|
+
framework?: FrameworkOptions;
|
|
283
|
+
}
|
|
284
|
+
interface BaseExecutionOptions extends RequiredKeys<Options, "cwd"> {
|
|
285
|
+
/**
|
|
286
|
+
* The root directory of the project
|
|
287
|
+
*/
|
|
288
|
+
root: string;
|
|
289
|
+
}
|
|
290
|
+
interface ExecutionOptions extends BaseExecutionOptions {
|
|
291
|
+
/**
|
|
292
|
+
* A unique identifier for the current execution instance, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
293
|
+
*/
|
|
294
|
+
executionId: string;
|
|
295
|
+
/**
|
|
296
|
+
* The index of the current execution instance among all configured instances in the Powerlines process
|
|
297
|
+
*/
|
|
298
|
+
configIndex: number;
|
|
273
299
|
/**
|
|
274
300
|
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
275
301
|
*
|
|
276
302
|
* @remarks
|
|
277
303
|
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
278
304
|
*/
|
|
279
|
-
configFile
|
|
280
|
-
}
|
|
281
|
-
type ResolvedEngineOptions = PartialKeys<Required<EngineOptions>, "organization" | "configFile">;
|
|
282
|
-
interface ExecutionOptions extends EngineOptions {
|
|
305
|
+
configFile: string;
|
|
283
306
|
/**
|
|
284
|
-
*
|
|
307
|
+
* A logging function provided by the code invoking the Powerlines execution process, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
308
|
+
*
|
|
309
|
+
* @remarks
|
|
310
|
+
* Providing a custom logging function allows you to integrate Powerlines logging with your own logging system or to customize the logging behavior, such as formatting log messages differently or sending logs to an external service. If a custom logging function is not provided, Powerlines will use its default logger implementation.
|
|
311
|
+
*
|
|
312
|
+
* @important
|
|
313
|
+
* This function cannot be provided by the Powerlines engine, as it is not serializable. It must be passed directly to the execution context when creating it, and will not be preserved if the context is cloned or serialized.
|
|
285
314
|
*/
|
|
286
|
-
|
|
315
|
+
logFn?: LogFn;
|
|
287
316
|
}
|
|
288
|
-
type ResolvedExecutionOptions = Pick<ExecutionOptions, "configIndex"> & ResolvedEngineOptions;
|
|
289
317
|
interface Config {
|
|
290
318
|
/**
|
|
291
319
|
* Defines entries and location(s) of entry modules for the bundle. Relative paths are resolved based on the `root` option.
|
|
@@ -295,6 +323,17 @@ interface Config {
|
|
|
295
323
|
* Configuration for the output files generated by processing the source code
|
|
296
324
|
*/
|
|
297
325
|
output?: OutputConfig;
|
|
326
|
+
/**
|
|
327
|
+
* The date to use for compatibility checks
|
|
328
|
+
*
|
|
329
|
+
* @remarks
|
|
330
|
+
* This date can be used by plugins and build processes to determine compatibility with certain features or APIs. It is recommended to set this date to the date when the project was last known to be compatible with the desired features or APIs. If no value is provided, the latest compatibility date will be used.
|
|
331
|
+
*
|
|
332
|
+
* @see https://developers.cloudflare.com/pages/platform/compatibility-dates/
|
|
333
|
+
* @see https://docs.netlify.com/configure-builds/get-started/#set-a-compatibility-date
|
|
334
|
+
* @see https://github.com/unjs/compatx
|
|
335
|
+
*/
|
|
336
|
+
compatibilityDate?: CompatibilityDateSpec;
|
|
298
337
|
/**
|
|
299
338
|
* Configuration for module resolution during processing of the source code
|
|
300
339
|
*/
|
|
@@ -373,6 +412,13 @@ interface EnvironmentConfig extends Config {
|
|
|
373
412
|
* A flag indicating whether the build is for a Server-Side Rendering environment.
|
|
374
413
|
*/
|
|
375
414
|
ssr?: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* The runtime environment for the build, which can be used by plugins to determine how to process the source code and generate runtime artifacts.
|
|
417
|
+
*
|
|
418
|
+
* @remarks
|
|
419
|
+
* This option can be used to specify the target runtime environment for the build, such as "nodejs", "browser", "workerd", or "edge". Plugins can use this information to determine how to process the source code and generate runtime artifacts that are compatible with the specified environment. If no value is provided, plugins will need to determine the runtime environment based on other factors, such as the presence of certain dependencies or configuration options.
|
|
420
|
+
*/
|
|
421
|
+
runtime?: "nodejs" | "browser" | "workerd" | "edge";
|
|
376
422
|
/**
|
|
377
423
|
* Define if this environment is used for Server-Side Rendering
|
|
378
424
|
*
|
|
@@ -380,7 +426,7 @@ interface EnvironmentConfig extends Config {
|
|
|
380
426
|
*/
|
|
381
427
|
consumer?: "client" | "server";
|
|
382
428
|
}
|
|
383
|
-
interface UserConfig extends Config
|
|
429
|
+
interface UserConfig extends Config {
|
|
384
430
|
/**
|
|
385
431
|
* The name of the project
|
|
386
432
|
*/
|
|
@@ -407,26 +453,11 @@ interface UserConfig extends Config, ExecutionOptions {
|
|
|
407
453
|
*/
|
|
408
454
|
organization?: string;
|
|
409
455
|
/**
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
* @remarks
|
|
413
|
-
* This date can be used by plugins and build processes to determine compatibility with certain features or APIs. It is recommended to set this date to the date when the project was last known to be compatible with the desired features or APIs. If no value is provided, the latest compatibility date will be used.
|
|
414
|
-
*
|
|
415
|
-
* @see https://developers.cloudflare.com/pages/platform/compatibility-dates/
|
|
416
|
-
* @see https://docs.netlify.com/configure-builds/get-started/#set-a-compatibility-date
|
|
417
|
-
* @see https://github.com/unjs/compatx
|
|
418
|
-
*/
|
|
419
|
-
compatibilityDate?: CompatibilityDateSpec;
|
|
420
|
-
/**
|
|
421
|
-
* The log level to use for the Powerlines processes.
|
|
456
|
+
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
422
457
|
*
|
|
423
|
-
* @defaultValue "
|
|
424
|
-
*/
|
|
425
|
-
logLevel?: LogLevel | null;
|
|
426
|
-
/**
|
|
427
|
-
* A custom logger function to use for logging messages
|
|
458
|
+
* @defaultValue "production"
|
|
428
459
|
*/
|
|
429
|
-
|
|
460
|
+
mode?: Mode;
|
|
430
461
|
/**
|
|
431
462
|
* The type of project being built
|
|
432
463
|
*
|
|
@@ -470,78 +501,76 @@ interface UserConfig extends Config, ExecutionOptions {
|
|
|
470
501
|
singleBuild?: boolean;
|
|
471
502
|
}
|
|
472
503
|
type PowerlinesCommand = "new" | "types" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
473
|
-
|
|
474
|
-
* The configuration provided while executing Powerlines commands.
|
|
475
|
-
*/
|
|
476
|
-
type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
|
|
504
|
+
type InlineConfigPaths = {
|
|
477
505
|
/**
|
|
478
|
-
*
|
|
479
|
-
*/
|
|
480
|
-
command: PowerlinesCommand;
|
|
481
|
-
/**
|
|
482
|
-
* Additional arguments provided during execution of the command, such as CLI flags or other parameters that may be relevant to the command being executed.
|
|
483
|
-
*/
|
|
484
|
-
additionalArgs?: Record<string, string | string[]>;
|
|
485
|
-
};
|
|
486
|
-
type NewInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & Required<Pick<InlineConfig<TUserConfig>, "root">> & {
|
|
487
|
-
/**
|
|
488
|
-
* A string identifier for the Powerlines command being executed
|
|
506
|
+
* The root directory of the project
|
|
489
507
|
*/
|
|
490
|
-
|
|
508
|
+
root: string;
|
|
491
509
|
/**
|
|
492
|
-
*
|
|
510
|
+
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
511
|
+
*
|
|
512
|
+
* @remarks
|
|
513
|
+
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
493
514
|
*/
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
type CleanInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
515
|
+
configFile?: string;
|
|
516
|
+
} | {
|
|
497
517
|
/**
|
|
498
|
-
*
|
|
518
|
+
* The root directory of the project
|
|
499
519
|
*/
|
|
500
|
-
|
|
501
|
-
};
|
|
502
|
-
type PrepareInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
520
|
+
root?: string;
|
|
503
521
|
/**
|
|
504
|
-
* A
|
|
522
|
+
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
523
|
+
*
|
|
524
|
+
* @remarks
|
|
525
|
+
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
505
526
|
*/
|
|
506
|
-
|
|
527
|
+
configFile?: string;
|
|
507
528
|
};
|
|
508
|
-
|
|
529
|
+
/**
|
|
530
|
+
* The configuration provided while executing Powerlines commands.
|
|
531
|
+
*/
|
|
532
|
+
type InlineConfig<TUserConfig extends UserConfig = UserConfig> = DeepPartial<Omit<TUserConfig, "plugins" | "customLogger">> & {
|
|
509
533
|
/**
|
|
510
|
-
*
|
|
534
|
+
* The root directory of the project
|
|
511
535
|
*/
|
|
512
|
-
|
|
513
|
-
};
|
|
514
|
-
type BuildInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
536
|
+
root?: string;
|
|
515
537
|
/**
|
|
516
|
-
* A
|
|
538
|
+
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
539
|
+
*
|
|
540
|
+
* @remarks
|
|
541
|
+
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
517
542
|
*/
|
|
518
|
-
|
|
519
|
-
};
|
|
520
|
-
type LintInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
543
|
+
configFile?: string;
|
|
521
544
|
/**
|
|
522
545
|
* A string identifier for the Powerlines command being executed
|
|
523
546
|
*/
|
|
524
|
-
command:
|
|
525
|
-
};
|
|
526
|
-
type TestInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
547
|
+
command: string;
|
|
527
548
|
/**
|
|
528
|
-
*
|
|
549
|
+
* Additional arguments provided during execution of the command, such as CLI flags or other parameters that may be relevant to the command being executed.
|
|
529
550
|
*/
|
|
530
|
-
|
|
551
|
+
additionalArgs?: Record<string, string | string[]>;
|
|
531
552
|
};
|
|
532
|
-
type
|
|
553
|
+
type CreateInlineConfig<TUserConfig extends UserConfig = UserConfig> = RequiredKeys<InlineConfig<TUserConfig>, "root"> & {
|
|
533
554
|
/**
|
|
534
|
-
*
|
|
555
|
+
* The package name (from the \`package.json\`) for the project that will be used in the \`create\` command to create a new project based on this configuration
|
|
535
556
|
*/
|
|
536
|
-
|
|
557
|
+
packageName?: string;
|
|
537
558
|
};
|
|
538
|
-
type
|
|
559
|
+
type CleanInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
560
|
+
type PrepareInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
561
|
+
type TypesInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
562
|
+
type BuildInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
563
|
+
type LintInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
564
|
+
type TestInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
565
|
+
type DocsInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
566
|
+
type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig>;
|
|
567
|
+
type ConfigParams = BaseExecutionOptions & Pick<Required<UserConfig>, "mode"> & {
|
|
539
568
|
/**
|
|
540
569
|
* A string identifier for the Powerlines command being executed
|
|
541
570
|
*/
|
|
542
|
-
command:
|
|
571
|
+
command: string;
|
|
543
572
|
};
|
|
544
|
-
type UserConfigFn<TUserConfig extends UserConfig = UserConfig> = (params:
|
|
573
|
+
type UserConfigFn<TUserConfig extends UserConfig = UserConfig> = (params: ConfigParams) => MaybePromise<TUserConfig>;
|
|
545
574
|
type AnyOutputUserConfig = Partial<Omit<OutputConfig, "copy">> & {
|
|
546
575
|
/**
|
|
547
576
|
* The output configuration options to use for the build process
|
|
@@ -583,9 +612,13 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
583
612
|
*/
|
|
584
613
|
output?: string;
|
|
585
614
|
}
|
|
586
|
-
type
|
|
615
|
+
type ResolvedEnvironmentConfig = RequiredKeys<Omit<EnvironmentConfig, "preview">, "consumer" | "ssr"> & {
|
|
587
616
|
/**
|
|
588
|
-
*
|
|
617
|
+
* A string identifier for the environment used by the system and plugins to determine which environment-specific configuration to use during the build process.
|
|
618
|
+
*/
|
|
619
|
+
id: string;
|
|
620
|
+
/**
|
|
621
|
+
* The name of the environment provided by the user in the {@link UserConfig.environments | environments} configuration.
|
|
589
622
|
*/
|
|
590
623
|
name: string;
|
|
591
624
|
/**
|
|
@@ -596,7 +629,7 @@ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "p
|
|
|
596
629
|
/**
|
|
597
630
|
* The configuration options for resolving modules in a Powerlines project.
|
|
598
631
|
*/
|
|
599
|
-
type
|
|
632
|
+
type ResolvedResolveConfig = Required<Omit<ResolveConfig, "external" | "noExternal">> & {
|
|
600
633
|
/**
|
|
601
634
|
* A list of modules that should not be bundled, even if they are external dependencies.
|
|
602
635
|
*
|
|
@@ -610,24 +643,47 @@ type ResolveResolvedConfig = Required<Omit<ResolveConfig, "external" | "noExtern
|
|
|
610
643
|
noExternal?: string[];
|
|
611
644
|
};
|
|
612
645
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
613
|
-
type
|
|
646
|
+
type ResolvedCopyConfig = Required<Omit<CopyConfig, "assets">> & {
|
|
614
647
|
assets: ResolvedAssetGlob[];
|
|
615
648
|
};
|
|
616
|
-
type
|
|
617
|
-
copy:
|
|
649
|
+
type ResolvedOutputConfig = Required<Omit<OutputConfig, "copy" | "storage">> & Pick<OutputConfig, "storage"> & {
|
|
650
|
+
copy: ResolvedCopyConfig | false;
|
|
618
651
|
};
|
|
619
652
|
/**
|
|
620
|
-
* The resolved options for
|
|
653
|
+
* The base resolved configuration options for a Powerlines project, after being processed and normalized by the configuration loading process.
|
|
621
654
|
*/
|
|
622
|
-
type ResolvedConfig$1<TUserConfig extends UserConfig = UserConfig> = Omit<
|
|
655
|
+
type ResolvedConfig$1<TUserConfig extends UserConfig = UserConfig, TExecutionOptions extends ExecutionOptions = ExecutionOptions> = Omit<TExecutionOptions, "logLevel"> & Omit<RequiredKeys<TUserConfig, "name" | "title" | "plugins" | "mode" | "organization" | "environments" | "input" | "tsconfig" | "platform" | "projectType">, "compatibilityDate" | "output" | "resolve" | "logLevel"> & {
|
|
656
|
+
/**
|
|
657
|
+
* The configuration options read from a configuration file on disk, which may be used to resolve the final configuration for the context. This typically includes the user configuration options defined in the `powerlines.config.ts` file, as well as any inline configuration options provided during execution.
|
|
658
|
+
*/
|
|
659
|
+
readonly userConfig: DeepReadonly<TUserConfig>;
|
|
660
|
+
/**
|
|
661
|
+
* The configuration options provided by plugins added by the user (and other plugins)
|
|
662
|
+
*/
|
|
663
|
+
readonly inlineConfig: DeepReadonly<InlineConfig<TUserConfig>>;
|
|
664
|
+
/**
|
|
665
|
+
* The configuration options that were provided by Powerlines plugins, which may have been merged with the user configuration and modified by the configuration loading process.
|
|
666
|
+
*/
|
|
667
|
+
readonly pluginConfig: DeepReadonly<DeepPartial<TUserConfig>>;
|
|
668
|
+
/**
|
|
669
|
+
* A string identifier for the Powerlines command being executed.
|
|
670
|
+
*/
|
|
671
|
+
readonly command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
|
|
672
|
+
/**
|
|
673
|
+
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
674
|
+
*
|
|
675
|
+
* @remarks
|
|
676
|
+
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
677
|
+
*/
|
|
678
|
+
readonly configFile: string;
|
|
623
679
|
/**
|
|
624
680
|
* The output configuration options to use for the build process
|
|
625
681
|
*/
|
|
626
|
-
output:
|
|
682
|
+
output: ResolvedOutputConfig;
|
|
627
683
|
/**
|
|
628
684
|
* Configuration for module resolution during processing of the source code
|
|
629
685
|
*/
|
|
630
|
-
resolve:
|
|
686
|
+
resolve: ResolvedResolveConfig;
|
|
631
687
|
/**
|
|
632
688
|
* The date to use for compatibility checks
|
|
633
689
|
*
|
|
@@ -640,32 +696,30 @@ type ResolvedConfig$1<TUserConfig extends UserConfig = UserConfig> = Omit<TUserC
|
|
|
640
696
|
*/
|
|
641
697
|
compatibilityDate: CompatibilityDates;
|
|
642
698
|
/**
|
|
643
|
-
* The configuration
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
* The original configuration options that were provided by the user to the Powerlines process.
|
|
648
|
-
*/
|
|
649
|
-
userConfig: TUserConfig;
|
|
650
|
-
/**
|
|
651
|
-
* The configuration options that were provided by Powerlines plugins, which may have been merged with the user configuration and modified by the configuration loading process.
|
|
699
|
+
* The log level label indicating the severity of the log message, or a more detailed log level configuration object that allows for specifying different log levels for different categories of logs.
|
|
700
|
+
*
|
|
701
|
+
* @remarks
|
|
702
|
+
* The log level determines the minimum severity of messages that will be logged. For example, if the log level is set to `LogLevel.INFO`, then messages with a severity of `INFO`, `WARN`, and `ERROR` will be logged, while messages with a severity of `DEBUG` and `TRACE` will be ignored. Setting the log level to `LogLevel.SILENT` will disable all logging. Alternatively, you can provide a more detailed configuration object that allows you to specify different log levels for different categories of logs, providing granular control over the logging behavior for different aspects of the system.
|
|
652
703
|
*/
|
|
653
|
-
|
|
704
|
+
logLevel: LogLevelResolvedConfig;
|
|
705
|
+
};
|
|
706
|
+
type InferOverridableConfig<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> = DeepPartial<Omit<TResolvedConfig, "userConfig" | "inlineConfig" | "pluginConfig" | "cwd" | "configFile" | "command">>;
|
|
707
|
+
/**
|
|
708
|
+
* The resolved configuration options for a Powerlines environment, after being processed and normalized by the configuration loading process.
|
|
709
|
+
*/
|
|
710
|
+
type EnvironmentResolvedConfig<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> = TResolvedConfig & {
|
|
654
711
|
/**
|
|
655
|
-
*
|
|
712
|
+
* The configuration provided when initializing the Powerlines API.
|
|
713
|
+
*
|
|
714
|
+
* @remarks
|
|
715
|
+
* This configuration is used during the initialization of the Powerlines API.
|
|
656
716
|
*/
|
|
657
|
-
|
|
717
|
+
readonly environmentConfig: DeepReadonly<EnvironmentConfig>;
|
|
658
718
|
/**
|
|
659
|
-
* The
|
|
660
|
-
*
|
|
661
|
-
* @defaultValue "info"
|
|
719
|
+
* The resolved configuration options for the environment, which may include additional properties or modifications made during the configuration loading process.
|
|
662
720
|
*/
|
|
663
|
-
|
|
721
|
+
environment: ResolvedEnvironmentConfig;
|
|
664
722
|
};
|
|
665
|
-
declare type __ΩLogLevel = any[];
|
|
666
|
-
declare type __ΩLogFn = any[];
|
|
667
|
-
declare type __ΩLogLevelConfig = any[];
|
|
668
|
-
declare type __ΩLogger = any[];
|
|
669
723
|
declare type __ΩWorkspaceConfig = any[];
|
|
670
724
|
declare type __ΩPluginFactory = any[];
|
|
671
725
|
declare type __ΩPluginConfigTuple = any[];
|
|
@@ -674,19 +728,21 @@ declare type __ΩPluginConfig = any[];
|
|
|
674
728
|
declare type __ΩPartialPlugin = any[];
|
|
675
729
|
declare type __ΩPartialPluginFactory = any[];
|
|
676
730
|
declare type __ΩProjectType = any[];
|
|
731
|
+
declare type __ΩMode = any[];
|
|
677
732
|
declare type __ΩResolveConfig = any[];
|
|
678
733
|
declare type __ΩCopyConfig = any[];
|
|
679
734
|
declare type __ΩOutputConfig = any[];
|
|
680
|
-
declare type __Ω
|
|
681
|
-
declare type __Ω
|
|
735
|
+
declare type __ΩFrameworkOptions = any[];
|
|
736
|
+
declare type __ΩOptions = any[];
|
|
737
|
+
declare type __ΩBaseExecutionOptions = any[];
|
|
682
738
|
declare type __ΩExecutionOptions = any[];
|
|
683
|
-
declare type __ΩResolvedExecutionOptions = any[];
|
|
684
739
|
declare type __ΩConfig = any[];
|
|
685
740
|
declare type __ΩEnvironmentConfig = any[];
|
|
686
741
|
declare type __ΩUserConfig = any[];
|
|
687
742
|
declare type __ΩPowerlinesCommand = any[];
|
|
743
|
+
declare type __ΩInlineConfigPaths = any[];
|
|
688
744
|
declare type __ΩInlineConfig = any[];
|
|
689
|
-
declare type __Ω
|
|
745
|
+
declare type __ΩCreateInlineConfig = any[];
|
|
690
746
|
declare type __ΩCleanInlineConfig = any[];
|
|
691
747
|
declare type __ΩPrepareInlineConfig = any[];
|
|
692
748
|
declare type __ΩTypesInlineConfig = any[];
|
|
@@ -695,17 +751,20 @@ declare type __ΩLintInlineConfig = any[];
|
|
|
695
751
|
declare type __ΩTestInlineConfig = any[];
|
|
696
752
|
declare type __ΩDocsInlineConfig = any[];
|
|
697
753
|
declare type __ΩDeployInlineConfig = any[];
|
|
754
|
+
declare type __ΩConfigParams = any[];
|
|
698
755
|
declare type __ΩUserConfigFn = any[];
|
|
699
756
|
declare type __ΩAnyOutputUserConfig = any[];
|
|
700
757
|
declare type __ΩAnyUserConfig = any[];
|
|
701
758
|
declare type __ΩParsedUserConfig = any[];
|
|
702
759
|
declare type __ΩResolvedEntryTypeDefinition = any[];
|
|
703
|
-
declare type __Ω
|
|
704
|
-
declare type __Ω
|
|
760
|
+
declare type __ΩResolvedEnvironmentConfig = any[];
|
|
761
|
+
declare type __ΩResolvedResolveConfig = any[];
|
|
705
762
|
declare type __ΩResolvedAssetGlob = any[];
|
|
706
|
-
declare type __Ω
|
|
707
|
-
declare type __Ω
|
|
763
|
+
declare type __ΩResolvedCopyConfig = any[];
|
|
764
|
+
declare type __ΩResolvedOutputConfig = any[];
|
|
708
765
|
declare type __ΩResolvedConfig = any[];
|
|
766
|
+
declare type __ΩInferOverridableConfig = any[];
|
|
767
|
+
declare type __ΩEnvironmentResolvedConfig = any[];
|
|
709
768
|
//#endregion
|
|
710
|
-
export { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig,
|
|
769
|
+
export { 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$1 as 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 };
|
|
711
770
|
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":";;;;;;;;;;;;;;;;;AA4CA;KAAY,eAAA,GAAkB,OAAA,CAAQ,oBAAA,IACpC,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA,KAEJ,aAAA,yBACc,aAAA,GAAgB,aAAA,qBAErC,OAAA,EAAS,QAAA,KAAa,YAAA,CAAa,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA;;;;KAKtD,iBAAA,kBACO,aAAA,GAAgB,aAAA,8BAErB,aAAA,CAAc,QAAA,EAAU,QAAA,GAAW,QAAA,KAAa,MAAA,CAAO,QAAA;;;;KAKzD,kBAAA,kBACO,aAAA,GAAgB,aAAA;EAI7B,MAAA,WAAiB,aAAA,CAAc,QAAA,EAAU,QAAA;EACzC,OAAA,EAAS,QAAA;AAAA;EAGT,MAAA,EAAQ,MAAA,CAAO,QAAA;EACf,OAAA;AAAA;AA1BN;;;AAAA,KAgCY,YAAA,kBAA8B,aAAA,GAAgB,aAAA,aAEtD,aAAA,CAAc,QAAA,UACd,MAAA,CAAO,QAAA,IACP,iBAAA,CAAkB,QAAA,IAClB,kBAAA,CAAmB,QAAA,IACnB,OAAA,CAAQ,YAAA,CAAa,QAAA,KACrB,YAAA,CAAa,QAAA;AAAA,KAEL,aAAA,kBAA+B,aAAA,GAAgB,aAAA,IACzD,WAAA,CAAY,MAAA,CAAO,QAAA;AAAA,KAET,oBAAA,yBACc,aAAA,GAAgB,aAAA,qBAGxC,OAAA,EAAS,QAAA,KACN,YAAA,CAAa,aAAA,CAAc,Q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