@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
|
@@ -1,2 +1,126 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { EventEmitter } from "devframe/types";
|
|
2
|
+
|
|
3
|
+
//#region src/lib/streaming-channel.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Serialized error shape sent over the wire when a stream ends with a failure.
|
|
6
|
+
* Stays JSON-safe so the strict-JSON encoder can carry it without coercion.
|
|
7
|
+
*/
|
|
8
|
+
interface StreamErrorPayload {
|
|
9
|
+
name: string;
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Single buffered chunk in the server-side ring buffer.
|
|
14
|
+
*
|
|
15
|
+
* Sequence numbers start at 1 and increment per write. Subscribers track
|
|
16
|
+
* `lastSeenSeq` and ask for `afterSeq` on resubscribe so the server can
|
|
17
|
+
* replay any chunks the client missed during a brief disconnect.
|
|
18
|
+
*/
|
|
19
|
+
interface BufferedChunk<T> {
|
|
20
|
+
seq: number;
|
|
21
|
+
chunk: T;
|
|
22
|
+
}
|
|
23
|
+
interface StreamSinkEvents<T> {
|
|
24
|
+
/** Fired for each `write()`. The RPC layer subscribes and broadcasts. */
|
|
25
|
+
chunk: (seq: number, chunk: T) => void;
|
|
26
|
+
/** Terminal — fired exactly once per sink lifetime. */
|
|
27
|
+
end: (error?: StreamErrorPayload) => void;
|
|
28
|
+
}
|
|
29
|
+
interface CreateStreamSinkOptions {
|
|
30
|
+
id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Size of the per-stream ring buffer kept for replay-on-resubscribe.
|
|
33
|
+
* `0` (default) disables replay.
|
|
34
|
+
*/
|
|
35
|
+
replayWindow?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Server-side producer handle. Two equivalent surfaces share one piece of
|
|
39
|
+
* state: the imperative `write/error/close` triple, and a `WritableStream<T>`
|
|
40
|
+
* for `pipeTo`-style consumption.
|
|
41
|
+
*/
|
|
42
|
+
interface StreamSink<T> {
|
|
43
|
+
/** Stable id used by clients to subscribe. */
|
|
44
|
+
readonly id: string;
|
|
45
|
+
/**
|
|
46
|
+
* Aborts when the consumer cancels (server-side) or when the transport
|
|
47
|
+
* loses every subscriber. Producers should poll `signal.aborted` and exit
|
|
48
|
+
* cleanly.
|
|
49
|
+
*/
|
|
50
|
+
readonly signal: AbortSignal;
|
|
51
|
+
/** `true` after `close()` / `error()`. Further writes throw. */
|
|
52
|
+
readonly closed: boolean;
|
|
53
|
+
/** Last allocated sequence number. `0` until the first write. */
|
|
54
|
+
readonly lastSeq: number;
|
|
55
|
+
write: (chunk: T) => void;
|
|
56
|
+
error: (reason: unknown) => void;
|
|
57
|
+
close: () => void;
|
|
58
|
+
/** External-cancel path. Aborts the signal so handlers can short-circuit. */
|
|
59
|
+
abort: (reason?: unknown) => void;
|
|
60
|
+
/** `WritableStream<T>` adapter — same in-memory state as the imperative API. */
|
|
61
|
+
readonly writable: WritableStream<T>;
|
|
62
|
+
/**
|
|
63
|
+
* Internal — RPC layer subscribes to receive chunk/end notifications.
|
|
64
|
+
* Not part of the public contract; do not call directly.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
readonly events: EventEmitter<StreamSinkEvents<T>>;
|
|
69
|
+
/**
|
|
70
|
+
* Internal — replay buffer. RPC layer reads on (re)subscribe to feed
|
|
71
|
+
* missed chunks before going live.
|
|
72
|
+
*
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
readonly buffer: ReadonlyArray<BufferedChunk<T>>;
|
|
76
|
+
}
|
|
77
|
+
interface CreateStreamReaderOptions {
|
|
78
|
+
id?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Maximum number of buffered chunks held client-side while the consumer
|
|
81
|
+
* isn't draining. On overflow, the oldest chunk is dropped.
|
|
82
|
+
*/
|
|
83
|
+
highWaterMark?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Called when the chunk queue overflows the high-water mark. The RPC
|
|
86
|
+
* layer wires this to a coded warning; the primitive itself is
|
|
87
|
+
* RPC-agnostic.
|
|
88
|
+
*/
|
|
89
|
+
onOverflow?: (dropped: number) => void;
|
|
90
|
+
/** Called when the consumer cancels — the RPC layer sends `:cancel` upstream. */
|
|
91
|
+
onCancel?: () => void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Client-side consumer handle. Both an `AsyncIterable<T>` (for `for await`)
|
|
95
|
+
* and exposes `readable: ReadableStream<T>` (for `pipeTo`). Pick one — they
|
|
96
|
+
* share a single internal queue, so concurrent draining will race.
|
|
97
|
+
*/
|
|
98
|
+
interface StreamReader<T> extends AsyncIterable<T> {
|
|
99
|
+
readonly id: string;
|
|
100
|
+
readonly cancelled: boolean;
|
|
101
|
+
readonly done: boolean;
|
|
102
|
+
/** Highest `seq` observed. Used for replay on reconnect. */
|
|
103
|
+
readonly lastSeenSeq: number;
|
|
104
|
+
/** `ReadableStream<T>` adapter for `pipeTo`-style consumption. */
|
|
105
|
+
readonly readable: ReadableStream<T>;
|
|
106
|
+
cancel: () => void;
|
|
107
|
+
/** @internal */
|
|
108
|
+
_push: (seq: number, chunk: T) => void;
|
|
109
|
+
/** @internal */
|
|
110
|
+
_end: (error?: StreamErrorPayload) => void;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Build a server-side stream sink. RPC-agnostic — the RPC host wires
|
|
114
|
+
* `events.on('chunk' | 'end')` to broadcast, and reads `buffer` to replay
|
|
115
|
+
* for late or reconnecting subscribers.
|
|
116
|
+
*/
|
|
117
|
+
declare function createStreamSink<T>(options?: CreateStreamSinkOptions): StreamSink<T>;
|
|
118
|
+
/**
|
|
119
|
+
* Build a client-side stream reader. RPC-agnostic — the RPC host calls
|
|
120
|
+
* `_push(seq, chunk)` on each incoming chunk and `_end(error?)` on the
|
|
121
|
+
* terminal frame. Consumers iterate with `for await` or pipe `readable`.
|
|
122
|
+
*/
|
|
123
|
+
declare function createStreamReader<T>(options?: CreateStreamReaderOptions): StreamReader<T>;
|
|
124
|
+
//#endregion
|
|
125
|
+
export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
|
|
126
|
+
//# sourceMappingURL=streaming-channel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming-channel.d.mts","names":[],"sources":["../../src/lib/streaming-channel.ts"],"mappings":";;;;;AA0BA;;UAAiB,kBAAA;EACf,IAAA;EACA,OAAO;AAAA;;;;;;;;UAUQ,aAAA;EACf,GAAA;EACA,KAAA,EAAO,CAAC;AAAA;AAAA,UAGO,gBAAA;EAIiB;EAFhC,KAAA,GAAQ,GAAA,UAAa,KAAA,EAAO,CAAA;EAA5B;EAEA,GAAA,GAAM,KAAA,GAAQ,kBAAkB;AAAA;AAAA,UAGjB,uBAAA;EACf,EAAA;EAJc;;;AAAkB;EAShC,YAAY;AAAA;;;AAAA;AAQd;;UAAiB,UAAA;EAQE;EAAA,SANR,EAAA;EAmByB;;;;;EAAA,SAbzB,MAAA,EAAQ,WAAA;EA6Bc;EAAA,SA3BtB,MAAA;EA2BqB;EAAA,SAzBrB,OAAA;EAET,KAAA,GAAQ,KAAA,EAAO,CAAA;EACf,KAAA,GAAQ,MAAA;EACR,KAAA;EARiB;EAUjB,KAAA,GAAQ,MAAA;EANC;EAAA,SASA,QAAA,EAAU,cAAA,CAAe,CAAA;EAPnB;;;;;;EAAA,SAeN,MAAA,EAAQ,YAAA,CAAa,gBAAA,CAAiB,CAAA;EARtC;;;;;;EAAA,SAgBA,MAAA,EAAQ,aAAA,CAAc,aAAA,CAAc,CAAA;AAAA;AAAA,UAG9B,yBAAA;EACf,EAAA;EAJ6C;;AAAC;AAGhD;EAME,aAAA;;;;;;EAMA,UAAA,IAAc,OAAA;EAEd;EAAA,QAAA;AAAA;AAQF;;;;;AAAA,UAAiB,YAAA,YAAwB,aAAA,CAAc,CAAA;EAAA,SAC5C,EAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;EAH2C;EAAA,SAK3C,WAAA;EALmB;EAAA,SAOnB,QAAA,EAAU,cAAA,CAAe,CAAA;EAElC,MAAA;EARS;EAWT,KAAA,GAAQ,GAAA,UAAa,KAAA,EAAO,CAAA;EATnB;EAWT,IAAA,GAAO,KAAA,GAAQ,kBAAA;AAAA;;;;;;iBAcD,gBAAA,IACd,OAAA,GAAS,uBAAA,GACR,UAAA,CAAW,CAAA;;;;;;iBA+EE,kBAAA,IACd,OAAA,GAAS,yBAAA,GACR,YAAA,CAAa,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { VirtualFileSystemHost, createProgram } from "./ts-morph.cjs";
|
|
2
|
+
import { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath } from "./tsconfig.cjs";
|
|
3
3
|
export { VirtualFileSystemHost, createProgram, findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { VirtualFileSystemHost, createProgram } from "./ts-morph.mjs";
|
|
2
|
+
import { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath } from "./tsconfig.mjs";
|
|
3
3
|
export { VirtualFileSystemHost, createProgram, findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let defu = require("defu");
|
|
4
|
-
defu =
|
|
4
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
5
5
|
let ts_morph = require("ts-morph");
|
|
6
6
|
|
|
7
7
|
//#region src/lib/typescript/ts-morph.ts
|
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Context } from "../../types/context.cjs";
|
|
2
|
+
import { FileSystemHost, InMemoryFileSystemHost, Project, ProjectOptions, RuntimeDirEntry } from "ts-morph";
|
|
3
|
+
|
|
4
|
+
//#region src/lib/typescript/ts-morph.d.ts
|
|
5
|
+
declare class VirtualFileSystemHost extends InMemoryFileSystemHost implements FileSystemHost {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(context: Context);
|
|
8
|
+
deleteSync(path: string): void;
|
|
9
|
+
readDirSync(dirPath: string): RuntimeDirEntry[];
|
|
10
|
+
readFile(filePath: string): Promise<string>;
|
|
11
|
+
readFileSync(filePath: string): string;
|
|
12
|
+
writeFile(filePath: string, fileText: string): Promise<void>;
|
|
13
|
+
writeFileSync(filePath: string, fileText: string): void;
|
|
14
|
+
mkdir(dirPath: string): Promise<void>;
|
|
15
|
+
mkdirSync(dirPath: string): void;
|
|
16
|
+
move(srcPath: string, destPath: string): Promise<void>;
|
|
17
|
+
moveSync(srcPath: string, destPath: string): void;
|
|
18
|
+
copy(srcPath: string, destPath: string): Promise<void>;
|
|
19
|
+
copySync(srcPath: string, destPath: string): void;
|
|
20
|
+
fileExists(filePath: string): Promise<boolean>;
|
|
21
|
+
fileExistsSync(filePath: string): boolean;
|
|
22
|
+
directoryExists(dirPath: string): Promise<boolean>;
|
|
23
|
+
directoryExistsSync(dirPath: string): boolean;
|
|
24
|
+
realpathSync(path: string): string;
|
|
25
|
+
getCurrentDirectory(): string;
|
|
26
|
+
glob(patterns: ReadonlyArray<string>): Promise<string[]>;
|
|
27
|
+
globSync(patterns: ReadonlyArray<string>): string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Create a ts-morph {@link Project} instance used for type reflection and module manipulation during processing
|
|
31
|
+
*
|
|
32
|
+
* @param context - The Powerlines context
|
|
33
|
+
* @returns A ts-morph {@link Project} instance
|
|
34
|
+
*/
|
|
35
|
+
declare function createProgram(context: Context, override: Partial<ProjectOptions>): Project;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { VirtualFileSystemHost, createProgram };
|
|
38
|
+
//# sourceMappingURL=ts-morph.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts-morph.d.cts","names":[],"sources":["../../../src/lib/typescript/ts-morph.ts"],"mappings":";;;;cA6Ba,qBAAA,SACH,sBAAA,YACG,cAAA;EAAA;cAIQ,OAAA,EAAS,OAAA;EAMZ,UAAA,CAAW,IAAA;EAIX,WAAA,CAAY,OAAA,WAAkB,eAAA;EAoBxB,QAAA,CAAS,QAAA,WAAgB,OAAA;EAQ/B,YAAA,CAAa,QAAA;EAQP,SAAA,CAAU,QAAA,UAAkB,QAAA,WAAgB,OAAA;EAIlD,aAAA,CAAc,QAAA,UAAkB,QAAA;EAI1B,KAAA,CAAM,OAAA,WAAe,OAAA;EAI3B,SAAA,CAAU,OAAA;EAIJ,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,UAAA,CAAW,QAAA,WAAgB,OAAA;EAIjC,cAAA,CAAe,QAAA;EAIT,eAAA,CAAgB,OAAA,WAAe,OAAA;EAIrC,mBAAA,CAAoB,OAAA;EAIpB,YAAA,CAAa,IAAA;EAIb,mBAAA;EAIM,IAAA,CACpB,QAAA,EAAU,aAAA,WACT,OAAA;EAIa,QAAA,CAAS,QAAA,EAAU,aAAA;AAAA;;;;;;;iBAWrB,aAAA,CACd,OAAA,EAAS,OAAA,EACT,QAAA,EAAU,OAAA,CAAQ,cAAA,IACjB,OAAA"}
|
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Context } from "../../types/context.mjs";
|
|
2
|
+
import { FileSystemHost, InMemoryFileSystemHost, Project, ProjectOptions, RuntimeDirEntry } from "ts-morph";
|
|
3
|
+
|
|
4
|
+
//#region src/lib/typescript/ts-morph.d.ts
|
|
5
|
+
declare class VirtualFileSystemHost extends InMemoryFileSystemHost implements FileSystemHost {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(context: Context);
|
|
8
|
+
deleteSync(path: string): void;
|
|
9
|
+
readDirSync(dirPath: string): RuntimeDirEntry[];
|
|
10
|
+
readFile(filePath: string): Promise<string>;
|
|
11
|
+
readFileSync(filePath: string): string;
|
|
12
|
+
writeFile(filePath: string, fileText: string): Promise<void>;
|
|
13
|
+
writeFileSync(filePath: string, fileText: string): void;
|
|
14
|
+
mkdir(dirPath: string): Promise<void>;
|
|
15
|
+
mkdirSync(dirPath: string): void;
|
|
16
|
+
move(srcPath: string, destPath: string): Promise<void>;
|
|
17
|
+
moveSync(srcPath: string, destPath: string): void;
|
|
18
|
+
copy(srcPath: string, destPath: string): Promise<void>;
|
|
19
|
+
copySync(srcPath: string, destPath: string): void;
|
|
20
|
+
fileExists(filePath: string): Promise<boolean>;
|
|
21
|
+
fileExistsSync(filePath: string): boolean;
|
|
22
|
+
directoryExists(dirPath: string): Promise<boolean>;
|
|
23
|
+
directoryExistsSync(dirPath: string): boolean;
|
|
24
|
+
realpathSync(path: string): string;
|
|
25
|
+
getCurrentDirectory(): string;
|
|
26
|
+
glob(patterns: ReadonlyArray<string>): Promise<string[]>;
|
|
27
|
+
globSync(patterns: ReadonlyArray<string>): string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Create a ts-morph {@link Project} instance used for type reflection and module manipulation during processing
|
|
31
|
+
*
|
|
32
|
+
* @param context - The Powerlines context
|
|
33
|
+
* @returns A ts-morph {@link Project} instance
|
|
34
|
+
*/
|
|
35
|
+
declare function createProgram(context: Context, override: Partial<ProjectOptions>): Project;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { VirtualFileSystemHost, createProgram };
|
|
38
|
+
//# sourceMappingURL=ts-morph.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts-morph.d.mts","names":[],"sources":["../../../src/lib/typescript/ts-morph.ts"],"mappings":";;;;cA6Ba,qBAAA,SACH,sBAAA,YACG,cAAA;EAAA;cAIQ,OAAA,EAAS,OAAA;EAMZ,UAAA,CAAW,IAAA;EAIX,WAAA,CAAY,OAAA,WAAkB,eAAA;EAoBxB,QAAA,CAAS,QAAA,WAAgB,OAAA;EAQ/B,YAAA,CAAa,QAAA;EAQP,SAAA,CAAU,QAAA,UAAkB,QAAA,WAAgB,OAAA;EAIlD,aAAA,CAAc,QAAA,UAAkB,QAAA;EAI1B,KAAA,CAAM,OAAA,WAAe,OAAA;EAI3B,SAAA,CAAU,OAAA;EAIJ,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,UAAA,CAAW,QAAA,WAAgB,OAAA;EAIjC,cAAA,CAAe,QAAA;EAIT,eAAA,CAAgB,OAAA,WAAe,OAAA;EAIrC,mBAAA,CAAoB,OAAA;EAIpB,YAAA,CAAa,IAAA;EAIb,mBAAA;EAIM,IAAA,CACpB,QAAA,EAAU,aAAA,WACT,OAAA;EAIa,QAAA,CAAS,QAAA,EAAU,aAAA;AAAA;;;;;;;iBAWrB,aAAA,CACd,OAAA,EAAS,OAAA,EACT,QAAA,EAAU,OAAA,CAAQ,cAAA,IACjB,OAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let _stryke_fs_exists = require("@stryke/fs/exists");
|
|
4
4
|
let _stryke_fs_json = require("@stryke/fs/json");
|
|
5
5
|
let _stryke_path_append = require("@stryke/path/append");
|
|
6
6
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
7
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
8
8
|
let defu = require("defu");
|
|
9
|
-
defu =
|
|
9
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
10
10
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
11
11
|
let chalk = require("chalk");
|
|
12
|
-
chalk =
|
|
12
|
+
chalk = require_runtime.__toESM(chalk, 1);
|
|
13
13
|
let _stryke_fs_package_fns = require("@stryke/fs/package-fns");
|
|
14
14
|
let _donedeal0_superdiff = require("@donedeal0/superdiff");
|
|
15
15
|
let _stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
16
16
|
let typescript = require("typescript");
|
|
17
|
-
typescript =
|
|
17
|
+
typescript = require_runtime.__toESM(typescript, 1);
|
|
18
18
|
|
|
19
19
|
//#region src/lib/typescript/tsconfig.ts
|
|
20
20
|
function getTsconfigDtsPath(context) {
|
|
@@ -1,2 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ParsedTypeScriptConfig, TSConfig } from "../../types/tsconfig.cjs";
|
|
2
|
+
import { EnvironmentContext } from "../../types/context.cjs";
|
|
3
|
+
import { ResolvedConfig } from "../../types/config.cjs";
|
|
4
|
+
import { FilterPattern } from "@stryke/types/file";
|
|
5
|
+
import ts from "typescript";
|
|
6
|
+
|
|
7
|
+
//#region src/lib/typescript/tsconfig.d.ts
|
|
8
|
+
declare function getTsconfigDtsPath<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown>(context: EnvironmentContext<TResolvedConfig, TSystemContext>): string;
|
|
9
|
+
declare function initializeTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
|
|
10
|
+
declare function resolveTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the path to the tsconfig.json file.
|
|
13
|
+
*
|
|
14
|
+
* @param cwd - The root directory of the workspace.
|
|
15
|
+
* @param root - The root directory of the project.
|
|
16
|
+
* @param tsconfig - The path to the tsconfig.json file.
|
|
17
|
+
* @returns The absolute path to the tsconfig.json file.
|
|
18
|
+
* @throws If the tsconfig.json file does not exist.
|
|
19
|
+
*/
|
|
20
|
+
declare function getTsconfigFilePath(cwd: string, root: string, tsconfig?: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Get the path to the tsconfig.json file.
|
|
23
|
+
*
|
|
24
|
+
* @param cwd - The root directory of the workspace.
|
|
25
|
+
* @param root - The root directory of the project.
|
|
26
|
+
* @param tsconfig - The path to the tsconfig.json file.
|
|
27
|
+
* @returns The absolute path to the tsconfig.json file.
|
|
28
|
+
* @throws If the tsconfig.json file does not exist.
|
|
29
|
+
*/
|
|
30
|
+
declare function tryTsconfigFilePath(cwd: string, root: string, tsconfig: string): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
33
|
+
*
|
|
34
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
35
|
+
* @param types - An array of type names to check against.
|
|
36
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
declare function findMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[], extensions?: string[]): string | RegExp | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
41
|
+
*
|
|
42
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
43
|
+
* @param types - An array of type names to check against.
|
|
44
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
45
|
+
*/
|
|
46
|
+
declare function findIncludeMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): string | RegExp | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
49
|
+
*
|
|
50
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
51
|
+
* @param types - An array of type names to check against.
|
|
52
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
53
|
+
*/
|
|
54
|
+
declare function isMatchFound(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
57
|
+
*
|
|
58
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
59
|
+
* @param types - An array of type names to check against.
|
|
60
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
declare function isIncludeMatchFound(tsconfigType: FilterPattern, types: FilterPattern[]): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Get the parsed TypeScript configuration.
|
|
65
|
+
*
|
|
66
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
67
|
+
* @param projectRoot - The root directory of the project.
|
|
68
|
+
* @param tsconfig - The path to the tsconfig.json file.
|
|
69
|
+
* @param tsconfigRaw - The raw tsconfig.json content.
|
|
70
|
+
* @param originalTsconfigJson - The original tsconfig.json content.
|
|
71
|
+
* @param host - The TypeScript parse config host.
|
|
72
|
+
* @returns The resolved TypeScript configuration.
|
|
73
|
+
*/
|
|
74
|
+
declare function getParsedTypeScriptConfig(workspaceRoot: string, projectRoot: string, tsconfig?: string, tsconfigRaw?: TSConfig, originalTsconfigJson?: TSConfig, host?: ts.ParseConfigHost): ParsedTypeScriptConfig;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
|
|
77
|
+
//# sourceMappingURL=tsconfig.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsconfig.d.cts","names":[],"sources":["../../../src/lib/typescript/tsconfig.ts"],"mappings":";;;;;;;iBAyCgB,kBAAA,yBACU,cAAA,GAAiB,cAAA,4BAEzC,OAAA,EAAS,kBAAA,CAAmB,eAAA,EAAiB,cAAA;AAAA,iBAiJzB,kBAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;AAAA,iBA2CA,eAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;;;;;;;;;;iBA+GN,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;;AAxT4D;iBA2V9C,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;iBAuBc,SAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,YACjB,UAAA,uBACU,MAAA;;;;;;;;iBAkCI,gBAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,sBACP,MAAA;;;;;;;;iBAuCI,YAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAM;;;;;;AAjTI;AA2C7B;iBAkRgB,mBAAA,CACd,YAAA,EAAc,aAAA,EACd,KAAA,EAAO,aAAa;;;;;;;;;;;;iBAqBN,yBAAA,CACd,aAAA,UACA,WAAA,UACA,QAAA,WACA,WAAA,GAAa,QAAA,EACb,oBAAA,GAAuB,QAAA,EACvB,IAAA,GAAM,EAAA,CAAG,eAAA,GACR,sBAAA"}
|
|
@@ -1,2 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ParsedTypeScriptConfig, TSConfig } from "../../types/tsconfig.mjs";
|
|
2
|
+
import { EnvironmentContext } from "../../types/context.mjs";
|
|
3
|
+
import { ResolvedConfig } from "../../types/config.mjs";
|
|
4
|
+
import ts from "typescript";
|
|
5
|
+
import { FilterPattern } from "@stryke/types/file";
|
|
6
|
+
|
|
7
|
+
//#region src/lib/typescript/tsconfig.d.ts
|
|
8
|
+
declare function getTsconfigDtsPath<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown>(context: EnvironmentContext<TResolvedConfig, TSystemContext>): string;
|
|
9
|
+
declare function initializeTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
|
|
10
|
+
declare function resolveTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the path to the tsconfig.json file.
|
|
13
|
+
*
|
|
14
|
+
* @param cwd - The root directory of the workspace.
|
|
15
|
+
* @param root - The root directory of the project.
|
|
16
|
+
* @param tsconfig - The path to the tsconfig.json file.
|
|
17
|
+
* @returns The absolute path to the tsconfig.json file.
|
|
18
|
+
* @throws If the tsconfig.json file does not exist.
|
|
19
|
+
*/
|
|
20
|
+
declare function getTsconfigFilePath(cwd: string, root: string, tsconfig?: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Get the path to the tsconfig.json file.
|
|
23
|
+
*
|
|
24
|
+
* @param cwd - The root directory of the workspace.
|
|
25
|
+
* @param root - The root directory of the project.
|
|
26
|
+
* @param tsconfig - The path to the tsconfig.json file.
|
|
27
|
+
* @returns The absolute path to the tsconfig.json file.
|
|
28
|
+
* @throws If the tsconfig.json file does not exist.
|
|
29
|
+
*/
|
|
30
|
+
declare function tryTsconfigFilePath(cwd: string, root: string, tsconfig: string): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
33
|
+
*
|
|
34
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
35
|
+
* @param types - An array of type names to check against.
|
|
36
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
declare function findMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[], extensions?: string[]): string | RegExp | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
41
|
+
*
|
|
42
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
43
|
+
* @param types - An array of type names to check against.
|
|
44
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
45
|
+
*/
|
|
46
|
+
declare function findIncludeMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): string | RegExp | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
49
|
+
*
|
|
50
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
51
|
+
* @param types - An array of type names to check against.
|
|
52
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
53
|
+
*/
|
|
54
|
+
declare function isMatchFound(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Check if the TypeScript configuration type matches any of the provided types.
|
|
57
|
+
*
|
|
58
|
+
* @param tsconfigType - The type from the TypeScript configuration.
|
|
59
|
+
* @param types - An array of type names to check against.
|
|
60
|
+
* @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
declare function isIncludeMatchFound(tsconfigType: FilterPattern, types: FilterPattern[]): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Get the parsed TypeScript configuration.
|
|
65
|
+
*
|
|
66
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
67
|
+
* @param projectRoot - The root directory of the project.
|
|
68
|
+
* @param tsconfig - The path to the tsconfig.json file.
|
|
69
|
+
* @param tsconfigRaw - The raw tsconfig.json content.
|
|
70
|
+
* @param originalTsconfigJson - The original tsconfig.json content.
|
|
71
|
+
* @param host - The TypeScript parse config host.
|
|
72
|
+
* @returns The resolved TypeScript configuration.
|
|
73
|
+
*/
|
|
74
|
+
declare function getParsedTypeScriptConfig(workspaceRoot: string, projectRoot: string, tsconfig?: string, tsconfigRaw?: TSConfig, originalTsconfigJson?: TSConfig, host?: ts.ParseConfigHost): ParsedTypeScriptConfig;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
|
|
77
|
+
//# sourceMappingURL=tsconfig.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsconfig.d.mts","names":[],"sources":["../../../src/lib/typescript/tsconfig.ts"],"mappings":";;;;;;;iBAyCgB,kBAAA,yBACU,cAAA,GAAiB,cAAA,4BAEzC,OAAA,EAAS,kBAAA,CAAmB,eAAA,EAAiB,cAAA;AAAA,iBAiJzB,kBAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;AAAA,iBA2CA,eAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;;;;;;;;;;iBA+GN,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;;AAxT4D;iBA2V9C,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;iBAuBc,SAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,YACjB,UAAA,uBACU,MAAA;;;;;;;;iBAkCI,gBAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,sBACP,MAAA;;;;;;;;iBAuCI,YAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAM;;;;;;AAjTI;AA2C7B;iBAkRgB,mBAAA,CACd,YAAA,EAAc,aAAA,EACd,KAAA,EAAO,aAAa;;;;;;;;;;;;iBAqBN,yBAAA,CACd,aAAA,UACA,WAAA,UACA,QAAA,WACA,WAAA,GAAa,QAAA,EACb,oBAAA,GAAuB,QAAA,EACvB,IAAA,GAAM,EAAA,CAAG,eAAA,GACR,sBAAA"}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UnpluginBuilderVariant } from "../../types/unplugin.cjs";
|
|
2
|
+
import { UnresolvedContext } from "../../types/context.cjs";
|
|
3
|
+
import { UnpluginBuildContext } from "unplugin";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/unplugin/helpers.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Merges a base plugin context with an unplugin context, combining their properties.
|
|
8
|
+
*
|
|
9
|
+
* @param contextA - The base plugin context to merge into.
|
|
10
|
+
* @param contextB - The unplugin context to merge from.
|
|
11
|
+
* @returns The merged context.
|
|
12
|
+
*/
|
|
13
|
+
declare function combineContexts<TContextA extends UnresolvedContext | UnpluginBuildContext, TContextB extends UnresolvedContext | UnpluginBuildContext>(contextA: TContextA, contextB: TContextB): TContextA & TContextB;
|
|
14
|
+
/**
|
|
15
|
+
* Checks if a value is a valid UnpluginBuilderVariant.
|
|
16
|
+
*
|
|
17
|
+
* @param str - The value to check.
|
|
18
|
+
* @returns True if the value is a UnpluginBuilderVariant, false otherwise.
|
|
19
|
+
*/
|
|
20
|
+
declare function isUnpluginBuilderVariant(str: unknown): str is UnpluginBuilderVariant;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { combineContexts, isUnpluginBuilderVariant };
|
|
23
|
+
//# sourceMappingURL=helpers.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../../src/lib/unplugin/helpers.ts"],"mappings":";;;;;;;AAgCA;;;;;iBAAgB,eAAA,mBACI,iBAAA,GAAoB,oBAAA,oBACpB,iBAAA,GAAoB,oBAAA,EACtC,QAAA,EAAU,SAAA,EAAW,QAAA,EAAU,SAAA,GAAY,SAAA,GAAY,SAAA;;;;;;;iBAUzC,wBAAA,CACd,GAAA,YACC,GAAA,IAAO,sBAAsB"}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UnpluginBuilderVariant } from "../../types/unplugin.mjs";
|
|
2
|
+
import { UnresolvedContext } from "../../types/context.mjs";
|
|
3
|
+
import { UnpluginBuildContext } from "unplugin";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/unplugin/helpers.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Merges a base plugin context with an unplugin context, combining their properties.
|
|
8
|
+
*
|
|
9
|
+
* @param contextA - The base plugin context to merge into.
|
|
10
|
+
* @param contextB - The unplugin context to merge from.
|
|
11
|
+
* @returns The merged context.
|
|
12
|
+
*/
|
|
13
|
+
declare function combineContexts<TContextA extends UnresolvedContext | UnpluginBuildContext, TContextB extends UnresolvedContext | UnpluginBuildContext>(contextA: TContextA, contextB: TContextB): TContextA & TContextB;
|
|
14
|
+
/**
|
|
15
|
+
* Checks if a value is a valid UnpluginBuilderVariant.
|
|
16
|
+
*
|
|
17
|
+
* @param str - The value to check.
|
|
18
|
+
* @returns True if the value is a UnpluginBuilderVariant, false otherwise.
|
|
19
|
+
*/
|
|
20
|
+
declare function isUnpluginBuilderVariant(str: unknown): str is UnpluginBuilderVariant;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { combineContexts, isUnpluginBuilderVariant };
|
|
23
|
+
//# sourceMappingURL=helpers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../src/lib/unplugin/helpers.ts"],"mappings":";;;;;;;AAgCA;;;;;iBAAgB,eAAA,mBACI,iBAAA,GAAoB,oBAAA,oBACpB,iBAAA,GAAoB,oBAAA,EACtC,QAAA,EAAU,SAAA,EAAW,QAAA,EAAU,SAAA,GAAY,SAAA,GAAY,SAAA;;;;;;;iBAUzC,wBAAA,CACd,GAAA,YACC,GAAA,IAAO,sBAAsB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { combineContexts, isUnpluginBuilderVariant } from "./helpers.cjs";
|
|
2
|
+
import { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./module-resolution.cjs";
|
|
3
|
+
import { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./plugin.cjs";
|
|
4
4
|
export { CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, isUnpluginBuilderVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { combineContexts, isUnpluginBuilderVariant } from "./helpers.mjs";
|
|
2
|
+
import { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./module-resolution.mjs";
|
|
3
|
+
import { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./plugin.mjs";
|
|
4
4
|
export { CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, isUnpluginBuilderVariant };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_plugin_utils_virtual = require('../../plugin-utils/virtual.cjs');
|
|
4
4
|
require('../../plugin-utils/index.cjs');
|
|
5
5
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
6
6
|
let defu = require("defu");
|
|
7
|
-
defu =
|
|
7
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
8
8
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
9
9
|
|
|
10
10
|
//#region src/lib/unplugin/module-resolution.ts
|
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ResolveOptions } from "../../types/fs.cjs";
|
|
2
|
+
import { UnresolvedContext } from "../../types/context.cjs";
|
|
3
|
+
import { UnpluginOptions } from "unplugin";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/unplugin/module-resolution.d.ts
|
|
6
|
+
interface CreateUnpluginModuleResolutionFunctionsOptions {
|
|
7
|
+
/**
|
|
8
|
+
* An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* - If set to `true`, virtual module IDs will be prefixed with the string `__powerlines-virtual:`.
|
|
12
|
+
* - If set to `false`, no prefix will be added to virtual module IDs.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue true
|
|
15
|
+
*/
|
|
16
|
+
prefix?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Optional overrides for the module resolution configuration.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* This allows you to customize the behavior of the module resolution hooks by providing specific configuration options.
|
|
22
|
+
*/
|
|
23
|
+
overrides?: Partial<ResolveOptions>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This includes the `resolveId` and `load` hooks.
|
|
30
|
+
*
|
|
31
|
+
* @see https://rollupjs.org/plugin-development/#resolveid
|
|
32
|
+
* @see https://rollupjs.org/plugin-development/#load
|
|
33
|
+
*
|
|
34
|
+
* @param context - The plugin context.
|
|
35
|
+
* @param options - Options for creating the module resolution functions.
|
|
36
|
+
* @returns The module resolution hooks (`resolveId` and `load`).
|
|
37
|
+
*/
|
|
38
|
+
declare function createUnpluginModuleResolutionFunctions<TContext extends UnresolvedContext>(context: TContext, options?: CreateUnpluginModuleResolutionFunctionsOptions): Pick<UnpluginOptions, "resolveId" | "load">;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions };
|
|
41
|
+
//# sourceMappingURL=module-resolution.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-resolution.d.cts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"mappings":";;;;;UAmCiB,8CAAA;;AAAjB;;;;;;;;EAUE,MAAA;EAQkC;AAgBpC;;;;;EAhBE,SAAA,GAAY,OAAO,CAAC,cAAA;AAAA;;;;;;;;;;;;;AAqBC;iBALP,uCAAA,kBACG,iBAAA,EAEjB,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,8CAAA,GACR,IAAA,CAAK,eAAA"}
|