@powerlines/core 0.8.4 → 0.8.67
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 +18 -0
- package/dist/constants/api.d.cts +6 -0
- package/dist/constants/api.d.cts.map +1 -0
- package/dist/constants/api.d.mts +6 -0
- package/dist/constants/api.d.mts.map +1 -0
- package/dist/constants/api.mjs +16 -0
- package/dist/constants/api.mjs.map +1 -0
- package/dist/constants/commands.cjs +3 -11
- package/dist/constants/commands.d.cts +1 -1
- package/dist/constants/commands.d.cts.map +1 -1
- package/dist/constants/commands.d.mts +1 -1
- package/dist/constants/commands.d.mts.map +1 -1
- package/dist/constants/commands.mjs +3 -11
- 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 -24
- package/dist/constants/index.d.cts +5 -1
- package/dist/constants/index.d.mts +5 -1
- package/dist/constants/index.mjs +6 -2
- 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 +4 -3
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/constants/plugin.mjs +1 -1
- package/dist/constants/plugin.mjs.map +1 -1
- 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 -6
- package/dist/index.d.cts +23 -11
- package/dist/index.d.mts +23 -11
- package/dist/index.mjs +17 -5
- package/dist/lib/config.cjs +167 -28
- package/dist/lib/config.d.cts +95 -14
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +95 -14
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +160 -28
- 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 +9 -9
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +9 -9
- 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 -6
- 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 +21 -20
- package/dist/lib/unplugin/module-resolution.d.cts +8 -0
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts +8 -0
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +20 -20
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +57 -63
- package/dist/lib/unplugin/plugin.d.cts +11 -5
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +11 -5
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +57 -63
- 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 +16 -8
- package/dist/lib/utilities/format.d.cts.map +1 -1
- package/dist/lib/utilities/format.d.mts.map +1 -1
- package/dist/lib/utilities/format.mjs +15 -8
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/index.cjs +2 -2
- package/dist/lib/utilities/index.mjs +2 -2
- package/dist/lib/utilities/source-file.cjs +1 -1
- package/dist/lib/utilities/source-map.cjs +1 -1
- package/dist/lib/utilities/write-file.cjs +1 -2
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.cts.map +1 -1
- package/dist/lib/utilities/write-file.d.mts +1 -1
- package/dist/lib/utilities/write-file.d.mts.map +1 -1
- package/dist/lib/utilities/write-file.mjs +1 -2
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/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 +5 -9
- package/dist/plugin-base.mjs +5 -9
- 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/combine-plugins.d.cts +7 -8
- package/dist/plugin-utils/combine-plugins.d.cts.map +1 -1
- package/dist/plugin-utils/combine-plugins.d.mts +7 -8
- package/dist/plugin-utils/combine-plugins.d.mts.map +1 -1
- package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +29 -16
- package/dist/plugin-utils/context-helpers.d.cts +10 -2
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +10 -2
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +29 -17
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.cjs +17 -0
- package/dist/plugin-utils/docs-helper.d.cts +11 -0
- package/dist/plugin-utils/docs-helper.d.cts.map +1 -0
- package/dist/plugin-utils/docs-helper.d.mts +11 -0
- package/dist/plugin-utils/docs-helper.d.mts.map +1 -0
- package/dist/plugin-utils/docs-helper.mjs +16 -0
- package/dist/plugin-utils/docs-helper.mjs.map +1 -0
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +101 -0
- package/dist/plugin-utils/filter.d.cts +16 -0
- package/dist/plugin-utils/filter.d.cts.map +1 -0
- package/dist/plugin-utils/filter.d.mts +16 -0
- package/dist/plugin-utils/filter.d.mts.map +1 -0
- package/dist/plugin-utils/filter.mjs +91 -0
- package/dist/plugin-utils/filter.mjs.map +1 -0
- package/dist/plugin-utils/format-package-json.cjs +1 -1
- package/dist/plugin-utils/format-package-json.mjs +1 -1
- package/dist/plugin-utils/format-package-json.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/get-config-path.cjs +34 -32
- package/dist/plugin-utils/get-config-path.d.cts +4 -1
- package/dist/plugin-utils/get-config-path.d.cts.map +1 -1
- package/dist/plugin-utils/get-config-path.d.mts +4 -1
- package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
- package/dist/plugin-utils/get-config-path.mjs +34 -32
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.cjs +25 -10
- package/dist/plugin-utils/helpers.d.cts +32 -25
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +32 -25
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +22 -8
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +48 -4
- package/dist/plugin-utils/index.d.cts +9 -3
- package/dist/plugin-utils/index.d.mts +9 -3
- package/dist/plugin-utils/index.mjs +11 -5
- 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 +605 -0
- package/dist/plugin-utils/logging.d.cts +111 -0
- package/dist/plugin-utils/logging.d.cts.map +1 -0
- package/dist/plugin-utils/logging.d.mts +111 -0
- package/dist/plugin-utils/logging.d.mts.map +1 -0
- package/dist/plugin-utils/logging.mjs +588 -0
- package/dist/plugin-utils/logging.mjs.map +1 -0
- package/dist/plugin-utils/merge.cjs +21 -3
- package/dist/plugin-utils/merge.d.cts +0 -1
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +20 -2
- package/dist/plugin-utils/merge.mjs.map +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 +18 -4
- package/dist/plugin-utils/paths.d.cts +12 -2
- package/dist/plugin-utils/paths.d.cts.map +1 -1
- package/dist/plugin-utils/paths.d.mts +12 -2
- package/dist/plugin-utils/paths.d.mts.map +1 -1
- package/dist/plugin-utils/paths.mjs +18 -4
- 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 -99
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +18 -99
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +241 -143
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +242 -144
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +228 -117
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +231 -120
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.cts +49 -5
- package/dist/types/fs.d.cts.map +1 -1
- package/dist/types/fs.d.mts +50 -6
- package/dist/types/fs.d.mts.map +1 -1
- package/dist/types/hooks.d.cts +26 -38
- package/dist/types/hooks.d.cts.map +1 -1
- package/dist/types/hooks.d.mts +26 -38
- package/dist/types/hooks.d.mts.map +1 -1
- package/dist/types/index.d.cts +9 -0
- package/dist/types/index.d.mts +8 -8
- 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 +27 -28
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +27 -28
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/tsconfig.d.cts +15 -12
- package/dist/types/tsconfig.d.cts.map +1 -1
- package/dist/types/tsconfig.d.mts +16 -13
- package/dist/types/tsconfig.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +10 -23
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +10 -23
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +270 -425
- package/schemas/fs.capnp +42 -0
- package/dist/lib/logger.cjs +0 -59
- package/dist/lib/logger.d.cts +0 -23
- package/dist/lib/logger.d.cts.map +0 -1
- package/dist/lib/logger.d.mts +0 -23
- package/dist/lib/logger.d.mts.map +0 -1
- package/dist/lib/logger.mjs +0 -56
- 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 -13
- package/dist/types/commands.d.cts.map +0 -1
- package/dist/types/commands.d.mts +0 -13
- package/dist/types/commands.d.mts.map +0 -1
package/dist/types/fs.d.cts
CHANGED
|
@@ -290,37 +290,81 @@ interface VirtualFileSystemInterface {
|
|
|
290
290
|
* Checks if a file is virtual in the virtual file system (VFS).
|
|
291
291
|
*
|
|
292
292
|
* @param path - The path or id of the file.
|
|
293
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
294
|
+
* @param options - Additional options for resolving the file path.
|
|
293
295
|
* @returns `true` if the file is virtual, otherwise `false`.
|
|
294
296
|
*/
|
|
295
|
-
isVirtual: (path: string) => boolean;
|
|
297
|
+
isVirtual: (path: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
296
298
|
/**
|
|
297
299
|
* Checks if the given key is a directory.
|
|
298
300
|
*
|
|
299
301
|
* @param key - The key to check.
|
|
302
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
303
|
+
* @param options - Additional options for resolving the file path.
|
|
300
304
|
* @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
|
|
301
305
|
*/
|
|
302
|
-
isDirectory: (key: string) => Promise<boolean>;
|
|
306
|
+
isDirectory: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => Promise<boolean>;
|
|
303
307
|
/**
|
|
304
308
|
* Synchronously checks if the given key is a directory.
|
|
305
309
|
*
|
|
306
310
|
* @param key - The key to check.
|
|
311
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
312
|
+
* @param options - Additional options for resolving the file path.
|
|
307
313
|
* @returns `true` if the key is a directory, otherwise `false`.
|
|
308
314
|
*/
|
|
309
|
-
isDirectorySync: (key: string) => boolean;
|
|
315
|
+
isDirectorySync: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
310
316
|
/**
|
|
311
317
|
* Checks if the given key is a file.
|
|
312
318
|
*
|
|
313
319
|
* @param key - The key to check.
|
|
320
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
321
|
+
* @param options - Additional options for resolving the file path.
|
|
314
322
|
* @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
|
|
315
323
|
*/
|
|
316
|
-
isFile: (key: string) => Promise<boolean>;
|
|
324
|
+
isFile: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => Promise<boolean>;
|
|
317
325
|
/**
|
|
318
326
|
* Synchronously checks if the given key is a file.
|
|
319
327
|
*
|
|
320
328
|
* @param key - The key to check.
|
|
329
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
330
|
+
* @param options - Additional options for resolving the file path.
|
|
321
331
|
* @returns `true` if the key is a file, otherwise `false`.
|
|
322
332
|
*/
|
|
323
|
-
isFileSync: (key: string) => boolean;
|
|
333
|
+
isFileSync: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Checks if a file Id must be resolved by the virtual file system (VFS).
|
|
336
|
+
*
|
|
337
|
+
* @remarks
|
|
338
|
+
* Examples of file Ids that would be considered virtual include:
|
|
339
|
+
* - Ids that start with the framework specific prefix (e.g. `powerlines:`)
|
|
340
|
+
* - Ids that match a configured alias for virtual modules (returned true from {@link VirtualFileSystemInterface.isVirtual})
|
|
341
|
+
*
|
|
342
|
+
* @param path - The path or id of the file.
|
|
343
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
344
|
+
* @param options - Additional options for resolving the file path.
|
|
345
|
+
* @returns `true` if the file is virtual, otherwise `false`.
|
|
346
|
+
*/
|
|
347
|
+
isResolvableId: (path: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Checks if a given module ID is an alias.
|
|
350
|
+
*
|
|
351
|
+
* @remarks
|
|
352
|
+
* This function can be used to determine if a module ID matches any configured aliases.
|
|
353
|
+
*
|
|
354
|
+
* @param id - The module ID to check.
|
|
355
|
+
* @returns A boolean indicating whether the module ID is an alias.
|
|
356
|
+
*/
|
|
357
|
+
isAlias: (id: string) => boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Checks if a given module ID is a tsconfig path.
|
|
360
|
+
*
|
|
361
|
+
* @remarks
|
|
362
|
+
* This function can be used to determine if a module ID matches any configured tsconfig paths.
|
|
363
|
+
*
|
|
364
|
+
* @param id - The module ID to check.
|
|
365
|
+
* @returns A boolean indicating whether the module ID is a tsconfig path.
|
|
366
|
+
*/
|
|
367
|
+
isTsconfigPath: (id: string) => boolean;
|
|
324
368
|
/**
|
|
325
369
|
* Gets the metadata of a file in the virtual file system (VFS).
|
|
326
370
|
*
|
package/dist/types/fs.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.cts","names":[],"sources":["../../src/types/fs.ts"],"mappings":";;;;;KAsBY,oBAAA;AAAA,KAEA,aAAA;AAFZ;;;AAAA,UAOiB,cAAA;EAPe;AAEhC;;EASE,IAAA;EATuB;;AAKzB;;;;EAYE,MAAA,GAAS,aAAA;EAwBa;;;;;;EAhBtB,MAAA,GAAS,GAAA,aAAgB,OAAA;EA0HA;;;;;;EAlHzB,UAAA,GAAa,GAAA;EARb;;;;;;EAgBA,GAAA,GAAM,GAAA,aAAgB,OAAA;EAAA;;;;;;EAQtB,OAAA,GAAU,GAAA;EAgBV;;;;;;EARA,GAAA,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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";
|
|
@@ -290,37 +290,81 @@ interface VirtualFileSystemInterface {
|
|
|
290
290
|
* Checks if a file is virtual in the virtual file system (VFS).
|
|
291
291
|
*
|
|
292
292
|
* @param path - The path or id of the file.
|
|
293
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
294
|
+
* @param options - Additional options for resolving the file path.
|
|
293
295
|
* @returns `true` if the file is virtual, otherwise `false`.
|
|
294
296
|
*/
|
|
295
|
-
isVirtual: (path: string) => boolean;
|
|
297
|
+
isVirtual: (path: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
296
298
|
/**
|
|
297
299
|
* Checks if the given key is a directory.
|
|
298
300
|
*
|
|
299
301
|
* @param key - The key to check.
|
|
302
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
303
|
+
* @param options - Additional options for resolving the file path.
|
|
300
304
|
* @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
|
|
301
305
|
*/
|
|
302
|
-
isDirectory: (key: string) => Promise<boolean>;
|
|
306
|
+
isDirectory: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => Promise<boolean>;
|
|
303
307
|
/**
|
|
304
308
|
* Synchronously checks if the given key is a directory.
|
|
305
309
|
*
|
|
306
310
|
* @param key - The key to check.
|
|
311
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
312
|
+
* @param options - Additional options for resolving the file path.
|
|
307
313
|
* @returns `true` if the key is a directory, otherwise `false`.
|
|
308
314
|
*/
|
|
309
|
-
isDirectorySync: (key: string) => boolean;
|
|
315
|
+
isDirectorySync: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
310
316
|
/**
|
|
311
317
|
* Checks if the given key is a file.
|
|
312
318
|
*
|
|
313
319
|
* @param key - The key to check.
|
|
320
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
321
|
+
* @param options - Additional options for resolving the file path.
|
|
314
322
|
* @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
|
|
315
323
|
*/
|
|
316
|
-
isFile: (key: string) => Promise<boolean>;
|
|
324
|
+
isFile: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => Promise<boolean>;
|
|
317
325
|
/**
|
|
318
326
|
* Synchronously checks if the given key is a file.
|
|
319
327
|
*
|
|
320
328
|
* @param key - The key to check.
|
|
329
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
330
|
+
* @param options - Additional options for resolving the file path.
|
|
321
331
|
* @returns `true` if the key is a file, otherwise `false`.
|
|
322
332
|
*/
|
|
323
|
-
isFileSync: (key: string) => boolean;
|
|
333
|
+
isFileSync: (key: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Checks if a file Id must be resolved by the virtual file system (VFS).
|
|
336
|
+
*
|
|
337
|
+
* @remarks
|
|
338
|
+
* Examples of file Ids that would be considered virtual include:
|
|
339
|
+
* - Ids that start with the framework specific prefix (e.g. `powerlines:`)
|
|
340
|
+
* - Ids that match a configured alias for virtual modules (returned true from {@link VirtualFileSystemInterface.isVirtual})
|
|
341
|
+
*
|
|
342
|
+
* @param path - The path or id of the file.
|
|
343
|
+
* @param importer - An optional path to the importer module, used for resolving the file path.
|
|
344
|
+
* @param options - Additional options for resolving the file path.
|
|
345
|
+
* @returns `true` if the file is virtual, otherwise `false`.
|
|
346
|
+
*/
|
|
347
|
+
isResolvableId: (path: string, importer?: string | undefined, options?: ResolveOptions$1) => boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Checks if a given module ID is an alias.
|
|
350
|
+
*
|
|
351
|
+
* @remarks
|
|
352
|
+
* This function can be used to determine if a module ID matches any configured aliases.
|
|
353
|
+
*
|
|
354
|
+
* @param id - The module ID to check.
|
|
355
|
+
* @returns A boolean indicating whether the module ID is an alias.
|
|
356
|
+
*/
|
|
357
|
+
isAlias: (id: string) => boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Checks if a given module ID is a tsconfig path.
|
|
360
|
+
*
|
|
361
|
+
* @remarks
|
|
362
|
+
* This function can be used to determine if a module ID matches any configured tsconfig paths.
|
|
363
|
+
*
|
|
364
|
+
* @param id - The module ID to check.
|
|
365
|
+
* @returns A boolean indicating whether the module ID is a tsconfig path.
|
|
366
|
+
*/
|
|
367
|
+
isTsconfigPath: (id: string) => boolean;
|
|
324
368
|
/**
|
|
325
369
|
* Gets the metadata of a file in the virtual file system (VFS).
|
|
326
370
|
*
|
package/dist/types/fs.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.mts","names":[],"sources":["../../src/types/fs.ts"],"mappings":";;;;;KAsBY,oBAAA;AAAA,KAEA,aAAA;AAFZ;;;AAAA,UAOiB,cAAA;EAPe;AAEhC;;EASE,IAAA;EATuB;;AAKzB;;;;EAYE,MAAA,GAAS,aAAA;EAwBa;;;;;;EAhBtB,MAAA,GAAS,GAAA,aAAgB,OAAA;EA0HA;;;;;;EAlHzB,UAAA,GAAa,GAAA;EARb;;;;;;EAgBA,GAAA,GAAM,GAAA,aAAgB,OAAA;EAAA;;;;;;EAQtB,OAAA,GAAU,GAAA;EAgBV;;;;;;EARA,GAAA,GAAM,GAAA,UAAa,KAAA,aAAkB,OAAA;EAsBxB;;;;;;EAdb,OAAA,GAAU,GAAA,UAAa,KAAA;EAmCf;;;;;EA5BR,MAAA,GAAS,GAAA,aAAgB,OAAA;EA2CA;;;;;EApCzB,UAAA,GAAa,GAAA;EA4Db;;;;;EArDA,KAAA,GAAQ,OAA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;;;EAQ1B,IAAA,GAAO,IAAA,aAAiB,OAAA;;;;;;EAOxB,QAAA,GAAW,IAAA;;;;;;;;;EAUX,KAAA,GAAQ,IAAA,UAAc,IAAA,UAAc,OAAA,GAAU,YAAA,KAAiB,OAAA;;;;;;;;EAS/D,SAAA,GAAY,IAAA,UAAc,IAAA,UAAc,OAAA,GAAU,YAAA;;;;;;EAOlD,KAAA,GAAQ,OAAA,aAAoB,OAAA;;;;;;EAO5B,SAAA,GAAY,OAAA;;;;;;;EAQZ,IAAA,GAAO,OAAA,UAAiB,QAAA,aAAqB,OAAA;;;;;;;EAQ7C,QAAA,GAAW,OAAA,UAAiB,QAAA;;;;;;;EAQ5B,IAAA,GACE,OAAA,WAAkB,GAAA,GAAM,IAAA,CAAK,SAAA,aAC7B,QAAA,WAAmB,GAAA,KAChB,OAAA;;;;;;;EAQL,QAAA,GACE,OAAA,WAAkB,GAAA,GAAM,IAAA,CAAK,SAAA,aAC7B,QAAA,WAAmB,GAAA;;;;;;;EASrB,IAAA,GACE,QAAA,WAEI,IAAA,CAAK,SAAA,wBACK,IAAA,CAAK,SAAA,mBAChB,OAAA;;;;;;;EAQL,QAAA,GACE,QAAA,WAEI,IAAA,CAAK,SAAA,wBACK,IAAA,CAAK,SAAA;;;;;;;;;;;;;;;;;EAmBrB,OAAA,GACE,EAAA,UACA,QAAA,WACA,OAAA,GAAU,gBAAA,KACP,OAAA;;;;;;;;;;;;;;;;;EAkBL,WAAA,GACE,EAAA,UACA,QAAA,WACA,OAAA,GAAU,gBAAA;;;;;;;;;;EAYZ,YAAA,GAAe,EAAA;;;;EAKf,OAAA,QAAe,OAAA;AAAA;AAAA"}
|
package/dist/types/hooks.d.cts
CHANGED
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import { UnpluginBuilderVariant } from "./unplugin.cjs";
|
|
2
|
-
import { Plugin,
|
|
3
|
-
import { PluginContext, SelectHooksOptions
|
|
4
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
5
|
-
import { UnpluginOptions } from "unplugin";
|
|
1
|
+
import { UnpluginBuilderVariant, UnpluginHookFunctions } from "./unplugin.cjs";
|
|
2
|
+
import { BasePlugin, Plugin, PluginHook, PluginHooks } from "./plugin.cjs";
|
|
3
|
+
import { PluginContext, SelectHooksOptions } from "./context.cjs";
|
|
4
|
+
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
5
|
+
import { StringOrRegExp, UnpluginOptions } from "unplugin";
|
|
6
6
|
|
|
7
7
|
//#region src/types/hooks.d.ts
|
|
8
8
|
type HookListOrders = "preOrdered" | "preEnforced" | "normal" | "postEnforced" | "postOrdered";
|
|
9
|
-
|
|
10
|
-
handler: infer THandler;
|
|
11
|
-
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
12
|
-
handler: infer THandlerFunction;
|
|
13
|
-
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
14
|
-
interface PluginHooksListItem<TContext extends PluginContext = PluginContext, TFields extends PluginHookFields<TContext> = PluginHookFields<TContext>> {
|
|
9
|
+
interface HooksListItem<TContext extends PluginContext = PluginContext, TFields extends string = string> {
|
|
15
10
|
plugin: Plugin<TContext>;
|
|
16
|
-
handler:
|
|
11
|
+
handler: InferHookFunction<TContext, TFields>;
|
|
17
12
|
}
|
|
18
|
-
type
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
type PluginFilter = (input: string) => boolean;
|
|
14
|
+
type TransformHookFilter = (id: string, code: string) => boolean;
|
|
15
|
+
interface NormalizedStringFilter {
|
|
16
|
+
include?: StringOrRegExp[];
|
|
17
|
+
exclude?: StringOrRegExp[];
|
|
22
18
|
}
|
|
23
|
-
type
|
|
24
|
-
type
|
|
25
|
-
type
|
|
26
|
-
type
|
|
27
|
-
type HooksList<TContext extends PluginContext = PluginContext> = { [TField in HookFields<TContext>]?: TField extends PluginHookFields<TContext> ? PluginHooksList<TContext, TField> : TField extends UnpluginBuilderVariant ? UnpluginHookVariant<TContext>[TField] : never };
|
|
28
|
-
type InferHooksListItem<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions>[TUnpluginBuilderVariant] ? UnpluginHooksListItem<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHooksListItem<TContext, TKey> : never;
|
|
29
|
-
type InferHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions>[TUnpluginBuilderVariant] ? UnpluginHookFunctions<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHookFunctions<TContext>[TKey] : never;
|
|
19
|
+
type HooksList<TContext extends PluginContext = PluginContext, TFields extends string = string> = { [TKey in HookListOrders]?: HooksListItem<TContext, TFields>[] | undefined };
|
|
20
|
+
type InferPluginFunction<TObject, TKey extends keyof Required<TObject>> = InferPluginFunctionKey<Required<TObject>[TKey]>;
|
|
21
|
+
type InferPluginFunctionKey<TValue> = TValue extends AnyFunction ? TValue : TValue extends PluginHook<infer THookFunction, any> ? THookFunction : never;
|
|
22
|
+
type InferHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TVariant}:${infer TField}` ? TVariant extends keyof Required<BasePlugin<TContext>> ? TField extends keyof Required<BasePlugin<TContext>>[TVariant] ? InferPluginFunction<Required<BasePlugin<TContext>>[TVariant], TField> : TVariant extends keyof Required<PluginHooks<TContext>> ? TField extends keyof Required<PluginHooks<TContext>>[TVariant] ? InferPluginFunction<Required<PluginHooks<TContext>>[TVariant], TField> : never : never : TVariant extends UnpluginBuilderVariant ? TField extends keyof Required<UnpluginOptions>[TVariant] ? UnpluginHookFunctions<TContext, TVariant, TField> : never : never : TKey extends keyof Required<BasePlugin<TContext>> ? InferPluginFunction<Required<BasePlugin<TContext>>, TKey> : TKey extends keyof Required<PluginHooks<TContext>> ? InferPluginFunction<Required<PluginHooks<TContext>>, TKey> : never;
|
|
30
23
|
type InferHookReturnType<TContext extends PluginContext, TKey extends string> = ReturnType<InferHookFunction<TContext, TKey>>;
|
|
31
24
|
type InferHookParameters<TContext extends PluginContext, TKey extends string> = Parameters<InferHookFunction<TContext, TKey>>;
|
|
32
25
|
type InferHookThisType<TContext extends PluginContext, TKey extends string> = ThisParameterType<InferHookFunction<TContext, TKey>>;
|
|
33
|
-
type CallHookOptions = SelectHooksOptions & (({
|
|
26
|
+
type CallHookOptions<TResult = any> = SelectHooksOptions & (({
|
|
34
27
|
/**
|
|
35
28
|
* Whether to call the hooks sequentially or in parallel.
|
|
36
29
|
*
|
|
@@ -54,7 +47,7 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
54
47
|
/**
|
|
55
48
|
* An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
|
|
56
49
|
*/
|
|
57
|
-
asNextParam?: false | ((previousResult:
|
|
50
|
+
asNextParam?: false | ((previousResult: TResult) => MaybePromise<TResult>);
|
|
58
51
|
} & ({
|
|
59
52
|
/**
|
|
60
53
|
* How to handle multiple return values from hooks.
|
|
@@ -69,16 +62,16 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
69
62
|
*/
|
|
70
63
|
result?: "merge";
|
|
71
64
|
/**
|
|
72
|
-
* A custom function to merge
|
|
65
|
+
* A custom function to merge two sets of return values from hooks.
|
|
73
66
|
*
|
|
74
67
|
* @remarks
|
|
75
68
|
* If not provided, the {@link mergeResults} function will be used by default, which merges string results by concatenation and object results by deep merging.
|
|
76
69
|
*
|
|
77
70
|
* @param currentResult - The current hook result to merge with the previous results.
|
|
78
|
-
* @param
|
|
71
|
+
* @param previousResult - The previous hook result to merge with the current result.
|
|
79
72
|
* @returns The merged result.
|
|
80
73
|
*/
|
|
81
|
-
merge?:
|
|
74
|
+
merge?: (currentResult: TResult, previousResult: TResult) => MaybePromise<TResult>;
|
|
82
75
|
} | {
|
|
83
76
|
/**
|
|
84
77
|
* How to handle multiple return values from hooks.
|
|
@@ -99,21 +92,16 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
99
92
|
sequential: false;
|
|
100
93
|
});
|
|
101
94
|
declare type __ΩHookListOrders = any[];
|
|
102
|
-
declare type __Ω
|
|
103
|
-
declare type __Ω
|
|
104
|
-
declare type __Ω
|
|
105
|
-
declare type __Ω
|
|
106
|
-
declare type __ΩUnpluginHookList = any[];
|
|
107
|
-
declare type __ΩUnpluginHookVariantField = any[];
|
|
108
|
-
declare type __ΩUnpluginHookVariant = any[];
|
|
109
|
-
declare type __ΩHookFields = any[];
|
|
95
|
+
declare type __ΩHooksListItem = any[];
|
|
96
|
+
declare type __ΩPluginFilter = any[];
|
|
97
|
+
declare type __ΩTransformHookFilter = any[];
|
|
98
|
+
declare type __ΩNormalizedStringFilter = any[];
|
|
110
99
|
declare type __ΩHooksList = any[];
|
|
111
|
-
declare type __ΩInferHooksListItem = any[];
|
|
112
100
|
declare type __ΩInferHookFunction = any[];
|
|
113
101
|
declare type __ΩInferHookReturnType = any[];
|
|
114
102
|
declare type __ΩInferHookParameters = any[];
|
|
115
103
|
declare type __ΩInferHookThisType = any[];
|
|
116
104
|
declare type __ΩCallHookOptions = any[];
|
|
117
105
|
//#endregion
|
|
118
|
-
export { CallHookOptions,
|
|
106
|
+
export { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩNormalizedStringFilter, __ΩPluginFilter, __ΩTransformHookFilter };
|
|
119
107
|
//# sourceMappingURL=hooks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.cts","names":[],"sources":["../../src/types/hooks.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"hooks.d.cts","names":[],"sources":["../../src/types/hooks.ts"],"mappings":";;;;;;;KAwBY,cAAA;AAAA,UAOK,aAAA,kBACE,aAAA,GAAgB,aAAA;EAGjC,MAAA,EAAQ,MAAA,CAAO,QAAA;EACf,OAAA,EAAS,iBAAA,CAAkB,QAAA,EAAU,OAAA;AAAA;AAAA,KAG3B,YAAA,IAAgB,KAAA;AAAA,KAChB,mBAAA,IAAuB,EAAA,UAAY,IAAA;AAAA,UAE9B,sBAAA;EACf,OAAA,GAAU,cAAA;EACV,OAAA,GAAU,cAAA;AAAA;AAAA,KAGA,SAAA,kBACO,aAAA,GAAgB,aAAA,gDAGxB,cAAA,IAAkB,aAAA,CAAc,QAAA,EAAU,OAAA;AAAA,KAGhD,mBAAA,6BAEgB,QAAA,CAAS,OAAA,KAC1B,sBAAA,CAAuB,QAAA,CAAS,OAAA,EAAS,IAAA;AAAA,KAExC,sBAAA,WAAiC,MAAA,SAAe,WAAA,GACjD,MAAA,GACA,MAAA,SAAe,UAAA,6BACb,aAAA;AAAA,KAGM,iBAAA,kBACO,aAAA,yBAEf,IAAA,+CACA,QAAA,eAAuB,QAAA,CAAS,UAAA,CAAW,QAAA,KACzC,MAAA,eAAqB,QAAA,CAAS,UAAA,CAAW,QAAA,GAAW,QAAA,IAClD,mBAAA,CAAoB,QAAA,CAAS,UAAA,CAAW,QAAA,G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UAAA;AAAA;AAAA"}
|
package/dist/types/hooks.d.mts
CHANGED
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import { UnpluginBuilderVariant } from "./unplugin.mjs";
|
|
2
|
-
import { Plugin,
|
|
3
|
-
import { PluginContext, SelectHooksOptions
|
|
4
|
-
import { UnpluginOptions } from "unplugin";
|
|
5
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
1
|
+
import { UnpluginBuilderVariant, UnpluginHookFunctions } from "./unplugin.mjs";
|
|
2
|
+
import { BasePlugin, Plugin, PluginHook, PluginHooks } from "./plugin.mjs";
|
|
3
|
+
import { PluginContext, SelectHooksOptions } from "./context.mjs";
|
|
4
|
+
import { StringOrRegExp, UnpluginOptions } from "unplugin";
|
|
5
|
+
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
6
6
|
|
|
7
7
|
//#region src/types/hooks.d.ts
|
|
8
8
|
type HookListOrders = "preOrdered" | "preEnforced" | "normal" | "postEnforced" | "postOrdered";
|
|
9
|
-
|
|
10
|
-
handler: infer THandler;
|
|
11
|
-
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
12
|
-
handler: infer THandlerFunction;
|
|
13
|
-
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
14
|
-
interface PluginHooksListItem<TContext extends PluginContext = PluginContext, TFields extends PluginHookFields<TContext> = PluginHookFields<TContext>> {
|
|
9
|
+
interface HooksListItem<TContext extends PluginContext = PluginContext, TFields extends string = string> {
|
|
15
10
|
plugin: Plugin<TContext>;
|
|
16
|
-
handler:
|
|
11
|
+
handler: InferHookFunction<TContext, TFields>;
|
|
17
12
|
}
|
|
18
|
-
type
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
type PluginFilter = (input: string) => boolean;
|
|
14
|
+
type TransformHookFilter = (id: string, code: string) => boolean;
|
|
15
|
+
interface NormalizedStringFilter {
|
|
16
|
+
include?: StringOrRegExp[];
|
|
17
|
+
exclude?: StringOrRegExp[];
|
|
22
18
|
}
|
|
23
|
-
type
|
|
24
|
-
type
|
|
25
|
-
type
|
|
26
|
-
type
|
|
27
|
-
type HooksList<TContext extends PluginContext = PluginContext> = { [TField in HookFields<TContext>]?: TField extends PluginHookFields<TContext> ? PluginHooksList<TContext, TField> : TField extends UnpluginBuilderVariant ? UnpluginHookVariant<TContext>[TField] : never };
|
|
28
|
-
type InferHooksListItem<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions>[TUnpluginBuilderVariant] ? UnpluginHooksListItem<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHooksListItem<TContext, TKey> : never;
|
|
29
|
-
type InferHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions>[TUnpluginBuilderVariant] ? UnpluginHookFunctions<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHookFunctions<TContext>[TKey] : never;
|
|
19
|
+
type HooksList<TContext extends PluginContext = PluginContext, TFields extends string = string> = { [TKey in HookListOrders]?: HooksListItem<TContext, TFields>[] | undefined };
|
|
20
|
+
type InferPluginFunction<TObject, TKey extends keyof Required<TObject>> = InferPluginFunctionKey<Required<TObject>[TKey]>;
|
|
21
|
+
type InferPluginFunctionKey<TValue> = TValue extends AnyFunction ? TValue : TValue extends PluginHook<infer THookFunction, any> ? THookFunction : never;
|
|
22
|
+
type InferHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TVariant}:${infer TField}` ? TVariant extends keyof Required<BasePlugin<TContext>> ? TField extends keyof Required<BasePlugin<TContext>>[TVariant] ? InferPluginFunction<Required<BasePlugin<TContext>>[TVariant], TField> : TVariant extends keyof Required<PluginHooks<TContext>> ? TField extends keyof Required<PluginHooks<TContext>>[TVariant] ? InferPluginFunction<Required<PluginHooks<TContext>>[TVariant], TField> : never : never : TVariant extends UnpluginBuilderVariant ? TField extends keyof Required<UnpluginOptions>[TVariant] ? UnpluginHookFunctions<TContext, TVariant, TField> : never : never : TKey extends keyof Required<BasePlugin<TContext>> ? InferPluginFunction<Required<BasePlugin<TContext>>, TKey> : TKey extends keyof Required<PluginHooks<TContext>> ? InferPluginFunction<Required<PluginHooks<TContext>>, TKey> : never;
|
|
30
23
|
type InferHookReturnType<TContext extends PluginContext, TKey extends string> = ReturnType<InferHookFunction<TContext, TKey>>;
|
|
31
24
|
type InferHookParameters<TContext extends PluginContext, TKey extends string> = Parameters<InferHookFunction<TContext, TKey>>;
|
|
32
25
|
type InferHookThisType<TContext extends PluginContext, TKey extends string> = ThisParameterType<InferHookFunction<TContext, TKey>>;
|
|
33
|
-
type CallHookOptions = SelectHooksOptions & (({
|
|
26
|
+
type CallHookOptions<TResult = any> = SelectHooksOptions & (({
|
|
34
27
|
/**
|
|
35
28
|
* Whether to call the hooks sequentially or in parallel.
|
|
36
29
|
*
|
|
@@ -54,7 +47,7 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
54
47
|
/**
|
|
55
48
|
* An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
|
|
56
49
|
*/
|
|
57
|
-
asNextParam?: false | ((previousResult:
|
|
50
|
+
asNextParam?: false | ((previousResult: TResult) => MaybePromise<TResult>);
|
|
58
51
|
} & ({
|
|
59
52
|
/**
|
|
60
53
|
* How to handle multiple return values from hooks.
|
|
@@ -69,16 +62,16 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
69
62
|
*/
|
|
70
63
|
result?: "merge";
|
|
71
64
|
/**
|
|
72
|
-
* A custom function to merge
|
|
65
|
+
* A custom function to merge two sets of return values from hooks.
|
|
73
66
|
*
|
|
74
67
|
* @remarks
|
|
75
68
|
* If not provided, the {@link mergeResults} function will be used by default, which merges string results by concatenation and object results by deep merging.
|
|
76
69
|
*
|
|
77
70
|
* @param currentResult - The current hook result to merge with the previous results.
|
|
78
|
-
* @param
|
|
71
|
+
* @param previousResult - The previous hook result to merge with the current result.
|
|
79
72
|
* @returns The merged result.
|
|
80
73
|
*/
|
|
81
|
-
merge?:
|
|
74
|
+
merge?: (currentResult: TResult, previousResult: TResult) => MaybePromise<TResult>;
|
|
82
75
|
} | {
|
|
83
76
|
/**
|
|
84
77
|
* How to handle multiple return values from hooks.
|
|
@@ -99,21 +92,16 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
99
92
|
sequential: false;
|
|
100
93
|
});
|
|
101
94
|
declare type __ΩHookListOrders = any[];
|
|
102
|
-
declare type __Ω
|
|
103
|
-
declare type __Ω
|
|
104
|
-
declare type __Ω
|
|
105
|
-
declare type __Ω
|
|
106
|
-
declare type __ΩUnpluginHookList = any[];
|
|
107
|
-
declare type __ΩUnpluginHookVariantField = any[];
|
|
108
|
-
declare type __ΩUnpluginHookVariant = any[];
|
|
109
|
-
declare type __ΩHookFields = any[];
|
|
95
|
+
declare type __ΩHooksListItem = any[];
|
|
96
|
+
declare type __ΩPluginFilter = any[];
|
|
97
|
+
declare type __ΩTransformHookFilter = any[];
|
|
98
|
+
declare type __ΩNormalizedStringFilter = any[];
|
|
110
99
|
declare type __ΩHooksList = any[];
|
|
111
|
-
declare type __ΩInferHooksListItem = any[];
|
|
112
100
|
declare type __ΩInferHookFunction = any[];
|
|
113
101
|
declare type __ΩInferHookReturnType = any[];
|
|
114
102
|
declare type __ΩInferHookParameters = any[];
|
|
115
103
|
declare type __ΩInferHookThisType = any[];
|
|
116
104
|
declare type __ΩCallHookOptions = any[];
|
|
117
105
|
//#endregion
|
|
118
|
-
export { CallHookOptions,
|
|
106
|
+
export { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter, __ΩCallHookOptions, __ΩHookListOrders, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩNormalizedStringFilter, __ΩPluginFilter, __ΩTransformHookFilter };
|
|
119
107
|
//# sourceMappingURL=hooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.mts","names":[],"sources":["../../src/types/hooks.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"hooks.d.mts","names":[],"sources":["../../src/types/hooks.ts"],"mappings":";;;;;;;KAwBY,cAAA;AAAA,UAOK,aAAA,kBACE,aAAA,GAAgB,aAAA;EAGjC,MAAA,EAAQ,MAAA,CAAO,QAAA;EACf,OAAA,EAAS,iBAAA,CAAkB,QAAA,EAAU,OAAA;AAAA;AAAA,KAG3B,YAAA,IAAgB,KAAA;AAAA,KAChB,mBAAA,IAAuB,EAAA,UAAY,IAAA;AAAA,UAE9B,sBAAA;EACf,OAAA,GAAU,cAAA;EACV,OAAA,GAAU,cAAA;AAAA;AAAA,KAGA,SAAA,kBACO,aAAA,GAAgB,aAAA,gDAGxB,cAAA,IAAkB,aAAA,CAAc,QAAA,EAAU,OAAA;AAAA,KAGhD,mBAAA,6BAEgB,QAAA,CAAS,OAAA,KAC1B,sBAAA,CAAuB,QAAA,CAAS,OAAA,EAAS,IAAA;AAAA,KAExC,sBAAA,WAAiC,MAAA,SAAe,WAAA,GACjD,MAAA,GACA,MAAA,SAAe,UA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AAA;AAAA;EA7FzD;;;;;;AAIF;;;;;EAuGgB,MAAA;EAnG2B;;;;;;;;;;EA+G3B,KAAA,IACE,aAAA,EAAe,OAAA,EACf,cAAA,EAAgB,OAAA,KACb,YAAA,CAAa,OAAA;AAAA;EAlHS;;;;AACzC;;;;;;;EA+Hc,MAAA;AAAA;EA1HU;;;EAkIlB,UAAA;AAAA;AAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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, 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";
|
|
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";
|
|
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";
|
|
7
|
+
import { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩLevel, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./tsconfig.cjs";
|
|
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,9 +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 { CommandType, Commands, __ΩCommandType, __ΩCommands } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode,
|
|
8
|
-
import {
|
|
9
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config,
|
|
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";
|
|
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";
|
|
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";
|
|
7
|
+
import { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩLevel, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./tsconfig.mjs";
|
|
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";
|