@powerlines/core 0.47.4 → 0.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/api.cjs +5 -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 +1 -1
- 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/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.mjs.map +1 -1
- package/dist/constants/hooks.mjs.map +1 -1
- package/dist/constants/index.cjs +16 -4
- package/dist/constants/index.d.cts +4 -2
- package/dist/constants/index.d.mts +4 -2
- package/dist/constants/index.mjs +6 -4
- package/dist/constants/log-level.cjs +10 -10
- package/dist/constants/log-level.d.cts +10 -10
- package/dist/constants/log-level.d.mts +10 -10
- package/dist/constants/log-level.mjs +10 -10
- package/dist/constants/log-level.mjs.map +1 -1
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/constants/plugin.mjs.map +1 -1
- package/dist/context/base-context.cjs +121 -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 +119 -0
- package/dist/context/base-context.mjs.map +1 -0
- package/dist/context/context.cjs +935 -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 +933 -0
- package/dist/context/context.mjs.map +1 -0
- package/dist/context/environment-context.cjs +218 -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 +236 -0
- package/dist/context/execution-context.d.cts +106 -0
- package/dist/context/execution-context.d.cts.map +1 -0
- package/dist/context/execution-context.d.mts +106 -0
- package/dist/context/execution-context.d.mts.map +1 -0
- package/dist/context/execution-context.mjs +234 -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 +82 -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 -3
- package/dist/index.d.cts +27 -16
- package/dist/index.d.mts +27 -16
- package/dist/index.mjs +17 -4
- package/dist/lib/config.cjs +160 -21
- package/dist/lib/config.d.cts +116 -12
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +116 -12
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +154 -22
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/context-helpers.cjs +42 -0
- package/dist/lib/context-helpers.d.cts +16 -0
- package/dist/lib/context-helpers.d.cts.map +1 -0
- package/dist/lib/context-helpers.d.mts +16 -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 -6
- 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 +370 -0
- package/dist/lib/generate-types.d.cts +66 -0
- package/dist/lib/generate-types.d.cts.map +1 -0
- package/dist/lib/generate-types.d.mts +66 -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 -3
- package/dist/lib/index.d.cts +18 -5
- package/dist/lib/index.d.mts +18 -5
- package/dist/lib/index.mjs +19 -4
- package/dist/lib/install-dependencies.cjs +24 -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 +56 -0
- package/dist/lib/meta.d.cts +33 -0
- package/dist/lib/meta.d.cts.map +1 -0
- package/dist/lib/meta.d.mts +33 -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 +39 -0
- package/dist/lib/plugins.d.cts.map +1 -0
- package/dist/lib/plugins.d.mts +39 -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 +20 -0
- package/dist/lib/resolver.d.cts.map +1 -0
- package/dist/lib/resolver.d.mts +20 -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 +259 -0
- package/dist/lib/streaming-channel.d.cts +126 -0
- package/dist/lib/streaming-channel.d.cts.map +1 -0
- package/dist/lib/streaming-channel.d.mts +126 -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 +0 -1
- package/dist/lib/unplugin/helpers.d.cts.map +1 -1
- package/dist/lib/unplugin/helpers.d.mts.map +1 -1
- package/dist/lib/unplugin/helpers.mjs.map +1 -1
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.mts +3 -3
- package/dist/lib/unplugin/module-resolution.cjs +8 -9
- package/dist/lib/unplugin/module-resolution.d.cts +3 -4
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts +3 -4
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +8 -9
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +54 -61
- package/dist/lib/unplugin/plugin.d.cts +5 -7
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +5 -7
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +54 -60
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/file-header.cjs +2 -3
- package/dist/lib/utilities/file-header.d.cts +1 -2
- package/dist/lib/utilities/file-header.d.cts.map +1 -1
- package/dist/lib/utilities/file-header.d.mts +1 -2
- package/dist/lib/utilities/file-header.d.mts.map +1 -1
- 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.d.cts.map +1 -1
- package/dist/lib/utilities/format.d.mts.map +1 -1
- package/dist/lib/utilities/format.mjs +1 -1
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/index.cjs +1 -1
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.mts +2 -2
- package/dist/lib/utilities/index.mjs +1 -1
- package/dist/lib/utilities/source-file.d.cts.map +1 -1
- package/dist/lib/utilities/source-file.d.mts.map +1 -1
- package/dist/lib/utilities/source-file.mjs.map +1 -1
- package/dist/lib/utilities/source-map.d.cts.map +1 -1
- package/dist/lib/utilities/source-map.d.mts.map +1 -1
- package/dist/lib/utilities/source-map.mjs.map +1 -1
- package/dist/lib/utilities/write-file.cjs +0 -1
- 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 -2
- package/dist/plugin-base.d.cts +1 -5
- package/dist/plugin-base.d.cts.map +1 -1
- package/dist/plugin-base.d.mts +1 -5
- package/dist/plugin-base.d.mts.map +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 -3
- package/dist/plugin-utils/build-helpers.d.cts +3 -4
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts +3 -4
- 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/combine-plugins.cjs +0 -1
- package/dist/plugin-utils/combine-plugins.d.cts +7 -9
- package/dist/plugin-utils/combine-plugins.d.cts.map +1 -1
- package/dist/plugin-utils/combine-plugins.d.mts +7 -9
- 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 +0 -1
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.cjs +0 -1
- package/dist/plugin-utils/docs-helper.d.cts.map +1 -1
- package/dist/plugin-utils/docs-helper.d.mts.map +1 -1
- package/dist/plugin-utils/docs-helper.mjs.map +1 -1
- package/dist/plugin-utils/enable-plugin.cjs +33 -0
- package/dist/plugin-utils/enable-plugin.d.cts +29 -0
- package/dist/plugin-utils/enable-plugin.d.cts.map +1 -0
- package/dist/plugin-utils/enable-plugin.d.mts +29 -0
- package/dist/plugin-utils/enable-plugin.d.mts.map +1 -0
- package/dist/plugin-utils/enable-plugin.mjs +33 -0
- package/dist/plugin-utils/enable-plugin.mjs.map +1 -0
- package/dist/plugin-utils/extend.cjs +0 -1
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +2 -2
- package/dist/plugin-utils/filter.d.cts.map +1 -1
- package/dist/plugin-utils/filter.d.mts.map +1 -1
- package/dist/plugin-utils/filter.mjs +2 -2
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.cjs +0 -1
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/format.cjs +14 -7
- package/dist/plugin-utils/format.d.cts.map +1 -1
- package/dist/plugin-utils/format.d.mts.map +1 -1
- package/dist/plugin-utils/format.mjs +14 -6
- package/dist/plugin-utils/format.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.cjs +0 -1
- package/dist/plugin-utils/get-config-path.d.cts.map +1 -1
- package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.cjs +1 -2
- package/dist/plugin-utils/helpers.d.cts +18 -23
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +18 -23
- 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 +7 -2
- package/dist/plugin-utils/index.d.cts +8 -6
- package/dist/plugin-utils/index.d.mts +8 -6
- package/dist/plugin-utils/index.mjs +5 -3
- package/dist/plugin-utils/install.cjs +46 -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 +50 -47
- package/dist/plugin-utils/logging.d.cts +3 -2
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +3 -2
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +50 -47
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -2
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts +1 -2
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +1 -1
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/plugin-utils/modules.cjs +1 -1
- package/dist/plugin-utils/modules.d.cts.map +1 -1
- package/dist/plugin-utils/modules.d.mts.map +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 +1 -2
- package/dist/plugin-utils/paths.d.cts.map +1 -1
- package/dist/plugin-utils/paths.d.mts.map +1 -1
- package/dist/plugin-utils/paths.mjs +1 -1
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/virtual.d.cts +1 -2
- package/dist/plugin-utils/virtual.d.cts.map +1 -1
- package/dist/plugin-utils/virtual.d.mts +1 -2
- package/dist/plugin-utils/virtual.d.mts.map +1 -1
- package/dist/plugin-utils/virtual.mjs.map +1 -1
- 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 +200 -0
- package/dist/storage/base.d.cts.map +1 -0
- package/dist/storage/base.d.mts +200 -0
- package/dist/storage/base.d.mts.map +1 -0
- package/dist/storage/base.mjs +216 -0
- package/dist/storage/base.mjs.map +1 -0
- package/dist/storage/file-system.cjs +179 -0
- package/dist/storage/file-system.d.cts +127 -0
- package/dist/storage/file-system.d.cts.map +1 -0
- package/dist/storage/file-system.d.mts +127 -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 +36 -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 +97 -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 +10 -162
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +10 -162
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +144 -181
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +145 -182
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +120 -184
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +123 -187
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.cts +1 -12
- package/dist/types/fs.d.cts.map +1 -1
- package/dist/types/fs.d.mts +2 -13
- package/dist/types/fs.d.mts.map +1 -1
- package/dist/types/hooks.d.cts +1 -12
- package/dist/types/hooks.d.cts.map +1 -1
- package/dist/types/hooks.d.mts +1 -12
- package/dist/types/hooks.d.mts.map +1 -1
- package/dist/types/index.d.cts +9 -11
- package/dist/types/index.d.mts +9 -11
- package/dist/types/logging.d.cts +5 -20
- package/dist/types/logging.d.cts.map +1 -1
- package/dist/types/logging.d.mts +5 -20
- package/dist/types/logging.d.mts.map +1 -1
- package/dist/types/plugin.d.cts +5 -15
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +5 -15
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/tsconfig.d.cts +1 -8
- package/dist/types/tsconfig.d.cts.map +1 -1
- package/dist/types/tsconfig.d.mts +2 -9
- package/dist/types/tsconfig.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +6 -31
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +6 -31
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +158 -25
- package/schemas/fs.capnp +42 -0
- package/dist/types/_internal.cjs +0 -0
- package/dist/types/_internal.d.cts +0 -91
- package/dist/types/_internal.d.cts.map +0 -1
- package/dist/types/_internal.d.mts +0 -91
- 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
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,KAC7B,mBAAA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IAAA;AAAA,KAE/B,mBAAA,kBACO,aAAA,yBAEf,UAAA,CAAW,iBAAA,CAAkB,QAAA,EAAU,IAAA;AAAA,KAE/B,iBAAA,kBACO,aAAA,yBAEf,iBAAA,CAAkB,iBAAA,CAAkB,QAAA,EAAU,IAAA;AAAA,KAEtC,eAAA,kBAAiC,kBAAA;EA1EV;;;;;EAkF3B,UAAA;AAAA;EA9EqB;;;AAAiB;AAG9C;;;;AAAyC;AACzC;;EAwFY,MAAA;AAAA;EAxF+C;AAE3D;;EA4FY,WAAA,aAEM,cAAA,EAAgB,OAAA,KAAY,YAAA,CAAa,OAAA;AAAA;EA7FzD;;;;;AACwB;AAG1B;;;;;EAuGgB,MAAA;EAnG2B;;;;;;;;;;EA+G3B,KAAA,IACE,aAAA,EAAe,OAAA,EACf,cAAA,EAAgB,OAAA,KACb,YAAA,CAAa,OAAA;AAAA;EAlHS;;;AAAiB;AAC1D;;;;;;;EA+Hc,MAAA;AAAA;EA1HU;;;EAkIlB,UAAA;AAAA"}
|
package/dist/types/hooks.d.mts
CHANGED
|
@@ -91,17 +91,6 @@ type CallHookOptions<TResult = any> = SelectHooksOptions & (({
|
|
|
91
91
|
*/
|
|
92
92
|
sequential: false;
|
|
93
93
|
});
|
|
94
|
-
declare type __ΩHookListOrders = any[];
|
|
95
|
-
declare type __ΩHooksListItem = any[];
|
|
96
|
-
declare type __ΩPluginFilter = any[];
|
|
97
|
-
declare type __ΩTransformHookFilter = any[];
|
|
98
|
-
declare type __ΩNormalizedStringFilter = any[];
|
|
99
|
-
declare type __ΩHooksList = any[];
|
|
100
|
-
declare type __ΩInferHookFunction = any[];
|
|
101
|
-
declare type __ΩInferHookReturnType = any[];
|
|
102
|
-
declare type __ΩInferHookParameters = any[];
|
|
103
|
-
declare type __ΩInferHookThisType = any[];
|
|
104
|
-
declare type __ΩCallHookOptions = any[];
|
|
105
94
|
//#endregion
|
|
106
|
-
export { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter
|
|
95
|
+
export { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter };
|
|
107
96
|
//# sourceMappingURL=hooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,KAC7B,mBAAA,IAAuB,EAAA,UAAY,IAAY;AAAA,UAE1C,sBAAA;EACf,OAAA,GAAU,cAAA;EACV,OAAA,GAAU,cAAc;AAAA;AAAA,KAGd,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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A+G3B,KAAA,IACE,aAAA,EAAe,OAAA,EACf,cAAA,EAAgB,OAAA,KACb,YAAA,CAAa,OAAA;AAAA;EAlHS;;;AAAiB;AAC1D;;;;;;;EA+Hc,MAAA;AAAA;EA1HU;;;EAkIlB,UAAA;AAAA"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.cjs";
|
|
11
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InferOverridableConfig, InitialPluginConfig, InlineConfig, LintInlineConfig, Mode, NewInlineConfig, 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, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩCopyConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩInferOverridableConfig, __ΩInitialPluginConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩMode, __ΩNewInlineConfig, __Ω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";
|
|
1
|
+
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions } from "./fs.cjs";
|
|
2
|
+
import { BaseCommandType, BaseExecutionAPIMethods, CommandType, Commands, PowerlinesExecutionAPIMethods, SupportedCommands } from "./api.cjs";
|
|
3
|
+
import { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions } from "./unplugin.cjs";
|
|
4
|
+
import { 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 } from "./hooks.cjs";
|
|
6
|
+
import { 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 } 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 } from "./context.cjs";
|
|
9
|
+
import { 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, PrepareInlineConfig, ProjectType, ResolveConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise, UserInputConfig, WorkspaceConfig } from "./config.cjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./context.mjs";
|
|
11
|
-
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InferOverridableConfig, InitialPluginConfig, InlineConfig, LintInlineConfig, Mode, NewInlineConfig, 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, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩCopyConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩInferOverridableConfig, __ΩInitialPluginConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩMode, __ΩNewInlineConfig, __Ω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";
|
|
1
|
+
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions } from "./fs.mjs";
|
|
2
|
+
import { BaseCommandType, BaseExecutionAPIMethods, CommandType, Commands, PowerlinesExecutionAPIMethods, SupportedCommands } from "./api.mjs";
|
|
3
|
+
import { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions } from "./unplugin.mjs";
|
|
4
|
+
import { 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 } from "./hooks.mjs";
|
|
6
|
+
import { 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 } 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 } from "./context.mjs";
|
|
9
|
+
import { 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, PrepareInlineConfig, ProjectType, ResolveConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise, UserInputConfig, WorkspaceConfig } from "./config.mjs";
|
package/dist/types/logging.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ interface LogMeta {
|
|
|
20
20
|
*/
|
|
21
21
|
category: LogCategory;
|
|
22
22
|
/**
|
|
23
|
-
* The timestamp when the
|
|
23
|
+
* The timestamp when the RPC message was created, represented as the number of milliseconds since the Unix epoch.
|
|
24
24
|
*/
|
|
25
25
|
timestamp: number;
|
|
26
26
|
/**
|
|
@@ -34,7 +34,7 @@ interface LogMeta {
|
|
|
34
34
|
/**
|
|
35
35
|
* The zero-based index of the current execution within the sequence of executions in the same process.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
configIndex?: number;
|
|
38
38
|
/**
|
|
39
39
|
* Optional command identifier to specify the command or task associated with the log message, which can be used to provide additional context about the operation being performed when the log entry was generated.
|
|
40
40
|
*/
|
|
@@ -75,6 +75,7 @@ type LoggerOptions = Omit<LoggerMeta, "logId" | "timestamp" | "type"> & {
|
|
|
75
75
|
};
|
|
76
76
|
interface PowerlinesMessage<TMeta> extends UnpluginMessage {
|
|
77
77
|
meta: TMeta;
|
|
78
|
+
error?: Error;
|
|
78
79
|
}
|
|
79
80
|
type LogMessage = PowerlinesMessage<Partial<LogMeta>>;
|
|
80
81
|
/**
|
|
@@ -86,7 +87,7 @@ type LoggerMessage = PowerlinesMessage<LoggerMeta>;
|
|
|
86
87
|
*/
|
|
87
88
|
interface Logger {
|
|
88
89
|
options: LoggerOptions;
|
|
89
|
-
error: (message: string | LoggerMessage) => void;
|
|
90
|
+
error: (message: string | LoggerMessage | Error) => void;
|
|
90
91
|
warn: (message: string | LoggerMessage) => void;
|
|
91
92
|
info: (message: string | LoggerMessage) => void;
|
|
92
93
|
debug: (message: string | LoggerMessage) => void;
|
|
@@ -139,22 +140,6 @@ interface CustomLogger {
|
|
|
139
140
|
}
|
|
140
141
|
type LogLevelUserConfig = LogLevel | RequiredKeys<Partial<Record<LogCategory, LogLevel | boolean | undefined>>, "general">;
|
|
141
142
|
type LogLevelResolvedConfig = Record<LogCategory, LogLevel>;
|
|
142
|
-
declare type __ΩLogLevel = any[];
|
|
143
|
-
declare type __ΩLogCategory = any[];
|
|
144
|
-
declare type __ΩLogMeta = any[];
|
|
145
|
-
declare type __ΩLogFnOptions = any[];
|
|
146
|
-
declare type __ΩLogFnMeta = any[];
|
|
147
|
-
declare type __ΩLogFn = any[];
|
|
148
|
-
declare type __ΩLoggerMeta = any[];
|
|
149
|
-
declare type __ΩLoggerOptions = any[];
|
|
150
|
-
declare type __ΩPowerlinesMessage = any[];
|
|
151
|
-
declare type __ΩLogMessage = any[];
|
|
152
|
-
declare type __ΩLoggerMessage = any[];
|
|
153
|
-
declare type __ΩLogger = any[];
|
|
154
|
-
declare type __ΩCustomLoggerMessage = any[];
|
|
155
|
-
declare type __ΩCustomLogger = any[];
|
|
156
|
-
declare type __ΩLogLevelUserConfig = any[];
|
|
157
|
-
declare type __ΩLogLevelResolvedConfig = any[];
|
|
158
143
|
//#endregion
|
|
159
|
-
export { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage
|
|
144
|
+
export { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage };
|
|
160
145
|
//# sourceMappingURL=logging.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.cts","names":[],"sources":["../../src/types/logging.ts"],"mappings":";;;;;;KAuBY,QAAA,WAAmB,
|
|
1
|
+
{"version":3,"file":"logging.d.cts","names":[],"sources":["../../src/types/logging.ts"],"mappings":";;;;;;KAuBY,Q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,IAAA,EAAM,QAAA,EAAU,OAAA,WAAkB,aAAA;AAAA;;;;KAM9B,mBAAA,GAAsB,iBAAA,CAAkB,IAAA,CAAK,OAAA;;;;UAKxC,YAAA;EArCf;;;;;AAC6B;EA2C7B,KAAA,IAAS,OAAA,EAAS,mBAAA;EAxCc;;;;;;EA+ChC,IAAA,IAAQ,OAAA,EAAS,mBAAA;EA/CgB;;;;;;EAsDjC,IAAA,IAAQ,OAAA,EAAS,mBAAA;EApDJ;AAGf;;;;;EAwDE,KAAA,IAAS,OAAA,EAAS,mBAAA;EAxDsB;;;;;;EA+DxC,KAAA,IAAS,OAAA,EAAS,mBAAA;AAAA;AAAA,KAGR,kBAAA,GACR,QAAA,GACA,YAAA,CACE,OAAA,CAAQ,MAAA,CAAO,WAAA,EAAa,QAAA;AAAA,KAItB,sBAAA,GAAyB,MAAA,CAAO,WAAA,EAAa,QAAA"}
|
package/dist/types/logging.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ interface LogMeta {
|
|
|
20
20
|
*/
|
|
21
21
|
category: LogCategory;
|
|
22
22
|
/**
|
|
23
|
-
* The timestamp when the
|
|
23
|
+
* The timestamp when the RPC message was created, represented as the number of milliseconds since the Unix epoch.
|
|
24
24
|
*/
|
|
25
25
|
timestamp: number;
|
|
26
26
|
/**
|
|
@@ -34,7 +34,7 @@ interface LogMeta {
|
|
|
34
34
|
/**
|
|
35
35
|
* The zero-based index of the current execution within the sequence of executions in the same process.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
configIndex?: number;
|
|
38
38
|
/**
|
|
39
39
|
* Optional command identifier to specify the command or task associated with the log message, which can be used to provide additional context about the operation being performed when the log entry was generated.
|
|
40
40
|
*/
|
|
@@ -75,6 +75,7 @@ type LoggerOptions = Omit<LoggerMeta, "logId" | "timestamp" | "type"> & {
|
|
|
75
75
|
};
|
|
76
76
|
interface PowerlinesMessage<TMeta> extends UnpluginMessage {
|
|
77
77
|
meta: TMeta;
|
|
78
|
+
error?: Error;
|
|
78
79
|
}
|
|
79
80
|
type LogMessage = PowerlinesMessage<Partial<LogMeta>>;
|
|
80
81
|
/**
|
|
@@ -86,7 +87,7 @@ type LoggerMessage = PowerlinesMessage<LoggerMeta>;
|
|
|
86
87
|
*/
|
|
87
88
|
interface Logger {
|
|
88
89
|
options: LoggerOptions;
|
|
89
|
-
error: (message: string | LoggerMessage) => void;
|
|
90
|
+
error: (message: string | LoggerMessage | Error) => void;
|
|
90
91
|
warn: (message: string | LoggerMessage) => void;
|
|
91
92
|
info: (message: string | LoggerMessage) => void;
|
|
92
93
|
debug: (message: string | LoggerMessage) => void;
|
|
@@ -139,22 +140,6 @@ interface CustomLogger {
|
|
|
139
140
|
}
|
|
140
141
|
type LogLevelUserConfig = LogLevel | RequiredKeys<Partial<Record<LogCategory, LogLevel | boolean | undefined>>, "general">;
|
|
141
142
|
type LogLevelResolvedConfig = Record<LogCategory, LogLevel>;
|
|
142
|
-
declare type __ΩLogLevel = any[];
|
|
143
|
-
declare type __ΩLogCategory = any[];
|
|
144
|
-
declare type __ΩLogMeta = any[];
|
|
145
|
-
declare type __ΩLogFnOptions = any[];
|
|
146
|
-
declare type __ΩLogFnMeta = any[];
|
|
147
|
-
declare type __ΩLogFn = any[];
|
|
148
|
-
declare type __ΩLoggerMeta = any[];
|
|
149
|
-
declare type __ΩLoggerOptions = any[];
|
|
150
|
-
declare type __ΩPowerlinesMessage = any[];
|
|
151
|
-
declare type __ΩLogMessage = any[];
|
|
152
|
-
declare type __ΩLoggerMessage = any[];
|
|
153
|
-
declare type __ΩLogger = any[];
|
|
154
|
-
declare type __ΩCustomLoggerMessage = any[];
|
|
155
|
-
declare type __ΩCustomLogger = any[];
|
|
156
|
-
declare type __ΩLogLevelUserConfig = any[];
|
|
157
|
-
declare type __ΩLogLevelResolvedConfig = any[];
|
|
158
143
|
//#endregion
|
|
159
|
-
export { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage
|
|
144
|
+
export { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage };
|
|
160
145
|
//# sourceMappingURL=logging.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.mts","names":[],"sources":["../../src/types/logging.ts"],"mappings":";;;;;;KAuBY,QAAA,WAAmB,
|
|
1
|
+
{"version":3,"file":"logging.d.mts","names":[],"sources":["../../src/types/logging.ts"],"mappings":";;;;;;KAuBY,QAAA,WAAmB,UAAU;AAAA,KAE7B,WAAA,WAAsB,cAAc;AAAA,UAE/B,OAAA;EAJG;;;EAQlB,KAAA;EANU;;;EAUV,IAAA,EAAM,QAAA;EAVwC;AAEhD;;EAYE,QAAA,EAAU,WAAW;EAAA;;;EAIrB,SAAA;EAJA;;;EAQA,IAAA;EAIA;;;EAAA,WAAA;EAgBA;;;EAZA,WAAA;EA0BK;AAAA;AAGP;EAzBE,OAAA;;;;EAIA,IAAA;EAyBO;;;EArBP,WAAA;EAiByB;;;EAbzB,MAAA;EAiBO;;;EAbP,MAAA;EAc6B;AAG/B;;;;EAXE,KAAA;AAAA;AAAA,KAGU,YAAA,GAAe,IAAA,CACzB,OAAA,CAAQ,OAAA;EAGR,IAAA,GAAO,IAAA;EACP,QAAA,GAAW,kBAAA;AAAA;AAAA,KAGD,SAAA,GACR,QAAA,GACA,WAAA,CAAY,OAAA;AAAA,KAEJ,KAAA,IAAS,IAAA,EAAM,SAAS,EAAE,OAAA;AAAA,KAE1B,UAAA,GAAa,WAAA,CACvB,IAAA,CAAK,OAAA;AAAA,KAIK,aAAA,GAAgB,IAAA,CAAK,UAAA;EAC/B,IAAA,GAAO,IAAA;EACP,QAAA,GAAW,kBAAA;AAAA;AAAA,UAGI,iBAAA,gBAAiC,eAAA;EAChD,IAAA,EAAM,KAAA;EACN,KAAA,GAAQ,KAAA;AAAA;AAAA,KAGE,UAAA,GAAa,iBAAA,CAAkB,OAAA,CAAQ,OAAA;AAfnD;;;AAAA,KAoBY,aAAA,GAAgB,iBAAiB,CAAC,UAAA;;;;UAK7B,MAAA;EACf,OAAA,EAAS,aAAA;EACT,KAAA,GAAQ,OAAA,WAAkB,aAAA,GAAgB,KAAA;EAC1C,IAAA,GAAO,OAAA,WAAkB,aAAA;EACzB,IAAA,GAAO,OAAA,WAAkB,aAAA;EACzB,KAAA,GAAQ,OAAA,WAAkB,aAAA;EAC1B,KAAA,GAAQ,OAAA,WAAkB,aAAA;EAC1B,GAAA,GAAM,IAAA,EAAM,QAAA,EAAU,OAAA,WAAkB,aAAA;AAAA;;;;KAM9B,mBAAA,GAAsB,iBAAA,CAAkB,IAAA,CAAK,OAAA;;;;UAKxC,YAAA;EArCf;;;;;AAC6B;EA2C7B,KAAA,IAAS,OAAA,EAAS,mBAAA;EAxCc;;;;;;EA+ChC,IAAA,IAAQ,OAAA,EAAS,mBAAA;EA/CgB;;;;;;EAsDjC,IAAA,IAAQ,OAAA,EAAS,mBAAA;EApDJ;AAGf;;;;;EAwDE,KAAA,IAAS,OAAA,EAAS,mBAAA;EAxDsB;;;;;;EA+DxC,KAAA,IAAS,OAAA,EAAS,mBAAA;AAAA;AAAA,KAGR,kBAAA,GACR,QAAA,GACA,YAAA,CACE,OAAA,CAAQ,MAAA,CAAO,WAAA,EAAa,QAAA;AAAA,KAItB,sBAAA,GAAyB,MAAA,CAAO,WAAA,EAAa,QAAA"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PLUGIN_NON_HOOK_FIELDS } from "../constants/plugin.cjs";
|
|
2
|
-
import { BaseCommandType } from "./
|
|
2
|
+
import { BaseCommandType } from "./api.cjs";
|
|
3
3
|
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "./unplugin.cjs";
|
|
4
4
|
import { BuildPluginContext, PluginContext, ResolveResult, UnresolvedContext } from "./context.cjs";
|
|
5
|
-
import { EnvironmentConfig, PluginConfig,
|
|
5
|
+
import { EnvironmentConfig, PluginConfig, ResolvedEnvironmentConfig } from "./config.cjs";
|
|
6
6
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, TransformResult } from "unplugin";
|
|
8
8
|
import { ArrayValues } from "@stryke/types/array";
|
|
@@ -197,21 +197,11 @@ interface BasePlugin<TContext extends PluginContext> {
|
|
|
197
197
|
* @param config - The partial configuration object to be modified.
|
|
198
198
|
* @returns A promise that resolves to a partial configuration object.
|
|
199
199
|
*/
|
|
200
|
-
config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
200
|
+
config?: PluginHook<(this: UnresolvedContext<TContext["config"], TContext["system"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
201
201
|
}
|
|
202
|
-
type Plugin<TContext extends PluginContext
|
|
202
|
+
type Plugin<TContext extends PluginContext> = Partial<PluginHooks<TContext>> & BasePlugin<TContext> & Pick<UnpluginOptions$1<TContext>, UnpluginBuilderVariant>;
|
|
203
203
|
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>;
|
|
204
204
|
type PluginHookFields<TContext extends PluginContext = PluginContext, TKey extends string = string> = TKey extends ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> ? never : TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? TKey : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: `${TKey}:${K & string}` }[keyof HookFunctions<TContext>[TKey]] : never : never;
|
|
205
|
-
declare type __ΩPluginHookObject = any[];
|
|
206
|
-
declare type __ΩPluginHook = any[];
|
|
207
|
-
declare type __ΩTypesResult = any[];
|
|
208
|
-
declare type __ΩHooks = any[];
|
|
209
|
-
declare type __ΩHookFunctions = any[];
|
|
210
|
-
declare type __ΩPluginHooks = any[];
|
|
211
|
-
declare type __ΩBasePlugin = any[];
|
|
212
|
-
declare type __ΩPlugin = any[];
|
|
213
|
-
declare type __ΩPluginNonHookFields = any[];
|
|
214
|
-
declare type __ΩPluginHookFields = any[];
|
|
215
205
|
//#endregion
|
|
216
|
-
export { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult
|
|
206
|
+
export { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult };
|
|
217
207
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;UAqCiB,gBAAA,uBACO,WAAA,wBACA,UAAA;;AAFxB;;EAOE,KAAA;EANsB;;;EAWtB,MAAA,GAAS,IAAA,CAAK,UAAA,EAAY,OAAA;EAAjB;;;EAKT,OAAA,EAAS,aAAA;AAAA;AAAA,KAGC,UAAA,uBACY,WAAA,wBACA,UAAA,YACpB,aAAA,GAAgB,gBAAA,CAAiB,aAAA,EAAe,OAAA;;;;UAKnC,WAAA;EACf,UAAA;EACA,IAAI;AAAA;AAAA,UAGW,KAAA,kBAAuB,aAAA;EAhB7B;;AAAa;AAGxB;;;;;;;;;;;EA4BE,MAAA,GACE,IAAA,EAAM,iBAAA,CAAkB,QAAA,gBACrB,YAAA,CAAa,aAAA,CAAY,QAAA,cAAsB,MA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,sBAAA,YAE5B,IAAA,eAAmB,aAAA,CAAc,QAAA,IAC/B,aAAA,CAAc,QAAA,EAAU,IAAA,UAAc,WAAA,GACpC,IAAA,GACA,aAAA,CAAc,QAAA,EAAU,IAAA,iCAER,aAAA,CAAc,QAAA,EAAU,IAAA,QAAY,IAAA,IAAQ,CAAA,oBAClD,aAAA,CAAc,QAAA,EAAU,IAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PLUGIN_NON_HOOK_FIELDS } from "../constants/plugin.mjs";
|
|
2
|
-
import { BaseCommandType } from "./
|
|
2
|
+
import { BaseCommandType } from "./api.mjs";
|
|
3
3
|
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "./unplugin.mjs";
|
|
4
4
|
import { BuildPluginContext, PluginContext, ResolveResult, UnresolvedContext } from "./context.mjs";
|
|
5
|
-
import { EnvironmentConfig, PluginConfig,
|
|
5
|
+
import { EnvironmentConfig, PluginConfig, ResolvedEnvironmentConfig } from "./config.mjs";
|
|
6
6
|
import { HookFilter, TransformResult } from "unplugin";
|
|
7
7
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
8
8
|
import { ArrayValues } from "@stryke/types/array";
|
|
@@ -197,21 +197,11 @@ interface BasePlugin<TContext extends PluginContext> {
|
|
|
197
197
|
* @param config - The partial configuration object to be modified.
|
|
198
198
|
* @returns A promise that resolves to a partial configuration object.
|
|
199
199
|
*/
|
|
200
|
-
config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
200
|
+
config?: PluginHook<(this: UnresolvedContext<TContext["config"], TContext["system"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
201
201
|
}
|
|
202
|
-
type Plugin<TContext extends PluginContext
|
|
202
|
+
type Plugin<TContext extends PluginContext> = Partial<PluginHooks<TContext>> & BasePlugin<TContext> & Pick<UnpluginOptions$1<TContext>, UnpluginBuilderVariant>;
|
|
203
203
|
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>;
|
|
204
204
|
type PluginHookFields<TContext extends PluginContext = PluginContext, TKey extends string = string> = TKey extends ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> ? never : TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? TKey : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: `${TKey}:${K & string}` }[keyof HookFunctions<TContext>[TKey]] : never : never;
|
|
205
|
-
declare type __ΩPluginHookObject = any[];
|
|
206
|
-
declare type __ΩPluginHook = any[];
|
|
207
|
-
declare type __ΩTypesResult = any[];
|
|
208
|
-
declare type __ΩHooks = any[];
|
|
209
|
-
declare type __ΩHookFunctions = any[];
|
|
210
|
-
declare type __ΩPluginHooks = any[];
|
|
211
|
-
declare type __ΩBasePlugin = any[];
|
|
212
|
-
declare type __ΩPlugin = any[];
|
|
213
|
-
declare type __ΩPluginNonHookFields = any[];
|
|
214
|
-
declare type __ΩPluginHookFields = any[];
|
|
215
205
|
//#endregion
|
|
216
|
-
export { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult
|
|
206
|
+
export { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult };
|
|
217
207
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;UAqCiB,gBAAA,uBACO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GhB,MAAA,GACI,UAAA,EAEI,IAAA,EAAM,iBAAA,CAAkB,QAAA,YAAoB,QAAA,gBACzC,YAAA,CAAa,aAAA,CAAY,QAAA,cAAsB,MAAA,mBAErD,aAAA,CAAY,QAAA,cAAsB,MAAA;AAAA;AAAA,KAG7B,MAAA,kBAAwB,aAAA,IAAiB,OAAA,CACnD,WAAA,CAAY,QAAA,KAEZ,UAAA,CAAW,QAAA,IACX,IAAA,CAAK,iBAAA,CAAgB,QAAA,GAAW,sBAAA;AAAA,KAEtB,mBAAA,GAAsB,WAAW,QAAQ,sBAAA;AAAA,KAEzC,gBAAA,kBACO,aAAA,GAAgB,aAAA,kCAGjC,IAAA,SAAa,WAAA,QAAmB,sBAAA,YAE5B,IAAA,eAAmB,aAAA,CAAc,QAAA,IAC/B,aAAA,CAAc,QAAA,EAAU,IAAA,UAAc,WAAA,GACpC,IAAA,GACA,aAAA,CAAc,QAAA,EAAU,IAAA,iCAER,aAAA,CAAc,QAAA,EAAU,IAAA,QAAY,IAAA,IAAQ,CAAA,oBAClD,aAAA,CAAc,QAAA,EAAU,IAAA"}
|
|
@@ -68,13 +68,6 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
68
68
|
tsconfigJson: TSConfig;
|
|
69
69
|
tsconfigFilePath: string;
|
|
70
70
|
};
|
|
71
|
-
declare type __ΩReflectionMode = any[];
|
|
72
|
-
declare type __ΩRawReflectionMode = any[];
|
|
73
|
-
declare type __ΩLevel = any[];
|
|
74
|
-
declare type __ΩDeepkitOptions = any[];
|
|
75
|
-
declare type __ΩTSCompilerOptions = any[];
|
|
76
|
-
declare type __ΩTSConfig = any[];
|
|
77
|
-
declare type __ΩParsedTypeScriptConfig = any[];
|
|
78
71
|
//#endregion
|
|
79
|
-
export { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig
|
|
72
|
+
export { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig };
|
|
80
73
|
//# sourceMappingURL=tsconfig.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsconfig.d.cts","names":[],"sources":["../../src/types/tsconfig.ts"],"mappings":";;;;KAqBY,cAAA;AAAA,KACA,iBAAA,GACR,
|
|
1
|
+
{"version":3,"file":"tsconfig.d.cts","names":[],"sources":["../../src/types/tsconfig.ts"],"mappings":";;;;KAqBY,cAAA;AAAA,KACA,iBAAA,GACR,cAAc;AAFlB;;;;AAA0B;AAC1B;;;;AACkB;AAFlB,KAmBY,KAAA;AAAA,UAEK,cAAA;;;AAFA;AAEjB;;EAME,UAAA,GAAa,iBAAA;EAYA;;;;;;AAAA;AAGf;;;EAHE,KAAA,GAAQ,KAAK;AAAA;AAAA,KAGH,iBAAA,GAAoB,eAAA,GAAkB,cAAc;;;;;;UAO/C,QAAA,SAAiB,IAAA,CAAK,YAAA;EAAL;;;;;EAMhC,UAAA,GAAa,iBAAA;EAAA;;;;;;AAiBsB;AAGrC;;;EARE,KAAA,GAAQ,KAAA;EASc;;;EAJtB,eAAA,GAAkB,iBAAA;AAAA;AAAA,KAGR,sBAAA,GAAyB,EAAA,CAAG,iBAAA;EACtC,oBAAA,EAAsB,YAAA;EACtB,YAAA,EAAc,QAAA;EACd,gBAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
2
1
|
import ts from "typescript";
|
|
2
|
+
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
3
3
|
|
|
4
4
|
//#region src/types/tsconfig.d.ts
|
|
5
5
|
type ReflectionMode = "default" | "explicit" | "never";
|
|
@@ -68,13 +68,6 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
68
68
|
tsconfigJson: TSConfig;
|
|
69
69
|
tsconfigFilePath: string;
|
|
70
70
|
};
|
|
71
|
-
declare type __ΩReflectionMode = any[];
|
|
72
|
-
declare type __ΩRawReflectionMode = any[];
|
|
73
|
-
declare type __ΩLevel = any[];
|
|
74
|
-
declare type __ΩDeepkitOptions = any[];
|
|
75
|
-
declare type __ΩTSCompilerOptions = any[];
|
|
76
|
-
declare type __ΩTSConfig = any[];
|
|
77
|
-
declare type __ΩParsedTypeScriptConfig = any[];
|
|
78
71
|
//#endregion
|
|
79
|
-
export { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig
|
|
72
|
+
export { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig };
|
|
80
73
|
//# sourceMappingURL=tsconfig.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsconfig.d.mts","names":[],"sources":["../../src/types/tsconfig.ts"],"mappings":";;;;KAqBY,cAAA;AAAA,KACA,iBAAA,GACR,
|
|
1
|
+
{"version":3,"file":"tsconfig.d.mts","names":[],"sources":["../../src/types/tsconfig.ts"],"mappings":";;;;KAqBY,cAAA;AAAA,KACA,iBAAA,GACR,cAAc;AAFlB;;;;AAA0B;AAC1B;;;;AACkB;AAFlB,KAmBY,KAAA;AAAA,UAEK,cAAA;;;AAFA;AAEjB;;EAME,UAAA,GAAa,iBAAA;EAYA;;;;;;AAAA;AAGf;;;EAHE,KAAA,GAAQ,KAAK;AAAA;AAAA,KAGH,iBAAA,GAAoB,eAAA,GAAkB,cAAc;;;;;;UAO/C,QAAA,SAAiB,IAAA,CAAK,YAAA;EAAL;;;;;EAMhC,UAAA,GAAa,iBAAA;EAAA;;;;;;AAiBsB;AAGrC;;;EARE,KAAA,GAAQ,KAAA;EASc;;;EAJtB,eAAA,GAAkB,iBAAA;AAAA;AAAA,KAGR,sBAAA,GAAyB,EAAA,CAAG,iBAAA;EACtC,oBAAA,EAAsB,YAAA;EACtB,YAAA,EAAc,QAAA;EACd,gBAAA;AAAA"}
|
|
@@ -1,47 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
4
|
-
import { InitialPluginConfig, UserConfig } from "./config.cjs";
|
|
5
|
-
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
6
|
-
import { HookFilter, UnpluginContextMeta, UnpluginOptions } from "unplugin";
|
|
1
|
+
import { PluginContext, UnresolvedContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
2
|
+
import { UnpluginOptions } from "unplugin";
|
|
7
3
|
|
|
8
4
|
//#region src/types/unplugin.d.ts
|
|
9
5
|
type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
|
|
10
6
|
type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
|
|
11
|
-
|
|
12
|
-
interface UnpluginOptions$1<TContext extends PluginContext = PluginContext> extends UnpluginOptions {
|
|
7
|
+
interface UnpluginOptions$1<TContext extends UnresolvedContext> extends UnpluginOptions {
|
|
13
8
|
/**
|
|
14
9
|
* An API object that can be used for inter-plugin communication.
|
|
15
10
|
*
|
|
16
11
|
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
17
12
|
*/
|
|
18
|
-
|
|
13
|
+
context: TContext;
|
|
19
14
|
}
|
|
20
|
-
type
|
|
21
|
-
handler: infer THandler;
|
|
22
|
-
} ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] };
|
|
23
|
-
type UnpluginInitialConfig = DeepPartial<UserConfig> & {
|
|
24
|
-
/**
|
|
25
|
-
* The meta information for the unplugin context
|
|
26
|
-
*/
|
|
27
|
-
unplugin: UnpluginContextMeta;
|
|
28
|
-
};
|
|
29
|
-
type UnpluginFactory<TContext extends PluginContext = PluginContext> = (options: InitialPluginConfig<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => UnpluginOptions$1<TContext>;
|
|
30
|
-
type UnpluginAsyncFactory<TContext extends PluginContext = PluginContext> = (options: InitialPluginConfig<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => Promise<UnpluginOptions$1<TContext>>;
|
|
31
|
-
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
15
|
+
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1<TContext>>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1<TContext>>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1<TContext>>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
32
16
|
handler: infer THandler;
|
|
33
17
|
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
34
18
|
handler: infer THandlerFunction;
|
|
35
19
|
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
36
|
-
declare type __ΩUnpluginBuilderVariant = any[];
|
|
37
|
-
declare type __ΩBuilderVariant = any[];
|
|
38
|
-
declare type __ΩInferUnpluginVariant = any[];
|
|
39
|
-
declare type __ΩUnpluginOptions = any[];
|
|
40
|
-
declare type __ΩInferUnpluginOptions = any[];
|
|
41
|
-
declare type __ΩUnpluginInitialConfig = any[];
|
|
42
|
-
declare type __ΩUnpluginFactory = any[];
|
|
43
|
-
declare type __ΩUnpluginAsyncFactory = any[];
|
|
44
|
-
declare type __ΩUnpluginHookFunctions = any[];
|
|
45
20
|
//#endregion
|
|
46
|
-
export { BuilderVariant,
|
|
21
|
+
export { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions$1 as UnpluginOptions };
|
|
47
22
|
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":";;;;KAyBY,sBAAA;AAAA,KAWA,cAAA,GACR,sBAAsB;AAAA,UAKT,iBAAA,kBACE,iBAAA,UACT,eAAA;EAnBwB;;;AAAA;AAWlC;EAcE,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,qBAAA,kBACO,aAAA,GAAgB,aAAA,kCACD,sBAAA,GAC9B,sBAAA,uBACmB,QAAA,CACnB,iBAAA,CAAgB,QAAA,GAChB,uBAAA,UAAiC,QAAA,CACjC,iBAAA,CAAgB,QAAA,GAChB,uBAAA,KACA,QAAA,CACF,iBAAA,CAAgB,QAAA,GAChB,uBAAA,EAAyB,MAAA;EAGrB,OAAA;AAAA,IAEF,QAAA,WACE,IAAA,oCACG,IAAA,kDAGD,IAAA,EAAM,uBAAA,GAA0B,wBAAA,CAAyB,QAAA,MACtD,IAAA,EAAM,YAAA,KACN,cAAA,GACL,QAAA;EAAmB,OAAA;AAAA,IACjB,gBAAA,WACE,IAAA,4CACG,IAAA,kEAGD,IAAA,EAAM,+BAAA,GACJ,wBAAA,CAAyB,QAAA,MACxB,IAAA,EAAM,oBAAA,KACN,sBAAA"}
|
|
@@ -1,47 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
4
|
-
import { InitialPluginConfig, UserConfig } from "./config.mjs";
|
|
5
|
-
import { HookFilter, UnpluginContextMeta, UnpluginOptions } from "unplugin";
|
|
6
|
-
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
1
|
+
import { PluginContext, UnresolvedContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
2
|
+
import { UnpluginOptions } from "unplugin";
|
|
7
3
|
|
|
8
4
|
//#region src/types/unplugin.d.ts
|
|
9
5
|
type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
|
|
10
6
|
type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
|
|
11
|
-
|
|
12
|
-
interface UnpluginOptions$1<TContext extends PluginContext = PluginContext> extends UnpluginOptions {
|
|
7
|
+
interface UnpluginOptions$1<TContext extends UnresolvedContext> extends UnpluginOptions {
|
|
13
8
|
/**
|
|
14
9
|
* An API object that can be used for inter-plugin communication.
|
|
15
10
|
*
|
|
16
11
|
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
17
12
|
*/
|
|
18
|
-
|
|
13
|
+
context: TContext;
|
|
19
14
|
}
|
|
20
|
-
type
|
|
21
|
-
handler: infer THandler;
|
|
22
|
-
} ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] };
|
|
23
|
-
type UnpluginInitialConfig = DeepPartial<UserConfig> & {
|
|
24
|
-
/**
|
|
25
|
-
* The meta information for the unplugin context
|
|
26
|
-
*/
|
|
27
|
-
unplugin: UnpluginContextMeta;
|
|
28
|
-
};
|
|
29
|
-
type UnpluginFactory<TContext extends PluginContext = PluginContext> = (options: InitialPluginConfig<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => UnpluginOptions$1<TContext>;
|
|
30
|
-
type UnpluginAsyncFactory<TContext extends PluginContext = PluginContext> = (options: InitialPluginConfig<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => Promise<UnpluginOptions$1<TContext>>;
|
|
31
|
-
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
15
|
+
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1<TContext>>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1<TContext>>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1<TContext>>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
32
16
|
handler: infer THandler;
|
|
33
17
|
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
34
18
|
handler: infer THandlerFunction;
|
|
35
19
|
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
36
|
-
declare type __ΩUnpluginBuilderVariant = any[];
|
|
37
|
-
declare type __ΩBuilderVariant = any[];
|
|
38
|
-
declare type __ΩInferUnpluginVariant = any[];
|
|
39
|
-
declare type __ΩUnpluginOptions = any[];
|
|
40
|
-
declare type __ΩInferUnpluginOptions = any[];
|
|
41
|
-
declare type __ΩUnpluginInitialConfig = any[];
|
|
42
|
-
declare type __ΩUnpluginFactory = any[];
|
|
43
|
-
declare type __ΩUnpluginAsyncFactory = any[];
|
|
44
|
-
declare type __ΩUnpluginHookFunctions = any[];
|
|
45
20
|
//#endregion
|
|
46
|
-
export { BuilderVariant,
|
|
21
|
+
export { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions$1 as UnpluginOptions };
|
|
47
22
|
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":";;;;KAyBY,sBAAA;AAAA,KAWA,cAAA,GACR,sBAAsB;AAAA,UAKT,iBAAA,kBACE,iBAAA,UACT,eAAA;EAnBwB;;;AAAA;AAWlC;EAcE,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,qBAAA,kBACO,aAAA,GAAgB,aAAA,kCACD,sBAAA,GAC9B,sBAAA,uBACmB,QAAA,CACnB,iBAAA,CAAgB,QAAA,GAChB,uBAAA,UAAiC,QAAA,CACjC,iBAAA,CAAgB,QAAA,GAChB,uBAAA,KACA,QAAA,CACF,iBAAA,CAAgB,QAAA,GAChB,uBAAA,EAAyB,MAAA;EAGrB,OAAA;AAAA,IAEF,QAAA,WACE,IAAA,oCACG,IAAA,kDAGD,IAAA,EAAM,uBAAA,GAA0B,wBAAA,CAAyB,QAAA,MACtD,IAAA,EAAM,YAAA,KACN,cAAA,GACL,QAAA;EAAmB,OAAA;AAAA,IACjB,gBAAA,WACE,IAAA,4CACG,IAAA,kEAGD,IAAA,EAAM,+BAAA,GACJ,wBAAA,CAAyB,QAAA,MACxB,IAAA,EAAM,oBAAA,KACN,sBAAA"}
|