@powerlines/core 0.48.32 → 0.48.33
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/{chunk-C_NdSu1c.cjs → _virtual/_rolldown/runtime.cjs} +1 -6
- package/dist/constants/api.d.cts +6 -2
- package/dist/constants/api.d.cts.map +1 -0
- package/dist/constants/api.d.mts +6 -2
- package/dist/constants/api.d.mts.map +1 -0
- package/dist/constants/commands.d.cts +5 -2
- package/dist/constants/commands.d.cts.map +1 -0
- package/dist/constants/commands.d.mts +5 -2
- package/dist/constants/commands.d.mts.map +1 -0
- package/dist/constants/devtools.d.cts +13 -2
- package/dist/constants/devtools.d.cts.map +1 -0
- package/dist/constants/devtools.d.mts +13 -2
- package/dist/constants/devtools.d.mts.map +1 -0
- package/dist/constants/environments.d.cts +10 -2
- package/dist/constants/environments.d.cts.map +1 -0
- package/dist/constants/environments.d.mts +10 -2
- package/dist/constants/environments.d.mts.map +1 -0
- package/dist/constants/extensions.d.cts +5 -2
- package/dist/constants/extensions.d.cts.map +1 -0
- package/dist/constants/extensions.d.mts +5 -2
- package/dist/constants/extensions.d.mts.map +1 -0
- package/dist/constants/fs.d.cts +7 -2
- package/dist/constants/fs.d.cts.map +1 -0
- package/dist/constants/fs.d.mts +7 -2
- package/dist/constants/fs.d.mts.map +1 -0
- package/dist/constants/hooks.d.cts +5 -2
- package/dist/constants/hooks.d.cts.map +1 -0
- package/dist/constants/hooks.d.mts +5 -2
- package/dist/constants/hooks.d.mts.map +1 -0
- package/dist/constants/index.d.cts +10 -10
- package/dist/constants/index.d.mts +10 -10
- package/dist/constants/log-level.d.cts +67 -2
- package/dist/constants/log-level.d.cts.map +1 -0
- package/dist/constants/log-level.d.mts +67 -2
- package/dist/constants/log-level.d.mts.map +1 -0
- package/dist/constants/meta.d.cts +6 -2
- package/dist/constants/meta.d.cts.map +1 -0
- package/dist/constants/meta.d.mts +6 -2
- package/dist/constants/meta.d.mts.map +1 -0
- package/dist/constants/plugin.d.cts +9 -2
- package/dist/constants/plugin.d.cts.map +1 -0
- package/dist/constants/plugin.d.mts +9 -2
- package/dist/constants/plugin.d.mts.map +1 -0
- package/dist/context/base-context.cjs +2 -2
- package/dist/context/base-context.d.cts +81 -2
- package/dist/context/base-context.d.cts.map +1 -0
- package/dist/context/base-context.d.mts +81 -2
- package/dist/context/base-context.d.mts.map +1 -0
- package/dist/context/context.cjs +2 -2
- package/dist/context/context.d.cts +373 -2
- package/dist/context/context.d.cts.map +1 -0
- package/dist/context/context.d.mts +373 -2
- package/dist/context/context.d.mts.map +1 -0
- package/dist/context/environment-context.d.cts +5 -2
- package/dist/context/environment-context.d.cts.map +1 -1
- package/dist/context/environment-context.d.mts +5 -2
- package/dist/context/environment-context.d.mts.map +1 -1
- package/dist/context/execution-context.cjs +2 -2
- package/dist/context/execution-context.d.cts +6 -2
- package/dist/context/execution-context.d.cts.map +1 -1
- package/dist/context/execution-context.d.mts +6 -2
- package/dist/context/execution-context.d.mts.map +1 -1
- package/dist/context/index.d.cts +2 -2
- package/dist/context/index.d.mts +2 -2
- package/dist/context/plugin-context.d.cts +3 -1
- package/dist/context/plugin-context.d.cts.map +1 -1
- package/dist/context/plugin-context.d.mts +3 -1
- package/dist/context/plugin-context.d.mts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +32 -24
- package/dist/index.d.mts +32 -24
- package/dist/index.mjs +1 -1
- package/dist/lib/config.cjs +2 -2
- package/dist/lib/config.d.cts +140 -2
- package/dist/lib/config.d.cts.map +1 -0
- package/dist/lib/config.d.mts +140 -2
- package/dist/lib/config.d.mts.map +1 -0
- package/dist/lib/context-helpers.d.cts +16 -2
- package/dist/lib/context-helpers.d.cts.map +1 -0
- package/dist/lib/context-helpers.d.mts +16 -2
- package/dist/lib/context-helpers.d.mts.map +1 -0
- package/dist/lib/entry.d.cts +47 -2
- package/dist/lib/entry.d.cts.map +1 -0
- package/dist/lib/entry.d.mts +47 -2
- package/dist/lib/entry.d.mts.map +1 -0
- package/dist/lib/environment.cjs +2 -2
- package/dist/lib/environment.d.cts +2 -1
- package/dist/lib/environment.d.cts.map +1 -1
- package/dist/lib/environment.d.mts +2 -1
- package/dist/lib/environment.d.mts.map +1 -1
- package/dist/lib/events.d.cts +10 -2
- package/dist/lib/events.d.cts.map +1 -0
- package/dist/lib/events.d.mts +10 -2
- package/dist/lib/events.d.mts.map +1 -0
- package/dist/lib/generate-types.d.cts +66 -2
- package/dist/lib/generate-types.d.cts.map +1 -0
- package/dist/lib/generate-types.d.mts +66 -2
- package/dist/lib/generate-types.d.mts.map +1 -0
- package/dist/lib/hooks.cjs +2 -2
- package/dist/lib/hooks.d.cts +28 -2
- package/dist/lib/hooks.d.cts.map +1 -0
- package/dist/lib/hooks.d.mts +28 -2
- package/dist/lib/hooks.d.mts.map +1 -0
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.d.cts +23 -23
- package/dist/lib/index.d.mts +23 -23
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/install-dependencies.d.cts +12 -2
- package/dist/lib/install-dependencies.d.cts.map +1 -0
- package/dist/lib/install-dependencies.d.mts +12 -2
- package/dist/lib/install-dependencies.d.mts.map +1 -0
- package/dist/lib/meta.d.cts +33 -2
- package/dist/lib/meta.d.cts.map +1 -0
- package/dist/lib/meta.d.mts +33 -2
- package/dist/lib/meta.d.mts.map +1 -0
- package/dist/lib/plugins.cjs +2 -2
- package/dist/lib/plugins.d.cts +39 -2
- package/dist/lib/plugins.d.cts.map +1 -0
- package/dist/lib/plugins.d.mts +39 -2
- package/dist/lib/plugins.d.mts.map +1 -0
- package/dist/lib/resolver.cjs +2 -2
- package/dist/lib/resolver.d.cts +20 -2
- package/dist/lib/resolver.d.cts.map +1 -0
- package/dist/lib/resolver.d.mts +20 -2
- package/dist/lib/resolver.d.mts.map +1 -0
- package/dist/lib/schemas.cjs +1 -1
- package/dist/lib/schemas.d.cts +1 -1
- package/dist/lib/schemas.d.mts +1 -1
- package/dist/lib/schemas.mjs +1 -1
- package/dist/lib/streaming-channel.d.cts +126 -2
- package/dist/lib/streaming-channel.d.cts.map +1 -0
- package/dist/lib/streaming-channel.d.mts +126 -2
- package/dist/lib/streaming-channel.d.mts.map +1 -0
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.mts +2 -2
- package/dist/lib/typescript/ts-morph.cjs +2 -2
- package/dist/lib/typescript/ts-morph.d.cts +38 -2
- package/dist/lib/typescript/ts-morph.d.cts.map +1 -0
- package/dist/lib/typescript/ts-morph.d.mts +38 -2
- package/dist/lib/typescript/ts-morph.d.mts.map +1 -0
- package/dist/lib/typescript/tsconfig.cjs +4 -4
- package/dist/lib/typescript/tsconfig.d.cts +77 -2
- package/dist/lib/typescript/tsconfig.d.cts.map +1 -0
- package/dist/lib/typescript/tsconfig.d.mts +77 -2
- package/dist/lib/typescript/tsconfig.d.mts.map +1 -0
- package/dist/lib/unplugin/helpers.d.cts +23 -2
- package/dist/lib/unplugin/helpers.d.cts.map +1 -0
- package/dist/lib/unplugin/helpers.d.mts +23 -2
- package/dist/lib/unplugin/helpers.d.mts.map +1 -0
- 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 +2 -2
- package/dist/lib/unplugin/module-resolution.d.cts +41 -2
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -0
- package/dist/lib/unplugin/module-resolution.d.mts +41 -2
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -0
- package/dist/lib/unplugin/plugin.d.cts +40 -2
- package/dist/lib/unplugin/plugin.d.cts.map +1 -0
- package/dist/lib/unplugin/plugin.d.mts +40 -2
- package/dist/lib/unplugin/plugin.d.mts.map +1 -0
- package/dist/lib/utilities/file-header.d.cts +41 -2
- package/dist/lib/utilities/file-header.d.cts.map +1 -0
- package/dist/lib/utilities/file-header.d.mts +41 -2
- package/dist/lib/utilities/file-header.d.mts.map +1 -0
- package/dist/lib/utilities/format.cjs +2 -2
- package/dist/lib/utilities/format.d.cts +24 -2
- package/dist/lib/utilities/format.d.cts.map +1 -0
- package/dist/lib/utilities/format.d.mts +24 -2
- package/dist/lib/utilities/format.d.mts.map +1 -0
- package/dist/lib/utilities/index.d.cts +5 -5
- package/dist/lib/utilities/index.d.mts +5 -5
- package/dist/lib/utilities/source-file.cjs +2 -2
- package/dist/lib/utilities/source-file.d.cts +30 -2
- package/dist/lib/utilities/source-file.d.cts.map +1 -0
- package/dist/lib/utilities/source-file.d.mts +30 -2
- package/dist/lib/utilities/source-file.d.mts.map +1 -0
- package/dist/lib/utilities/source-map.cjs +2 -2
- package/dist/lib/utilities/source-map.d.cts +16 -2
- package/dist/lib/utilities/source-map.d.cts.map +1 -0
- package/dist/lib/utilities/source-map.d.mts +16 -2
- package/dist/lib/utilities/source-map.d.mts.map +1 -0
- package/dist/lib/utilities/write-file.d.cts +15 -2
- package/dist/lib/utilities/write-file.d.cts.map +1 -0
- package/dist/lib/utilities/write-file.d.mts +15 -2
- package/dist/lib/utilities/write-file.d.mts.map +1 -0
- package/dist/lib/vfs.cjs +3 -3
- package/dist/lib/vfs.d.cts +321 -2
- package/dist/lib/vfs.d.cts.map +1 -0
- package/dist/lib/vfs.d.mts +321 -2
- package/dist/lib/vfs.d.mts.map +1 -0
- package/dist/lib/vfs.mjs +1 -1
- package/dist/plugin-base.d.cts +3 -1
- package/dist/plugin-base.d.cts.map +1 -1
- package/dist/plugin-base.d.mts +3 -1
- package/dist/plugin-base.d.mts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.cts +2 -1
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts +2 -1
- package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/combine-plugins.d.cts +1 -1
- package/dist/plugin-utils/combine-plugins.d.mts +1 -1
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +1 -1
- package/dist/plugin-utils/enable-plugin.d.cts +2 -1
- package/dist/plugin-utils/enable-plugin.d.cts.map +1 -1
- package/dist/plugin-utils/enable-plugin.d.mts +2 -1
- package/dist/plugin-utils/enable-plugin.d.mts.map +1 -1
- package/dist/plugin-utils/extend.d.cts +3 -1
- package/dist/plugin-utils/extend.d.cts.map +1 -1
- package/dist/plugin-utils/extend.d.mts +3 -1
- package/dist/plugin-utils/extend.d.mts.map +1 -1
- package/dist/plugin-utils/filter.cjs +2 -2
- package/dist/plugin-utils/filter.d.cts +1 -1
- package/dist/plugin-utils/filter.d.mts +1 -1
- package/dist/plugin-utils/format-package-json.d.cts +1 -1
- package/dist/plugin-utils/format-package-json.d.mts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.mts +1 -1
- package/dist/plugin-utils/helpers.d.cts +5 -1
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +5 -1
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/install.d.cts +1 -1
- package/dist/plugin-utils/install.d.mts +1 -1
- package/dist/plugin-utils/logging.cjs +2 -2
- package/dist/plugin-utils/logging.d.cts +3 -1
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +3 -1
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/merge.cjs +2 -2
- package/dist/plugin-utils/merge.d.cts +3 -1
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts +3 -1
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/modules.d.cts +1 -1
- package/dist/plugin-utils/modules.d.mts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.mts +1 -1
- package/dist/{fs-C2lru696.cjs → schemas/fs.cjs} +8 -38
- package/dist/{schemas-Zvqwdrw_.d.mts → schemas/fs.d.cts} +2 -2
- package/dist/schemas/fs.d.cts.map +1 -0
- package/dist/{schemas-Zvqwdrw_.d.cts → schemas/fs.d.mts} +2 -2
- package/dist/schemas/fs.d.mts.map +1 -0
- package/dist/{fs-DqLn15uU.mjs → schemas/fs.mjs} +2 -2
- package/dist/schemas/fs.mjs.map +1 -0
- package/dist/storage/base.d.cts +2 -1
- package/dist/storage/base.d.cts.map +1 -1
- package/dist/storage/base.d.mts +2 -1
- package/dist/storage/base.d.mts.map +1 -1
- package/dist/storage/file-system.d.cts +1 -1
- package/dist/storage/file-system.d.mts +1 -1
- package/dist/storage/virtual.d.cts +1 -1
- package/dist/storage/virtual.d.mts +1 -1
- package/dist/types/api.d.cts +16 -0
- package/dist/types/api.d.cts.map +1 -0
- package/dist/types/api.d.mts +16 -0
- package/dist/types/api.d.mts.map +1 -0
- package/dist/types/config.d.cts +739 -0
- package/dist/types/config.d.cts.map +1 -0
- package/dist/types/config.d.mts +739 -0
- package/dist/types/config.d.mts.map +1 -0
- package/dist/types/context.d.cts +682 -0
- package/dist/types/context.d.cts.map +1 -0
- package/dist/types/context.d.mts +682 -0
- package/dist/types/context.d.mts.map +1 -0
- package/dist/types/fs.d.cts +538 -0
- package/dist/types/fs.d.cts.map +1 -0
- package/dist/types/fs.d.mts +538 -0
- package/dist/types/fs.d.mts.map +1 -0
- package/dist/types/hooks.d.cts +96 -0
- package/dist/types/hooks.d.cts.map +1 -0
- package/dist/types/hooks.d.mts +96 -0
- package/dist/types/hooks.d.mts.map +1 -0
- package/dist/types/index.d.cts +9 -0
- package/dist/types/index.d.mts +9 -0
- package/dist/types/logging.d.cts +145 -0
- package/dist/types/logging.d.cts.map +1 -0
- package/dist/types/logging.d.mts +145 -0
- package/dist/types/logging.d.mts.map +1 -0
- package/dist/types/plugin.d.cts +207 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +207 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/tsconfig.d.cts +73 -0
- package/dist/types/tsconfig.d.cts.map +1 -0
- package/dist/types/tsconfig.d.mts +73 -0
- package/dist/types/tsconfig.d.mts.map +1 -0
- package/dist/types/unplugin.d.cts +22 -0
- package/dist/types/unplugin.d.cts.map +1 -0
- package/dist/types/unplugin.d.mts +22 -0
- package/dist/types/unplugin.d.mts.map +1 -0
- package/package.json +7 -7
- package/dist/api-DTCbbtSH.d.cts +0 -6
- package/dist/api-DTCbbtSH.d.cts.map +0 -1
- package/dist/api-DTCbbtSH.d.mts +0 -6
- package/dist/api-DTCbbtSH.d.mts.map +0 -1
- package/dist/base-context-BmxgDD3S.d.mts +0 -79
- package/dist/base-context-BmxgDD3S.d.mts.map +0 -1
- package/dist/base-context-mHoSEqHf.d.cts +0 -79
- package/dist/base-context-mHoSEqHf.d.cts.map +0 -1
- package/dist/commands-DzGd8pnR.d.cts +0 -5
- package/dist/commands-DzGd8pnR.d.cts.map +0 -1
- package/dist/commands-DzGd8pnR.d.mts +0 -5
- package/dist/commands-DzGd8pnR.d.mts.map +0 -1
- package/dist/config-BnV_o0Es.d.cts +0 -2461
- package/dist/config-BnV_o0Es.d.cts.map +0 -1
- package/dist/config-DKeDSykZ.d.cts +0 -138
- package/dist/config-DKeDSykZ.d.cts.map +0 -1
- package/dist/config-DbOP5nVu.d.mts +0 -138
- package/dist/config-DbOP5nVu.d.mts.map +0 -1
- package/dist/config-DboKmDhl.d.mts +0 -2461
- package/dist/config-DboKmDhl.d.mts.map +0 -1
- package/dist/context-C6oL3mPw.d.mts +0 -368
- package/dist/context-C6oL3mPw.d.mts.map +0 -1
- package/dist/context-DcY6YqBQ.d.cts +0 -368
- package/dist/context-DcY6YqBQ.d.cts.map +0 -1
- package/dist/context-helpers-BRt-Eq-v.d.mts +0 -15
- package/dist/context-helpers-BRt-Eq-v.d.mts.map +0 -1
- package/dist/context-helpers-Cnsku6fQ.d.cts +0 -15
- package/dist/context-helpers-Cnsku6fQ.d.cts.map +0 -1
- package/dist/devtools-h0du-bSj.d.cts +0 -13
- package/dist/devtools-h0du-bSj.d.cts.map +0 -1
- package/dist/devtools-h0du-bSj.d.mts +0 -13
- package/dist/devtools-h0du-bSj.d.mts.map +0 -1
- package/dist/entry-BC_V2K2U.d.cts +0 -46
- package/dist/entry-BC_V2K2U.d.cts.map +0 -1
- package/dist/entry-CHIaWcmk.d.mts +0 -46
- package/dist/entry-CHIaWcmk.d.mts.map +0 -1
- package/dist/environments-BYv_kHRG.d.cts +0 -10
- package/dist/environments-BYv_kHRG.d.cts.map +0 -1
- package/dist/environments-BYv_kHRG.d.mts +0 -10
- package/dist/environments-BYv_kHRG.d.mts.map +0 -1
- package/dist/events-NA1XM2Vz.d.cts +0 -10
- package/dist/events-NA1XM2Vz.d.cts.map +0 -1
- package/dist/events-NA1XM2Vz.d.mts +0 -10
- package/dist/events-NA1XM2Vz.d.mts.map +0 -1
- package/dist/extensions-ctxXzgay.d.cts +0 -5
- package/dist/extensions-ctxXzgay.d.cts.map +0 -1
- package/dist/extensions-ctxXzgay.d.mts +0 -5
- package/dist/extensions-ctxXzgay.d.mts.map +0 -1
- package/dist/file-header-Co9oo7aI.d.cts +0 -41
- package/dist/file-header-Co9oo7aI.d.cts.map +0 -1
- package/dist/file-header-rHqeXgRV.d.mts +0 -41
- package/dist/file-header-rHqeXgRV.d.mts.map +0 -1
- package/dist/format-Cf-cgZ-s.d.cts +0 -24
- package/dist/format-Cf-cgZ-s.d.cts.map +0 -1
- package/dist/format-IQPqgWIe.d.mts +0 -24
- package/dist/format-IQPqgWIe.d.mts.map +0 -1
- package/dist/fs-BzXT5ZPj.d.cts +0 -7
- package/dist/fs-BzXT5ZPj.d.cts.map +0 -1
- package/dist/fs-BzXT5ZPj.d.mts +0 -7
- package/dist/fs-BzXT5ZPj.d.mts.map +0 -1
- package/dist/fs-DqLn15uU.mjs.map +0 -1
- package/dist/generate-types-CDkVosrS.d.cts +0 -65
- package/dist/generate-types-CDkVosrS.d.cts.map +0 -1
- package/dist/generate-types-Dw6p3cB_.d.mts +0 -65
- package/dist/generate-types-Dw6p3cB_.d.mts.map +0 -1
- package/dist/helpers-CrRRFQl5.d.mts +0 -22
- package/dist/helpers-CrRRFQl5.d.mts.map +0 -1
- package/dist/helpers-DBLIQW3U.d.cts +0 -22
- package/dist/helpers-DBLIQW3U.d.cts.map +0 -1
- package/dist/hooks-Dhc3ahex.d.cts +0 -5
- package/dist/hooks-Dhc3ahex.d.cts.map +0 -1
- package/dist/hooks-Dhc3ahex.d.mts +0 -5
- package/dist/hooks-Dhc3ahex.d.mts.map +0 -1
- package/dist/index-BKZ67WMa.d.cts +0 -1
- package/dist/index-BKZ67WMa.d.mts +0 -1
- package/dist/index-BVVgDSdq.d.cts +0 -1
- package/dist/index-BVVgDSdq.d.mts +0 -1
- package/dist/index-Den-MsLx.d.cts +0 -1
- package/dist/index-Den-MsLx.d.mts +0 -1
- package/dist/index-DmtQKWjk.d.cts +0 -1
- package/dist/index-DmtQKWjk.d.mts +0 -1
- package/dist/index-LtpXjuJR.d.mts +0 -25
- package/dist/index-LtpXjuJR.d.mts.map +0 -1
- package/dist/index-_6s0AX1B.d.cts +0 -1
- package/dist/index-_6s0AX1B.d.mts +0 -1
- package/dist/index-xk4vSgtB.d.cts +0 -25
- package/dist/index-xk4vSgtB.d.cts.map +0 -1
- package/dist/install-dependencies-CCjZfS9Y.d.mts +0 -12
- package/dist/install-dependencies-CCjZfS9Y.d.mts.map +0 -1
- package/dist/install-dependencies-CyeYsrfz.d.cts +0 -12
- package/dist/install-dependencies-CyeYsrfz.d.cts.map +0 -1
- package/dist/log-level-BC8g4BBL.d.cts +0 -67
- package/dist/log-level-BC8g4BBL.d.cts.map +0 -1
- package/dist/log-level-BC8g4BBL.d.mts +0 -67
- package/dist/log-level-BC8g4BBL.d.mts.map +0 -1
- package/dist/meta-CdDd2ykC.d.cts +0 -33
- package/dist/meta-CdDd2ykC.d.cts.map +0 -1
- package/dist/meta-CfTCHU_o.d.mts +0 -33
- package/dist/meta-CfTCHU_o.d.mts.map +0 -1
- package/dist/meta-QA_SN1j3.d.cts +0 -6
- package/dist/meta-QA_SN1j3.d.cts.map +0 -1
- package/dist/meta-QA_SN1j3.d.mts +0 -6
- package/dist/meta-QA_SN1j3.d.mts.map +0 -1
- package/dist/module-resolution-CRMNPsdn.d.mts +0 -40
- package/dist/module-resolution-CRMNPsdn.d.mts.map +0 -1
- package/dist/module-resolution-D-w-EZaK.d.cts +0 -40
- package/dist/module-resolution-D-w-EZaK.d.cts.map +0 -1
- package/dist/plugin-B_b7XqaN.d.mts +0 -39
- package/dist/plugin-B_b7XqaN.d.mts.map +0 -1
- package/dist/plugin-CzV-aFwU.d.cts +0 -39
- package/dist/plugin-CzV-aFwU.d.cts.map +0 -1
- package/dist/plugin-fhBG7SSQ.d.cts +0 -9
- package/dist/plugin-fhBG7SSQ.d.cts.map +0 -1
- package/dist/plugin-fhBG7SSQ.d.mts +0 -9
- package/dist/plugin-fhBG7SSQ.d.mts.map +0 -1
- package/dist/plugins-DfL1fBZi.d.cts +0 -37
- package/dist/plugins-DfL1fBZi.d.cts.map +0 -1
- package/dist/plugins-zG2X2LA8.d.mts +0 -37
- package/dist/plugins-zG2X2LA8.d.mts.map +0 -1
- package/dist/resolver-CdBAh8dA.d.mts +0 -19
- package/dist/resolver-CdBAh8dA.d.mts.map +0 -1
- package/dist/resolver-CfCl--Eh.d.cts +0 -19
- package/dist/resolver-CfCl--Eh.d.cts.map +0 -1
- package/dist/schemas-Zvqwdrw_.d.cts.map +0 -1
- package/dist/schemas-Zvqwdrw_.d.mts.map +0 -1
- package/dist/source-file-CLw13fKE.d.mts +0 -30
- package/dist/source-file-CLw13fKE.d.mts.map +0 -1
- package/dist/source-file-CuuHaBL5.d.cts +0 -30
- package/dist/source-file-CuuHaBL5.d.cts.map +0 -1
- package/dist/source-map-Cy0aqSpe.d.mts +0 -16
- package/dist/source-map-Cy0aqSpe.d.mts.map +0 -1
- package/dist/source-map-HU4IoICc.d.cts +0 -16
- package/dist/source-map-HU4IoICc.d.cts.map +0 -1
- package/dist/streaming-channel-CiyFd_6l.d.cts +0 -126
- package/dist/streaming-channel-CiyFd_6l.d.cts.map +0 -1
- package/dist/streaming-channel-CiyFd_6l.d.mts +0 -126
- package/dist/streaming-channel-CiyFd_6l.d.mts.map +0 -1
- package/dist/ts-morph-BGgjbOgM.d.cts +0 -38
- package/dist/ts-morph-BGgjbOgM.d.cts.map +0 -1
- package/dist/ts-morph-zLvdifpA.d.mts +0 -38
- package/dist/ts-morph-zLvdifpA.d.mts.map +0 -1
- package/dist/tsconfig-DExoZEQ0.d.cts +0 -75
- package/dist/tsconfig-DExoZEQ0.d.cts.map +0 -1
- package/dist/tsconfig-De09cBeX.d.mts +0 -75
- package/dist/tsconfig-De09cBeX.d.mts.map +0 -1
- package/dist/vfs-B9Vhnajc.d.cts +0 -320
- package/dist/vfs-B9Vhnajc.d.cts.map +0 -1
- package/dist/vfs-Dl6nPqdS.d.mts +0 -320
- package/dist/vfs-Dl6nPqdS.d.mts.map +0 -1
- package/dist/write-file-BVMnXVPo.d.cts +0 -15
- package/dist/write-file-BVMnXVPo.d.cts.map +0 -1
- package/dist/write-file-CWf9Xxwd.d.mts +0 -15
- package/dist/write-file-CWf9Xxwd.d.mts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
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;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tB,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"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { PLUGIN_NON_HOOK_FIELDS } from "../constants/plugin.mjs";
|
|
2
|
+
import { BaseCommandType } from "./api.mjs";
|
|
3
|
+
import { UnpluginBuilderVariant, UnpluginOptions as UnpluginOptions$1 } from "./unplugin.mjs";
|
|
4
|
+
import { BuildPluginContext, PluginContext, ResolveResult, UnresolvedContext } from "./context.mjs";
|
|
5
|
+
import { EnvironmentConfig, PluginConfig, ResolvedEnvironmentConfig } from "./config.mjs";
|
|
6
|
+
import { HookFilter, TransformResult } from "unplugin";
|
|
7
|
+
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
8
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
|
|
11
|
+
//#region src/types/plugin.d.ts
|
|
12
|
+
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
13
|
+
/**
|
|
14
|
+
* The order in which the plugin should be applied.
|
|
15
|
+
*/
|
|
16
|
+
order?: "pre" | "post" | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* A filter to determine when the hook should be called.
|
|
19
|
+
*/
|
|
20
|
+
filter?: Pick<HookFilter, TFilter>;
|
|
21
|
+
/**
|
|
22
|
+
* The hook function to be called.
|
|
23
|
+
*/
|
|
24
|
+
handler: THookFunction;
|
|
25
|
+
}
|
|
26
|
+
type PluginHook<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
|
|
27
|
+
/**
|
|
28
|
+
* A result returned by the plugin from the `types` hook that describes the declaration types output file.
|
|
29
|
+
*/
|
|
30
|
+
interface TypesResult {
|
|
31
|
+
directives?: string[];
|
|
32
|
+
code: string;
|
|
33
|
+
}
|
|
34
|
+
interface Hooks<TContext extends PluginContext> {
|
|
35
|
+
/**
|
|
36
|
+
* A function that returns configuration options to be merged with the build context's options.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
|
|
40
|
+
*
|
|
41
|
+
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
|
|
42
|
+
*
|
|
43
|
+
* @see https://vitejs.dev/guide/api-plugin#config
|
|
44
|
+
*
|
|
45
|
+
* @param this - The build context.
|
|
46
|
+
* @param config - The partial configuration object to be modified.
|
|
47
|
+
* @returns A promise that resolves to a partial configuration object.
|
|
48
|
+
*/
|
|
49
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>;
|
|
50
|
+
/**
|
|
51
|
+
* Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* This hook is called for each environment with a partially resolved environment config that already accounts for the default environment config values set at the root level. If plugins need to modify the config of a given environment, they should do it in this hook instead of the config hook. Leaving the config hook only for modifying the root default environment config.
|
|
55
|
+
*
|
|
56
|
+
* @see https://vitejs.dev/guide/api-plugin#configenvironment
|
|
57
|
+
*
|
|
58
|
+
* @param this - The build context.
|
|
59
|
+
* @param name - The name of the environment being configured.
|
|
60
|
+
* @param environment - The Vite-like environment object containing information about the current build environment.
|
|
61
|
+
* @returns A promise that resolves when the hook is complete.
|
|
62
|
+
*/
|
|
63
|
+
configEnvironment: (this: TContext, name: string, environment: EnvironmentConfig) => MaybePromise<Partial<ResolvedEnvironmentConfig> | undefined | null>;
|
|
64
|
+
/**
|
|
65
|
+
* A hook that is called when the plugin is resolved.
|
|
66
|
+
*
|
|
67
|
+
* @see https://vitejs.dev/guide/api-plugin#configresolved
|
|
68
|
+
*
|
|
69
|
+
* @param this - The build context.
|
|
70
|
+
* @returns A promise that resolves when the hook is complete.
|
|
71
|
+
*/
|
|
72
|
+
configResolved: (this: TContext) => MaybePromise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* A hook that is called to overwrite the generated declaration types file (.d.ts). The generated type definitions should describe the built-in modules/logic added during the `prepare` task.
|
|
75
|
+
*
|
|
76
|
+
* @param this - The build context.
|
|
77
|
+
* @param code - The source code to generate types for.
|
|
78
|
+
* @returns A promise that resolves when the hook is complete.
|
|
79
|
+
*/
|
|
80
|
+
types: (this: TContext, code: string) => MaybePromise<TypesResult | string | undefined | null>;
|
|
81
|
+
/**
|
|
82
|
+
* A hook that is called at the start of the build process.
|
|
83
|
+
*
|
|
84
|
+
* @param this - The build context and unplugin build context.
|
|
85
|
+
* @returns A promise that resolves when the hook is complete.
|
|
86
|
+
*/
|
|
87
|
+
buildStart: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* A hook that is called at the end of the build process.
|
|
90
|
+
*
|
|
91
|
+
* @param this - The build context and unplugin build context.
|
|
92
|
+
* @returns A promise that resolves when the hook is complete.
|
|
93
|
+
*/
|
|
94
|
+
buildEnd: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* A hook that is called to transform the source code.
|
|
97
|
+
*
|
|
98
|
+
* @param this - The build context, unplugin build context, and unplugin context.
|
|
99
|
+
* @param code - The source code to transform.
|
|
100
|
+
* @param id - The identifier of the source code.
|
|
101
|
+
* @returns A promise that resolves when the hook is complete.
|
|
102
|
+
*/
|
|
103
|
+
transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
|
|
104
|
+
/**
|
|
105
|
+
* A hook that is called to load the source code.
|
|
106
|
+
*
|
|
107
|
+
* @param this - The build context, unplugin build context, and unplugin context.
|
|
108
|
+
* @param id - The identifier of the source code.
|
|
109
|
+
* @returns A promise that resolves when the hook is complete.
|
|
110
|
+
*/
|
|
111
|
+
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<LoadResult>;
|
|
112
|
+
/**
|
|
113
|
+
* A hook that is called to resolve the identifier of the source code.
|
|
114
|
+
*
|
|
115
|
+
* @param this - The build context, unplugin build context, and unplugin context.
|
|
116
|
+
* @param id - The identifier of the source code.
|
|
117
|
+
* @param importer - The importer of the source code.
|
|
118
|
+
* @param options - The options for resolving the identifier.
|
|
119
|
+
* @returns A promise that resolves when the hook is complete.
|
|
120
|
+
*/
|
|
121
|
+
resolveId: (this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
122
|
+
isEntry: boolean;
|
|
123
|
+
}) => MaybePromise<string | ResolveResult | null | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* A hook that is called to write the bundle to disk.
|
|
126
|
+
*
|
|
127
|
+
* @param this - The build context.
|
|
128
|
+
* @returns A promise that resolves when the hook is complete.
|
|
129
|
+
*/
|
|
130
|
+
writeBundle: (this: TContext) => MaybePromise<void>;
|
|
131
|
+
}
|
|
132
|
+
type HookFunctions<TContext extends PluginContext> = { [TCommandType in BaseCommandType]: (this: TContext) => MaybePromise<void> } & Hooks<TContext>;
|
|
133
|
+
type DeepPartial$1<T> = { [K in keyof T]?: DeepPartial$1<T[K]> };
|
|
134
|
+
type InferPluginHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? PluginHook<HookFunctions<TContext>[TKey], TKey & keyof HookFilter> : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: InferPluginHookFunction<TContext, `${TKey}:${K & string}`> } : never : never;
|
|
135
|
+
type PluginHooks<TContext extends PluginContext> = { [TKey in keyof HookFunctions<TContext>]?: InferPluginHookFunction<TContext, TKey> } & {
|
|
136
|
+
types?: PluginHook<HookFunctions<TContext>["types"], never>;
|
|
137
|
+
transform?: PluginHook<HookFunctions<TContext>["transform"], "code" | "id">;
|
|
138
|
+
load?: PluginHook<HookFunctions<TContext>["load"], "id">;
|
|
139
|
+
resolveId?: PluginHook<HookFunctions<TContext>["resolveId"], "id">;
|
|
140
|
+
};
|
|
141
|
+
interface BasePlugin<TContext extends PluginContext> {
|
|
142
|
+
/**
|
|
143
|
+
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
144
|
+
*/
|
|
145
|
+
name: string;
|
|
146
|
+
/**
|
|
147
|
+
* An API object that can be used for inter-plugin communication.
|
|
148
|
+
*
|
|
149
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
150
|
+
*/
|
|
151
|
+
api?: Record<string, any>;
|
|
152
|
+
/**
|
|
153
|
+
* Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* The Plugin invocation order is as follows:
|
|
157
|
+
* - `enforce: 'pre'` plugins
|
|
158
|
+
* - `order: 'pre'` plugin hooks
|
|
159
|
+
* - any other plugins (normal)
|
|
160
|
+
* - `order: 'post'` plugin hooks
|
|
161
|
+
* - `enforce: 'post'` plugins
|
|
162
|
+
*
|
|
163
|
+
* @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering
|
|
164
|
+
* @see https://rollupjs.org/plugin-development/#build-hooks
|
|
165
|
+
* @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post
|
|
166
|
+
* @see https://esbuild.github.io/plugins/#concepts
|
|
167
|
+
*/
|
|
168
|
+
enforce?: "pre" | "post";
|
|
169
|
+
/**
|
|
170
|
+
* A function to determine if two plugins are the same and can be de-duplicated.
|
|
171
|
+
*
|
|
172
|
+
* @remarks
|
|
173
|
+
* If this is not provided, plugins are de-duplicated by comparing their names.
|
|
174
|
+
*
|
|
175
|
+
* @param other - The other plugin to compare against.
|
|
176
|
+
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
177
|
+
*/
|
|
178
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
179
|
+
/**
|
|
180
|
+
* Define environments where this plugin should be active. By default, the plugin is active in all environments.
|
|
181
|
+
*
|
|
182
|
+
* @param environment - The environment to check.
|
|
183
|
+
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
184
|
+
*/
|
|
185
|
+
applyToEnvironment?: (environment: ResolvedEnvironmentConfig) => boolean | PluginConfig<any>;
|
|
186
|
+
/**
|
|
187
|
+
* A function that returns configuration options to be merged with the build context's options.
|
|
188
|
+
*
|
|
189
|
+
* @remarks
|
|
190
|
+
* Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
|
|
191
|
+
*
|
|
192
|
+
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
|
|
193
|
+
*
|
|
194
|
+
* @see https://vitejs.dev/guide/api-plugin#config
|
|
195
|
+
*
|
|
196
|
+
* @param this - The build context.
|
|
197
|
+
* @param config - The partial configuration object to be modified.
|
|
198
|
+
* @returns A promise that resolves to a partial configuration object.
|
|
199
|
+
*/
|
|
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
|
+
}
|
|
202
|
+
type Plugin<TContext extends PluginContext> = Partial<PluginHooks<TContext>> & BasePlugin<TContext> & Pick<UnpluginOptions$1<TContext>, UnpluginBuilderVariant>;
|
|
203
|
+
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>;
|
|
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
|
+
//#endregion
|
|
206
|
+
export { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult };
|
|
207
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","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,MAAA;EA7B9B;;;;;;;;AAEmC;AAK3D;;;;EAqCE,iBAAA,GACE,IAAA,EAAM,QAAA,EACN,IAAA,UACA,WAAA,EAAa,iBAAA,KACV,YAAA,CAAa,OAAA,CAAQ,y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,iCAER,aAAA,CAAc,QAAA,EAAU,IAAA,QAAY,IAAA,IAAQ,CAAA,oBAClD,aAAA,CAAc,QAAA,EAAU,IAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
2
|
+
import ts from "typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/types/tsconfig.d.ts
|
|
5
|
+
type ReflectionMode = "default" | "explicit" | "never";
|
|
6
|
+
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
12
|
+
* - `minimal` - Only the essential type information is captured.
|
|
13
|
+
* - `default` - Additional type information is captured, including some contextual data.
|
|
14
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data.
|
|
15
|
+
* - `all` - All available type information is captured, including detailed contextual data.
|
|
16
|
+
*/
|
|
17
|
+
type Level = "minimal" | "default" | "extended" | "all";
|
|
18
|
+
interface DeepkitOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
21
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
22
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
23
|
+
*/
|
|
24
|
+
reflection?: RawReflectionMode;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
30
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
31
|
+
* - `default` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
32
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
33
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
34
|
+
*/
|
|
35
|
+
level?: Level;
|
|
36
|
+
}
|
|
37
|
+
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
38
|
+
/**
|
|
39
|
+
* The TypeScript compiler configuration.
|
|
40
|
+
*
|
|
41
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
42
|
+
*/
|
|
43
|
+
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
44
|
+
/**
|
|
45
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
46
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
47
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
48
|
+
*/
|
|
49
|
+
reflection?: RawReflectionMode;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
55
|
+
* - `minimal` - Only the essential type information is captured.
|
|
56
|
+
* - `default` - Additional type information is captured, including some contextual data.
|
|
57
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data.
|
|
58
|
+
* - `all` - All available type information is captured, including detailed contextual data.
|
|
59
|
+
*/
|
|
60
|
+
level?: Level;
|
|
61
|
+
/**
|
|
62
|
+
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
63
|
+
*/
|
|
64
|
+
compilerOptions?: TSCompilerOptions;
|
|
65
|
+
}
|
|
66
|
+
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
67
|
+
originalTsconfigJson: TsConfigJson;
|
|
68
|
+
tsconfigJson: TSConfig;
|
|
69
|
+
tsconfigFilePath: string;
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig };
|
|
73
|
+
//# sourceMappingURL=tsconfig.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
3
|
+
|
|
4
|
+
//#region src/types/tsconfig.d.ts
|
|
5
|
+
type ReflectionMode = "default" | "explicit" | "never";
|
|
6
|
+
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
12
|
+
* - `minimal` - Only the essential type information is captured.
|
|
13
|
+
* - `default` - Additional type information is captured, including some contextual data.
|
|
14
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data.
|
|
15
|
+
* - `all` - All available type information is captured, including detailed contextual data.
|
|
16
|
+
*/
|
|
17
|
+
type Level = "minimal" | "default" | "extended" | "all";
|
|
18
|
+
interface DeepkitOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
21
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
22
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
23
|
+
*/
|
|
24
|
+
reflection?: RawReflectionMode;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
30
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
31
|
+
* - `default` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
32
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
33
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
34
|
+
*/
|
|
35
|
+
level?: Level;
|
|
36
|
+
}
|
|
37
|
+
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
38
|
+
/**
|
|
39
|
+
* The TypeScript compiler configuration.
|
|
40
|
+
*
|
|
41
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
42
|
+
*/
|
|
43
|
+
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
44
|
+
/**
|
|
45
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
46
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
47
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
48
|
+
*/
|
|
49
|
+
reflection?: RawReflectionMode;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
55
|
+
* - `minimal` - Only the essential type information is captured.
|
|
56
|
+
* - `default` - Additional type information is captured, including some contextual data.
|
|
57
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data.
|
|
58
|
+
* - `all` - All available type information is captured, including detailed contextual data.
|
|
59
|
+
*/
|
|
60
|
+
level?: Level;
|
|
61
|
+
/**
|
|
62
|
+
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
63
|
+
*/
|
|
64
|
+
compilerOptions?: TSCompilerOptions;
|
|
65
|
+
}
|
|
66
|
+
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
67
|
+
originalTsconfigJson: TsConfigJson;
|
|
68
|
+
tsconfigJson: TSConfig;
|
|
69
|
+
tsconfigFilePath: string;
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig };
|
|
73
|
+
//# sourceMappingURL=tsconfig.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PluginContext, UnresolvedContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
2
|
+
import { UnpluginOptions } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/types/unplugin.d.ts
|
|
5
|
+
type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
|
|
6
|
+
type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
|
|
7
|
+
interface UnpluginOptions$1<TContext extends UnresolvedContext> extends UnpluginOptions {
|
|
8
|
+
/**
|
|
9
|
+
* An API object that can be used for inter-plugin communication.
|
|
10
|
+
*
|
|
11
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
12
|
+
*/
|
|
13
|
+
context: TContext;
|
|
14
|
+
}
|
|
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 | {
|
|
16
|
+
handler: infer THandler;
|
|
17
|
+
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
18
|
+
handler: infer THandlerFunction;
|
|
19
|
+
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions$1 as UnpluginOptions };
|
|
22
|
+
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PluginContext, UnresolvedContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
2
|
+
import { UnpluginOptions } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/types/unplugin.d.ts
|
|
5
|
+
type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
|
|
6
|
+
type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
|
|
7
|
+
interface UnpluginOptions$1<TContext extends UnresolvedContext> extends UnpluginOptions {
|
|
8
|
+
/**
|
|
9
|
+
* An API object that can be used for inter-plugin communication.
|
|
10
|
+
*
|
|
11
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
12
|
+
*/
|
|
13
|
+
context: TContext;
|
|
14
|
+
}
|
|
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 | {
|
|
16
|
+
handler: infer THandler;
|
|
17
|
+
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
18
|
+
handler: infer THandlerFunction;
|
|
19
|
+
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BuilderVariant, UnpluginBuilderVariant, UnpluginHookFunctions, UnpluginOptions$1 as UnpluginOptions };
|
|
22
|
+
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/core",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.33",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
|
|
6
6
|
"homepage": "https://stormsoftware.com",
|
|
@@ -329,17 +329,17 @@
|
|
|
329
329
|
"@rolldown/pluginutils": "1.0.0-rc.18",
|
|
330
330
|
"@storm-software/config": "^1.137.69",
|
|
331
331
|
"@storm-software/config-tools": "^1.190.37",
|
|
332
|
-
"@stryke/capnp": "^0.12.
|
|
332
|
+
"@stryke/capnp": "^0.12.109",
|
|
333
333
|
"@stryke/convert": "^0.7.13",
|
|
334
|
-
"@stryke/env": "^0.20.
|
|
335
|
-
"@stryke/fs": "^0.33.
|
|
336
|
-
"@stryke/hash": "^0.13.
|
|
334
|
+
"@stryke/env": "^0.20.100",
|
|
335
|
+
"@stryke/fs": "^0.33.83",
|
|
336
|
+
"@stryke/hash": "^0.13.36",
|
|
337
337
|
"@stryke/helpers": "^0.10.22",
|
|
338
338
|
"@stryke/json": "^0.15.6",
|
|
339
339
|
"@stryke/path": "^0.29.9",
|
|
340
340
|
"@stryke/string-format": "^0.17.24",
|
|
341
341
|
"@stryke/type-checks": "^0.6.15",
|
|
342
|
-
"@stryke/unique-id": "^0.3.
|
|
342
|
+
"@stryke/unique-id": "^0.3.94",
|
|
343
343
|
"birpc": "^4.0.0",
|
|
344
344
|
"bundle-require": "^5.1.0",
|
|
345
345
|
"c12": "^3.3.4",
|
|
@@ -375,5 +375,5 @@
|
|
|
375
375
|
"undici-types": "^7.26.0"
|
|
376
376
|
},
|
|
377
377
|
"publishConfig": { "access": "public" },
|
|
378
|
-
"gitHead": "
|
|
378
|
+
"gitHead": "f4ad7ee552b89cc860cb1cc2e56b20a5b779620d"
|
|
379
379
|
}
|
package/dist/api-DTCbbtSH.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region src/constants/api.d.ts
|
|
2
|
-
declare const BASE_EXECUTION_API_METHODS: readonly ["create", "clean", "prepare", "lint", "test", "build", "docs", "deploy"];
|
|
3
|
-
declare const EXECUTION_API_METHODS: readonly ["types", "create", "clean", "prepare", "lint", "test", "build", "docs", "deploy"];
|
|
4
|
-
//#endregion
|
|
5
|
-
export { EXECUTION_API_METHODS as n, BASE_EXECUTION_API_METHODS as t };
|
|
6
|
-
//# sourceMappingURL=api-DTCbbtSH.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-DTCbbtSH.d.cts","names":[],"sources":["../src/constants/api.ts"],"mappings":";cAkBa,0BAAA;AAAA,cAWA,qBAAA"}
|
package/dist/api-DTCbbtSH.d.mts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region src/constants/api.d.ts
|
|
2
|
-
declare const BASE_EXECUTION_API_METHODS: readonly ["create", "clean", "prepare", "lint", "test", "build", "docs", "deploy"];
|
|
3
|
-
declare const EXECUTION_API_METHODS: readonly ["types", "create", "clean", "prepare", "lint", "test", "build", "docs", "deploy"];
|
|
4
|
-
//#endregion
|
|
5
|
-
export { EXECUTION_API_METHODS as n, BASE_EXECUTION_API_METHODS as t };
|
|
6
|
-
//# sourceMappingURL=api-DTCbbtSH.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-DTCbbtSH.d.mts","names":[],"sources":["../src/constants/api.ts"],"mappings":";cAkBa,0BAAA;AAAA,cAWA,qBAAA"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { It as LoggerOptions, K as BaseContext, Nt as Logger, Tt as LogFn, jt as LogMessage, y as Options } from "./config-DboKmDhl.mjs";
|
|
2
|
-
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
3
|
-
|
|
4
|
-
//#region src/context/base-context.d.ts
|
|
5
|
-
declare abstract class PowerlinesBaseContext<TSystemContext = unknown> implements BaseContext<TSystemContext> {
|
|
6
|
-
#private;
|
|
7
|
-
options: Options;
|
|
8
|
-
powerlinesPath: string;
|
|
9
|
-
system: TSystemContext;
|
|
10
|
-
abstract get envPaths(): EnvPaths;
|
|
11
|
-
get logger(): Logger;
|
|
12
|
-
get cwd(): string;
|
|
13
|
-
get timestamp(): number;
|
|
14
|
-
/**
|
|
15
|
-
* Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.
|
|
16
|
-
*
|
|
17
|
-
* @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.
|
|
18
|
-
*/
|
|
19
|
-
protected constructor(options: Options);
|
|
20
|
-
abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;
|
|
21
|
-
extendLogger(options: LoggerOptions): Logger;
|
|
22
|
-
/**
|
|
23
|
-
* A logging function for fatal messages
|
|
24
|
-
*
|
|
25
|
-
* @param message - The message to log.
|
|
26
|
-
*/
|
|
27
|
-
fatal(message: string | LogMessage | Error): void;
|
|
28
|
-
/**
|
|
29
|
-
* A logging function for error messages
|
|
30
|
-
*
|
|
31
|
-
* @param message - The message to log.
|
|
32
|
-
*/
|
|
33
|
-
error(message: string | LogMessage | Error): void;
|
|
34
|
-
/**
|
|
35
|
-
* A logging function for warning messages
|
|
36
|
-
*
|
|
37
|
-
* @param message - The message to log.
|
|
38
|
-
*/
|
|
39
|
-
warn(message: string | LogMessage): void;
|
|
40
|
-
/**
|
|
41
|
-
* A logging function for informational messages
|
|
42
|
-
*
|
|
43
|
-
* @param message - The message to log.
|
|
44
|
-
*/
|
|
45
|
-
info(message: string | LogMessage): void;
|
|
46
|
-
/**
|
|
47
|
-
* A logging function for debug messages
|
|
48
|
-
*
|
|
49
|
-
* @param message - The message to log.
|
|
50
|
-
*/
|
|
51
|
-
debug(message: string | LogMessage): void;
|
|
52
|
-
/**
|
|
53
|
-
* A logging function for trace messages
|
|
54
|
-
*
|
|
55
|
-
* @param message - The message to log.
|
|
56
|
-
*/
|
|
57
|
-
trace(message: string | LogMessage): void;
|
|
58
|
-
/**
|
|
59
|
-
* A function to create a timer for measuring the duration of asynchronous operations
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const stopTimer = context.timer("Your Async Operation");
|
|
64
|
-
* await performAsyncOperation();
|
|
65
|
-
* stopTimer(); // "Your Async Operation completed in 123.45 milliseconds"
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @param name - The name of the timer.
|
|
69
|
-
* @returns A function that, when called, stops the timer and logs the duration.
|
|
70
|
-
*/
|
|
71
|
-
timer(name: string): () => void;
|
|
72
|
-
/**
|
|
73
|
-
* Initialize the context with the provided configuration options
|
|
74
|
-
*/
|
|
75
|
-
protected init(): Promise<void>;
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
export { PowerlinesBaseContext as t };
|
|
79
|
-
//# sourceMappingURL=base-context-BmxgDD3S.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-context-BmxgDD3S.d.mts","names":[],"sources":["../src/context/base-context.ts"],"mappings":";;;;uBA0BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,IAAY,QAAA;EAAA,IAErB,MAAA,IAAU,MAAA;EAAA,IAIV,GAAA;EAAA,IAIA,SAAA;EAW4B;;;;;EAAA,UAF9B,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EA0BE;;;;;EAjBrC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EAvCjC;;;;;EAwDJ,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;;;;;;EAiBrC,IAAA,CAAK,OAAA,WAAkB,UAAA;EAlEV;;;;;EA2Eb,IAAA,CAAK,OAAA,WAAkB,UAAA;EAxDrB;;;;;EAiEF,KAAA,CAAM,OAAA,WAAkB,UAAA;EA/D+B;;;;;EAwEvD,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEW;;;;;;;;;;;;;EAuFnC,KAAA,CAAM,IAAA;EAnCD;;;EAAA,UAyDI,IAAA,IAAI,OAAA;AAAA"}
|