@powerlines/core 0.48.28 → 0.48.30
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/api-DTCbbtSH.d.cts +6 -0
- package/dist/api-DTCbbtSH.d.cts.map +1 -0
- package/dist/api-DTCbbtSH.d.mts +6 -0
- package/dist/api-DTCbbtSH.d.mts.map +1 -0
- package/dist/base-context-BmxgDD3S.d.mts +79 -0
- package/dist/base-context-BmxgDD3S.d.mts.map +1 -0
- package/dist/base-context-mHoSEqHf.d.cts +79 -0
- package/dist/base-context-mHoSEqHf.d.cts.map +1 -0
- package/dist/{_virtual/_rolldown/runtime.cjs → chunk-C_NdSu1c.cjs} +6 -23
- package/dist/commands-DzGd8pnR.d.cts +5 -0
- package/dist/commands-DzGd8pnR.d.cts.map +1 -0
- package/dist/commands-DzGd8pnR.d.mts +5 -0
- package/dist/commands-DzGd8pnR.d.mts.map +1 -0
- package/dist/config-BnV_o0Es.d.cts +2461 -0
- package/dist/config-BnV_o0Es.d.cts.map +1 -0
- package/dist/config-DKeDSykZ.d.cts +138 -0
- package/dist/config-DKeDSykZ.d.cts.map +1 -0
- package/dist/config-DbOP5nVu.d.mts +138 -0
- package/dist/config-DbOP5nVu.d.mts.map +1 -0
- package/dist/config-DboKmDhl.d.mts +2461 -0
- package/dist/config-DboKmDhl.d.mts.map +1 -0
- package/dist/constants/api.cjs +0 -8
- package/dist/constants/api.d.cts +2 -6
- package/dist/constants/api.d.mts +2 -8
- package/dist/constants/api.mjs +0 -8
- package/dist/constants/api.mjs.map +1 -1
- package/dist/constants/commands.cjs +0 -8
- package/dist/constants/commands.d.cts +2 -5
- package/dist/constants/commands.d.mts +2 -7
- package/dist/constants/commands.mjs +0 -8
- package/dist/constants/commands.mjs.map +1 -1
- package/dist/constants/devtools.cjs +0 -8
- package/dist/constants/devtools.d.cts +2 -13
- package/dist/constants/devtools.d.mts +2 -15
- package/dist/constants/devtools.mjs +0 -8
- package/dist/constants/devtools.mjs.map +1 -1
- package/dist/constants/environments.cjs +0 -8
- package/dist/constants/environments.d.cts +2 -10
- package/dist/constants/environments.d.mts +2 -12
- package/dist/constants/environments.mjs +0 -8
- package/dist/constants/environments.mjs.map +1 -1
- package/dist/constants/extensions.cjs +0 -8
- package/dist/constants/extensions.d.cts +2 -5
- package/dist/constants/extensions.d.mts +2 -7
- package/dist/constants/extensions.mjs +0 -8
- package/dist/constants/extensions.mjs.map +1 -1
- package/dist/constants/fs.cjs +0 -8
- package/dist/constants/fs.d.cts +2 -7
- package/dist/constants/fs.d.mts +2 -9
- package/dist/constants/fs.mjs +0 -8
- package/dist/constants/fs.mjs.map +1 -1
- package/dist/constants/hooks.cjs +0 -8
- package/dist/constants/hooks.d.cts +2 -5
- package/dist/constants/hooks.d.mts +2 -7
- package/dist/constants/hooks.mjs +0 -8
- package/dist/constants/hooks.mjs.map +1 -1
- package/dist/constants/index.cjs +0 -8
- package/dist/constants/index.d.cts +10 -10
- package/dist/constants/index.d.mts +10 -12
- package/dist/constants/index.mjs +0 -8
- package/dist/constants/log-level.cjs +0 -8
- package/dist/constants/log-level.d.cts +2 -67
- package/dist/constants/log-level.d.mts +2 -69
- package/dist/constants/log-level.mjs +0 -8
- package/dist/constants/log-level.mjs.map +1 -1
- package/dist/constants/meta.cjs +0 -8
- package/dist/constants/meta.d.cts +2 -6
- package/dist/constants/meta.d.mts +2 -8
- package/dist/constants/meta.mjs +0 -8
- package/dist/constants/meta.mjs.map +1 -1
- package/dist/constants/plugin.cjs +0 -8
- package/dist/constants/plugin.d.cts +2 -9
- package/dist/constants/plugin.d.mts +2 -11
- package/dist/constants/plugin.mjs +0 -8
- package/dist/constants/plugin.mjs.map +1 -1
- package/dist/context/base-context.cjs +3 -18
- package/dist/context/base-context.d.cts +2 -81
- package/dist/context/base-context.d.mts +2 -83
- package/dist/context/base-context.mjs +1 -11
- package/dist/context/base-context.mjs.map +1 -1
- package/dist/context/context.cjs +3 -18
- package/dist/context/context.d.cts +2 -373
- package/dist/context/context.d.mts +2 -375
- package/dist/context/context.mjs +1 -11
- package/dist/context/context.mjs.map +1 -1
- package/dist/context/environment-context.cjs +1 -17
- package/dist/context/environment-context.d.cts +2 -5
- package/dist/context/environment-context.d.cts.map +1 -1
- package/dist/context/environment-context.d.mts +2 -7
- package/dist/context/environment-context.d.mts.map +1 -1
- package/dist/context/environment-context.mjs +1 -11
- package/dist/context/environment-context.mjs.map +1 -1
- package/dist/context/execution-context.cjs +3 -18
- package/dist/context/execution-context.d.cts +2 -6
- package/dist/context/execution-context.d.cts.map +1 -1
- package/dist/context/execution-context.d.mts +2 -8
- package/dist/context/execution-context.d.mts.map +1 -1
- package/dist/context/execution-context.mjs +1 -11
- package/dist/context/execution-context.mjs.map +1 -1
- package/dist/context/index.cjs +0 -8
- package/dist/context/index.d.cts +2 -2
- package/dist/context/index.d.mts +2 -4
- package/dist/context/index.mjs +0 -8
- package/dist/context/plugin-context.cjs +1 -17
- package/dist/context/plugin-context.d.cts +1 -3
- package/dist/context/plugin-context.d.cts.map +1 -1
- package/dist/context/plugin-context.d.mts +1 -5
- package/dist/context/plugin-context.d.mts.map +1 -1
- package/dist/context/plugin-context.mjs +1 -11
- package/dist/context/plugin-context.mjs.map +1 -1
- package/dist/context-C6oL3mPw.d.mts +368 -0
- package/dist/context-C6oL3mPw.d.mts.map +1 -0
- package/dist/context-DcY6YqBQ.d.cts +368 -0
- package/dist/context-DcY6YqBQ.d.cts.map +1 -0
- package/dist/context-helpers-BRt-Eq-v.d.mts +15 -0
- package/dist/context-helpers-BRt-Eq-v.d.mts.map +1 -0
- package/dist/context-helpers-Cnsku6fQ.d.cts +15 -0
- package/dist/context-helpers-Cnsku6fQ.d.cts.map +1 -0
- package/dist/devtools-h0du-bSj.d.cts +13 -0
- package/dist/devtools-h0du-bSj.d.cts.map +1 -0
- package/dist/devtools-h0du-bSj.d.mts +13 -0
- package/dist/devtools-h0du-bSj.d.mts.map +1 -0
- package/dist/entry-BC_V2K2U.d.cts +46 -0
- package/dist/entry-BC_V2K2U.d.cts.map +1 -0
- package/dist/entry-CHIaWcmk.d.mts +46 -0
- package/dist/entry-CHIaWcmk.d.mts.map +1 -0
- package/dist/environments-BYv_kHRG.d.cts +10 -0
- package/dist/environments-BYv_kHRG.d.cts.map +1 -0
- package/dist/environments-BYv_kHRG.d.mts +10 -0
- package/dist/environments-BYv_kHRG.d.mts.map +1 -0
- package/dist/events-NA1XM2Vz.d.cts +10 -0
- package/dist/events-NA1XM2Vz.d.cts.map +1 -0
- package/dist/events-NA1XM2Vz.d.mts +10 -0
- package/dist/events-NA1XM2Vz.d.mts.map +1 -0
- package/dist/extensions-ctxXzgay.d.cts +5 -0
- package/dist/extensions-ctxXzgay.d.cts.map +1 -0
- package/dist/extensions-ctxXzgay.d.mts +5 -0
- package/dist/extensions-ctxXzgay.d.mts.map +1 -0
- package/dist/file-header-Co9oo7aI.d.cts +41 -0
- package/dist/file-header-Co9oo7aI.d.cts.map +1 -0
- package/dist/file-header-rHqeXgRV.d.mts +41 -0
- package/dist/file-header-rHqeXgRV.d.mts.map +1 -0
- package/dist/format-Cf-cgZ-s.d.cts +24 -0
- package/dist/format-Cf-cgZ-s.d.cts.map +1 -0
- package/dist/format-IQPqgWIe.d.mts +24 -0
- package/dist/format-IQPqgWIe.d.mts.map +1 -0
- package/dist/fs-BzXT5ZPj.d.cts +7 -0
- package/dist/fs-BzXT5ZPj.d.cts.map +1 -0
- package/dist/fs-BzXT5ZPj.d.mts +7 -0
- package/dist/fs-BzXT5ZPj.d.mts.map +1 -0
- package/dist/{schemas/fs.cjs → fs-C2lru696.cjs} +38 -16
- package/dist/{schemas/fs.mjs → fs-DqLn15uU.mjs} +2 -10
- package/dist/fs-DqLn15uU.mjs.map +1 -0
- package/dist/generate-types-CDkVosrS.d.cts +65 -0
- package/dist/generate-types-CDkVosrS.d.cts.map +1 -0
- package/dist/generate-types-Dw6p3cB_.d.mts +65 -0
- package/dist/generate-types-Dw6p3cB_.d.mts.map +1 -0
- package/dist/helpers-CrRRFQl5.d.mts +22 -0
- package/dist/helpers-CrRRFQl5.d.mts.map +1 -0
- package/dist/helpers-DBLIQW3U.d.cts +22 -0
- package/dist/helpers-DBLIQW3U.d.cts.map +1 -0
- package/dist/hooks-Dhc3ahex.d.cts +5 -0
- package/dist/hooks-Dhc3ahex.d.cts.map +1 -0
- package/dist/hooks-Dhc3ahex.d.mts +5 -0
- package/dist/hooks-Dhc3ahex.d.mts.map +1 -0
- package/dist/index-LtpXjuJR.d.mts +25 -0
- package/dist/index-LtpXjuJR.d.mts.map +1 -0
- package/dist/index-xk4vSgtB.d.cts +25 -0
- package/dist/index-xk4vSgtB.d.cts.map +1 -0
- package/dist/index.cjs +1 -9
- package/dist/index.d.cts +24 -32
- package/dist/index.d.mts +24 -34
- package/dist/index.mjs +1 -9
- package/dist/install-dependencies-CCjZfS9Y.d.mts +12 -0
- package/dist/install-dependencies-CCjZfS9Y.d.mts.map +1 -0
- package/dist/install-dependencies-CyeYsrfz.d.cts +12 -0
- package/dist/install-dependencies-CyeYsrfz.d.cts.map +1 -0
- package/dist/lib/config.cjs +2 -28
- package/dist/lib/config.d.cts +2 -140
- package/dist/lib/config.d.mts +2 -142
- package/dist/lib/config.mjs +1 -22
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/context-helpers.cjs +0 -19
- package/dist/lib/context-helpers.d.cts +2 -16
- package/dist/lib/context-helpers.d.mts +2 -18
- package/dist/lib/context-helpers.mjs +1 -14
- package/dist/lib/context-helpers.mjs.map +1 -1
- package/dist/lib/entry.cjs +0 -24
- package/dist/lib/entry.d.cts +2 -47
- package/dist/lib/entry.d.mts +2 -49
- package/dist/lib/entry.mjs +1 -19
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/environment.cjs +2 -22
- package/dist/lib/environment.d.cts +1 -2
- package/dist/lib/environment.d.cts.map +1 -1
- package/dist/lib/environment.d.mts +1 -4
- package/dist/lib/environment.d.mts.map +1 -1
- package/dist/lib/environment.mjs +1 -16
- package/dist/lib/environment.mjs.map +1 -1
- package/dist/lib/events.cjs +1 -17
- package/dist/lib/events.d.cts +2 -10
- package/dist/lib/events.d.mts +2 -12
- package/dist/lib/events.mjs +1 -12
- package/dist/lib/events.mjs.map +1 -1
- package/dist/lib/generate-types.cjs +0 -20
- package/dist/lib/generate-types.d.cts +2 -66
- package/dist/lib/generate-types.d.mts +2 -68
- package/dist/lib/generate-types.mjs +1 -15
- package/dist/lib/generate-types.mjs.map +1 -1
- package/dist/lib/hooks.cjs +2 -22
- package/dist/lib/hooks.d.cts +2 -28
- package/dist/lib/hooks.d.mts +2 -30
- package/dist/lib/hooks.mjs +1 -16
- package/dist/lib/hooks.mjs.map +1 -1
- package/dist/lib/index.cjs +1 -9
- package/dist/lib/index.d.cts +23 -23
- package/dist/lib/index.d.mts +23 -25
- package/dist/lib/index.mjs +1 -9
- package/dist/lib/install-dependencies.cjs +1 -17
- package/dist/lib/install-dependencies.d.cts +2 -12
- package/dist/lib/install-dependencies.d.mts +2 -14
- package/dist/lib/install-dependencies.mjs +1 -11
- package/dist/lib/install-dependencies.mjs.map +1 -1
- package/dist/lib/meta.cjs +0 -8
- package/dist/lib/meta.d.cts +2 -33
- package/dist/lib/meta.d.mts +2 -35
- package/dist/lib/meta.mjs +0 -8
- package/dist/lib/meta.mjs.map +1 -1
- package/dist/lib/plugins.cjs +2 -21
- package/dist/lib/plugins.d.cts +2 -39
- package/dist/lib/plugins.d.mts +2 -41
- package/dist/lib/plugins.mjs +1 -15
- package/dist/lib/plugins.mjs.map +1 -1
- package/dist/lib/resolver.cjs +3 -18
- package/dist/lib/resolver.d.cts +2 -20
- package/dist/lib/resolver.d.mts +2 -22
- package/dist/lib/resolver.mjs +1 -11
- package/dist/lib/resolver.mjs.map +1 -1
- package/dist/lib/schemas.cjs +1 -9
- package/dist/lib/schemas.d.cts +1 -1
- package/dist/lib/schemas.d.mts +1 -3
- package/dist/lib/schemas.mjs +1 -9
- package/dist/lib/streaming-channel.cjs +1 -20
- package/dist/lib/streaming-channel.d.cts +2 -126
- package/dist/lib/streaming-channel.d.mts +2 -128
- package/dist/lib/streaming-channel.mjs +1 -14
- package/dist/lib/streaming-channel.mjs.map +1 -1
- package/dist/lib/typescript/index.cjs +0 -8
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.mts +2 -4
- package/dist/lib/typescript/index.mjs +0 -8
- package/dist/lib/typescript/ts-morph.cjs +3 -21
- package/dist/lib/typescript/ts-morph.d.cts +2 -38
- package/dist/lib/typescript/ts-morph.d.mts +2 -40
- package/dist/lib/typescript/ts-morph.mjs +1 -14
- package/dist/lib/typescript/ts-morph.mjs.map +1 -1
- package/dist/lib/typescript/tsconfig.cjs +5 -31
- package/dist/lib/typescript/tsconfig.d.cts +2 -77
- package/dist/lib/typescript/tsconfig.d.mts +2 -79
- package/dist/lib/typescript/tsconfig.mjs +1 -22
- package/dist/lib/typescript/tsconfig.mjs.map +1 -1
- package/dist/lib/unplugin/helpers.cjs +0 -19
- package/dist/lib/unplugin/helpers.d.cts +2 -23
- package/dist/lib/unplugin/helpers.d.mts +2 -25
- package/dist/lib/unplugin/helpers.mjs +1 -14
- package/dist/lib/unplugin/helpers.mjs.map +1 -1
- package/dist/lib/unplugin/index.cjs +0 -8
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.mts +3 -5
- package/dist/lib/unplugin/index.mjs +0 -8
- package/dist/lib/unplugin/module-resolution.cjs +3 -18
- package/dist/lib/unplugin/module-resolution.d.cts +2 -41
- package/dist/lib/unplugin/module-resolution.d.mts +2 -43
- package/dist/lib/unplugin/module-resolution.mjs +1 -11
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +1 -20
- package/dist/lib/unplugin/plugin.d.cts +2 -40
- package/dist/lib/unplugin/plugin.d.mts +2 -42
- package/dist/lib/unplugin/plugin.mjs +1 -14
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/file-header.cjs +0 -21
- package/dist/lib/utilities/file-header.d.cts +2 -41
- package/dist/lib/utilities/file-header.d.mts +2 -43
- package/dist/lib/utilities/file-header.mjs +1 -16
- package/dist/lib/utilities/file-header.mjs.map +1 -1
- package/dist/lib/utilities/format.cjs +3 -21
- package/dist/lib/utilities/format.d.cts +2 -24
- package/dist/lib/utilities/format.d.mts +2 -26
- package/dist/lib/utilities/format.mjs +1 -14
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/index.cjs +0 -8
- package/dist/lib/utilities/index.d.cts +5 -5
- package/dist/lib/utilities/index.d.mts +5 -7
- package/dist/lib/utilities/index.mjs +0 -8
- package/dist/lib/utilities/source-file.cjs +3 -22
- package/dist/lib/utilities/source-file.d.cts +2 -30
- package/dist/lib/utilities/source-file.d.mts +2 -32
- package/dist/lib/utilities/source-file.mjs +1 -15
- package/dist/lib/utilities/source-file.mjs.map +1 -1
- package/dist/lib/utilities/source-map.cjs +3 -18
- package/dist/lib/utilities/source-map.d.cts +2 -16
- package/dist/lib/utilities/source-map.d.mts +2 -18
- package/dist/lib/utilities/source-map.mjs +1 -11
- package/dist/lib/utilities/source-map.mjs.map +1 -1
- package/dist/lib/utilities/write-file.cjs +1 -17
- package/dist/lib/utilities/write-file.d.cts +2 -15
- package/dist/lib/utilities/write-file.d.mts +2 -17
- package/dist/lib/utilities/write-file.mjs +1 -11
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/lib/vfs.cjs +4 -19
- package/dist/lib/vfs.d.cts +2 -321
- package/dist/lib/vfs.d.mts +2 -323
- package/dist/lib/vfs.mjs +2 -12
- package/dist/lib/vfs.mjs.map +1 -1
- package/dist/log-level-BC8g4BBL.d.cts +67 -0
- package/dist/log-level-BC8g4BBL.d.cts.map +1 -0
- package/dist/log-level-BC8g4BBL.d.mts +67 -0
- package/dist/log-level-BC8g4BBL.d.mts.map +1 -0
- package/dist/meta-CdDd2ykC.d.cts +33 -0
- package/dist/meta-CdDd2ykC.d.cts.map +1 -0
- package/dist/meta-CfTCHU_o.d.mts +33 -0
- package/dist/meta-CfTCHU_o.d.mts.map +1 -0
- package/dist/meta-QA_SN1j3.d.cts +6 -0
- package/dist/meta-QA_SN1j3.d.cts.map +1 -0
- package/dist/meta-QA_SN1j3.d.mts +6 -0
- package/dist/meta-QA_SN1j3.d.mts.map +1 -0
- package/dist/module-resolution-CRMNPsdn.d.mts +40 -0
- package/dist/module-resolution-CRMNPsdn.d.mts.map +1 -0
- package/dist/module-resolution-D-w-EZaK.d.cts +40 -0
- package/dist/module-resolution-D-w-EZaK.d.cts.map +1 -0
- package/dist/plugin-B_b7XqaN.d.mts +39 -0
- package/dist/plugin-B_b7XqaN.d.mts.map +1 -0
- package/dist/plugin-CzV-aFwU.d.cts +39 -0
- package/dist/plugin-CzV-aFwU.d.cts.map +1 -0
- package/dist/plugin-base.cjs +1 -20
- package/dist/plugin-base.d.cts +1 -3
- package/dist/plugin-base.d.cts.map +1 -1
- package/dist/plugin-base.d.mts +1 -5
- package/dist/plugin-base.d.mts.map +1 -1
- package/dist/plugin-base.mjs +1 -14
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-fhBG7SSQ.d.cts +9 -0
- package/dist/plugin-fhBG7SSQ.d.cts.map +1 -0
- package/dist/plugin-fhBG7SSQ.d.mts +9 -0
- package/dist/plugin-fhBG7SSQ.d.mts.map +1 -0
- package/dist/plugin-utils/build-helpers.cjs +0 -16
- package/dist/plugin-utils/build-helpers.d.cts +1 -2
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts +1 -4
- package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/build-helpers.mjs +1 -11
- package/dist/plugin-utils/build-helpers.mjs.map +1 -1
- package/dist/plugin-utils/combine-plugins.cjs +1 -20
- package/dist/plugin-utils/combine-plugins.d.cts +1 -1
- package/dist/plugin-utils/combine-plugins.d.mts +1 -3
- package/dist/plugin-utils/combine-plugins.d.mts.map +1 -1
- package/dist/plugin-utils/combine-plugins.mjs +1 -14
- package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +0 -21
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +1 -3
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +1 -16
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.cjs +0 -16
- package/dist/plugin-utils/docs-helper.d.mts +0 -2
- package/dist/plugin-utils/docs-helper.d.mts.map +1 -1
- package/dist/plugin-utils/docs-helper.mjs +1 -11
- package/dist/plugin-utils/docs-helper.mjs.map +1 -1
- package/dist/plugin-utils/enable-plugin.cjs +1 -17
- package/dist/plugin-utils/enable-plugin.d.cts +1 -2
- package/dist/plugin-utils/enable-plugin.d.cts.map +1 -1
- package/dist/plugin-utils/enable-plugin.d.mts +1 -4
- package/dist/plugin-utils/enable-plugin.d.mts.map +1 -1
- package/dist/plugin-utils/enable-plugin.mjs +1 -11
- package/dist/plugin-utils/enable-plugin.mjs.map +1 -1
- package/dist/plugin-utils/extend.cjs +1 -17
- package/dist/plugin-utils/extend.d.cts +1 -3
- package/dist/plugin-utils/extend.d.cts.map +1 -1
- package/dist/plugin-utils/extend.d.mts +1 -5
- package/dist/plugin-utils/extend.d.mts.map +1 -1
- package/dist/plugin-utils/extend.mjs +1 -11
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +2 -27
- package/dist/plugin-utils/filter.d.cts +1 -1
- package/dist/plugin-utils/filter.d.mts +1 -3
- package/dist/plugin-utils/filter.d.mts.map +1 -1
- package/dist/plugin-utils/filter.mjs +1 -21
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.cjs +1 -17
- package/dist/plugin-utils/format-package-json.d.cts +1 -1
- package/dist/plugin-utils/format-package-json.d.mts +1 -3
- package/dist/plugin-utils/format-package-json.d.mts.map +1 -1
- package/dist/plugin-utils/format-package-json.mjs +1 -11
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/format.cjs +1 -17
- package/dist/plugin-utils/format.d.mts +0 -2
- package/dist/plugin-utils/format.d.mts.map +1 -1
- package/dist/plugin-utils/format.mjs +1 -11
- package/dist/plugin-utils/format.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.cjs +1 -17
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.mts +1 -3
- package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
- package/dist/plugin-utils/get-config-path.mjs +1 -11
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.cjs +0 -33
- package/dist/plugin-utils/helpers.d.cts +1 -5
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +1 -7
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +1 -28
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +0 -8
- package/dist/plugin-utils/index.d.mts +0 -2
- package/dist/plugin-utils/index.mjs +0 -8
- package/dist/plugin-utils/install.cjs +1 -20
- package/dist/plugin-utils/install.d.cts +1 -1
- package/dist/plugin-utils/install.d.mts +1 -3
- package/dist/plugin-utils/install.d.mts.map +1 -1
- package/dist/plugin-utils/install.mjs +1 -14
- package/dist/plugin-utils/install.mjs.map +1 -1
- package/dist/plugin-utils/logging.cjs +2 -34
- package/dist/plugin-utils/logging.d.cts +1 -3
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +1 -5
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +1 -28
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +3 -21
- package/dist/plugin-utils/merge.d.cts +1 -3
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts +1 -5
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +1 -14
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/plugin-utils/modules.cjs +1 -17
- package/dist/plugin-utils/modules.d.cts +1 -1
- package/dist/plugin-utils/modules.d.mts +1 -3
- package/dist/plugin-utils/modules.d.mts.map +1 -1
- package/dist/plugin-utils/modules.mjs +1 -12
- package/dist/plugin-utils/modules.mjs.map +1 -1
- package/dist/plugin-utils/paths.cjs +0 -16
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.mts +1 -3
- package/dist/plugin-utils/paths.d.mts.map +1 -1
- package/dist/plugin-utils/paths.mjs +1 -11
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/virtual.cjs +1 -25
- package/dist/plugin-utils/virtual.d.mts +0 -2
- package/dist/plugin-utils/virtual.d.mts.map +1 -1
- package/dist/plugin-utils/virtual.mjs +1 -20
- package/dist/plugin-utils/virtual.mjs.map +1 -1
- package/dist/plugins-DfL1fBZi.d.cts +37 -0
- package/dist/plugins-DfL1fBZi.d.cts.map +1 -0
- package/dist/plugins-zG2X2LA8.d.mts +37 -0
- package/dist/plugins-zG2X2LA8.d.mts.map +1 -0
- package/dist/resolver-CdBAh8dA.d.mts +19 -0
- package/dist/resolver-CdBAh8dA.d.mts.map +1 -0
- package/dist/resolver-CfCl--Eh.d.cts +19 -0
- package/dist/resolver-CfCl--Eh.d.cts.map +1 -0
- package/dist/{schemas/fs.d.cts → schemas-Zvqwdrw_.d.cts} +2 -2
- package/dist/schemas-Zvqwdrw_.d.cts.map +1 -0
- package/dist/{schemas/fs.d.mts → schemas-Zvqwdrw_.d.mts} +2 -4
- package/dist/schemas-Zvqwdrw_.d.mts.map +1 -0
- package/dist/source-file-CLw13fKE.d.mts +30 -0
- package/dist/source-file-CLw13fKE.d.mts.map +1 -0
- package/dist/source-file-CuuHaBL5.d.cts +30 -0
- package/dist/source-file-CuuHaBL5.d.cts.map +1 -0
- package/dist/source-map-Cy0aqSpe.d.mts +16 -0
- package/dist/source-map-Cy0aqSpe.d.mts.map +1 -0
- package/dist/source-map-HU4IoICc.d.cts +16 -0
- package/dist/source-map-HU4IoICc.d.cts.map +1 -0
- package/dist/storage/base.cjs +1 -17
- package/dist/storage/base.d.cts +1 -2
- package/dist/storage/base.d.cts.map +1 -1
- package/dist/storage/base.d.mts +1 -4
- package/dist/storage/base.d.mts.map +1 -1
- package/dist/storage/base.mjs +1 -11
- package/dist/storage/base.mjs.map +1 -1
- package/dist/storage/file-system.cjs +1 -17
- package/dist/storage/file-system.d.cts +1 -1
- package/dist/storage/file-system.d.mts +1 -3
- package/dist/storage/file-system.d.mts.map +1 -1
- package/dist/storage/file-system.mjs +1 -11
- package/dist/storage/file-system.mjs.map +1 -1
- package/dist/storage/helpers.cjs +0 -20
- package/dist/storage/helpers.d.mts +0 -2
- package/dist/storage/helpers.d.mts.map +1 -1
- package/dist/storage/helpers.mjs +1 -15
- package/dist/storage/helpers.mjs.map +1 -1
- package/dist/storage/index.cjs +0 -8
- package/dist/storage/index.d.mts +0 -2
- package/dist/storage/index.mjs +0 -8
- package/dist/storage/virtual.cjs +1 -17
- package/dist/storage/virtual.d.cts +1 -1
- package/dist/storage/virtual.d.mts +1 -3
- package/dist/storage/virtual.d.mts.map +1 -1
- package/dist/storage/virtual.mjs +1 -11
- package/dist/storage/virtual.mjs.map +1 -1
- package/dist/streaming-channel-CiyFd_6l.d.cts +126 -0
- package/dist/streaming-channel-CiyFd_6l.d.cts.map +1 -0
- package/dist/streaming-channel-CiyFd_6l.d.mts +126 -0
- package/dist/streaming-channel-CiyFd_6l.d.mts.map +1 -0
- package/dist/ts-morph-BGgjbOgM.d.cts +38 -0
- package/dist/ts-morph-BGgjbOgM.d.cts.map +1 -0
- package/dist/ts-morph-zLvdifpA.d.mts +38 -0
- package/dist/ts-morph-zLvdifpA.d.mts.map +1 -0
- package/dist/tsconfig-DExoZEQ0.d.cts +75 -0
- package/dist/tsconfig-DExoZEQ0.d.cts.map +1 -0
- package/dist/tsconfig-De09cBeX.d.mts +75 -0
- package/dist/tsconfig-De09cBeX.d.mts.map +1 -0
- package/dist/vfs-B9Vhnajc.d.cts +320 -0
- package/dist/vfs-B9Vhnajc.d.cts.map +1 -0
- package/dist/vfs-Dl6nPqdS.d.mts +320 -0
- package/dist/vfs-Dl6nPqdS.d.mts.map +1 -0
- package/dist/write-file-BVMnXVPo.d.cts +15 -0
- package/dist/write-file-BVMnXVPo.d.cts.map +1 -0
- package/dist/write-file-CWf9Xxwd.d.mts +15 -0
- package/dist/write-file-CWf9Xxwd.d.mts.map +1 -0
- package/package.json +14 -254
- package/dist/_virtual/_rolldown/runtime.mjs +0 -26
- package/dist/constants/api.d.cts.map +0 -1
- package/dist/constants/api.d.mts.map +0 -1
- package/dist/constants/api.test.cjs +0 -42
- package/dist/constants/api.test.d.mts +0 -2
- package/dist/constants/api.test.mjs +0 -44
- package/dist/constants/api.test.mjs.map +0 -1
- package/dist/constants/commands.d.cts.map +0 -1
- package/dist/constants/commands.d.mts.map +0 -1
- package/dist/constants/commands.test.cjs +0 -29
- package/dist/constants/commands.test.d.mts +0 -2
- package/dist/constants/commands.test.mjs +0 -31
- package/dist/constants/commands.test.mjs.map +0 -1
- package/dist/constants/devtools.d.cts.map +0 -1
- package/dist/constants/devtools.d.mts.map +0 -1
- package/dist/constants/devtools.test.cjs +0 -46
- package/dist/constants/devtools.test.d.mts +0 -2
- package/dist/constants/devtools.test.mjs +0 -48
- package/dist/constants/devtools.test.mjs.map +0 -1
- package/dist/constants/environments.d.cts.map +0 -1
- package/dist/constants/environments.d.mts.map +0 -1
- package/dist/constants/environments.test.cjs +0 -34
- package/dist/constants/environments.test.d.mts +0 -2
- package/dist/constants/environments.test.mjs +0 -36
- package/dist/constants/environments.test.mjs.map +0 -1
- package/dist/constants/extensions.d.cts.map +0 -1
- package/dist/constants/extensions.d.mts.map +0 -1
- package/dist/constants/extensions.test.cjs +0 -35
- package/dist/constants/extensions.test.d.mts +0 -2
- package/dist/constants/extensions.test.mjs +0 -37
- package/dist/constants/extensions.test.mjs.map +0 -1
- package/dist/constants/fs.d.cts.map +0 -1
- package/dist/constants/fs.d.mts.map +0 -1
- package/dist/constants/fs.test.cjs +0 -34
- package/dist/constants/fs.test.d.mts +0 -2
- package/dist/constants/fs.test.mjs +0 -36
- package/dist/constants/fs.test.mjs.map +0 -1
- package/dist/constants/hooks.d.cts.map +0 -1
- package/dist/constants/hooks.d.mts.map +0 -1
- package/dist/constants/hooks.test.cjs +0 -29
- package/dist/constants/hooks.test.d.mts +0 -2
- package/dist/constants/hooks.test.mjs +0 -31
- package/dist/constants/hooks.test.mjs.map +0 -1
- package/dist/constants/log-level.d.cts.map +0 -1
- package/dist/constants/log-level.d.mts.map +0 -1
- package/dist/constants/log-level.test.cjs +0 -76
- package/dist/constants/log-level.test.d.mts +0 -2
- package/dist/constants/log-level.test.mjs +0 -78
- package/dist/constants/log-level.test.mjs.map +0 -1
- package/dist/constants/meta.d.cts.map +0 -1
- package/dist/constants/meta.d.mts.map +0 -1
- package/dist/constants/meta.test.cjs +0 -33
- package/dist/constants/meta.test.d.mts +0 -2
- package/dist/constants/meta.test.mjs +0 -35
- package/dist/constants/meta.test.mjs.map +0 -1
- package/dist/constants/plugin.d.cts.map +0 -1
- package/dist/constants/plugin.d.mts.map +0 -1
- package/dist/constants/plugin.test.cjs +0 -59
- package/dist/constants/plugin.test.d.mts +0 -2
- package/dist/constants/plugin.test.mjs +0 -61
- package/dist/constants/plugin.test.mjs.map +0 -1
- package/dist/context/base-context.d.cts.map +0 -1
- package/dist/context/base-context.d.mts.map +0 -1
- package/dist/context/base-context.test.cjs +0 -23
- package/dist/context/base-context.test.d.cts +0 -1
- package/dist/context/base-context.test.d.mts +0 -2
- package/dist/context/base-context.test.mjs +0 -25
- package/dist/context/base-context.test.mjs.map +0 -1
- package/dist/context/context.d.cts.map +0 -1
- package/dist/context/context.d.mts.map +0 -1
- package/dist/context/context.test.cjs +0 -23
- package/dist/context/context.test.d.cts +0 -1
- package/dist/context/context.test.d.mts +0 -2
- package/dist/context/context.test.mjs +0 -25
- package/dist/context/context.test.mjs.map +0 -1
- package/dist/context/environment-context.test.cjs +0 -23
- package/dist/context/environment-context.test.d.cts +0 -1
- package/dist/context/environment-context.test.d.mts +0 -2
- package/dist/context/environment-context.test.mjs +0 -25
- package/dist/context/environment-context.test.mjs.map +0 -1
- package/dist/context/execution-context.test.cjs +0 -23
- package/dist/context/execution-context.test.d.cts +0 -1
- package/dist/context/execution-context.test.d.mts +0 -2
- package/dist/context/execution-context.test.mjs +0 -25
- package/dist/context/execution-context.test.mjs.map +0 -1
- package/dist/context/plugin-context.test.cjs +0 -23
- package/dist/context/plugin-context.test.d.cts +0 -1
- package/dist/context/plugin-context.test.d.mts +0 -2
- package/dist/context/plugin-context.test.mjs +0 -25
- package/dist/context/plugin-context.test.mjs.map +0 -1
- package/dist/lib/config.d.cts.map +0 -1
- package/dist/lib/config.d.mts.map +0 -1
- package/dist/lib/config.test.cjs +0 -23
- package/dist/lib/config.test.d.cts +0 -1
- package/dist/lib/config.test.d.mts +0 -2
- package/dist/lib/config.test.mjs +0 -25
- package/dist/lib/config.test.mjs.map +0 -1
- package/dist/lib/context-helpers.d.cts.map +0 -1
- package/dist/lib/context-helpers.d.mts.map +0 -1
- package/dist/lib/context-helpers.test.cjs +0 -23
- package/dist/lib/context-helpers.test.d.cts +0 -1
- package/dist/lib/context-helpers.test.d.mts +0 -2
- package/dist/lib/context-helpers.test.mjs +0 -25
- package/dist/lib/context-helpers.test.mjs.map +0 -1
- package/dist/lib/entry.d.cts.map +0 -1
- package/dist/lib/entry.d.mts.map +0 -1
- package/dist/lib/entry.test.cjs +0 -23
- package/dist/lib/entry.test.d.cts +0 -1
- package/dist/lib/entry.test.d.mts +0 -2
- package/dist/lib/entry.test.mjs +0 -25
- package/dist/lib/entry.test.mjs.map +0 -1
- package/dist/lib/environment.test.cjs +0 -23
- package/dist/lib/environment.test.d.cts +0 -1
- package/dist/lib/environment.test.d.mts +0 -2
- package/dist/lib/environment.test.mjs +0 -25
- package/dist/lib/environment.test.mjs.map +0 -1
- package/dist/lib/events.d.cts.map +0 -1
- package/dist/lib/events.d.mts.map +0 -1
- package/dist/lib/events.test.cjs +0 -23
- package/dist/lib/events.test.d.cts +0 -1
- package/dist/lib/events.test.d.mts +0 -2
- package/dist/lib/events.test.mjs +0 -25
- package/dist/lib/events.test.mjs.map +0 -1
- package/dist/lib/generate-types.d.cts.map +0 -1
- package/dist/lib/generate-types.d.mts.map +0 -1
- package/dist/lib/generate-types.test.cjs +0 -23
- package/dist/lib/generate-types.test.d.cts +0 -1
- package/dist/lib/generate-types.test.d.mts +0 -2
- package/dist/lib/generate-types.test.mjs +0 -25
- package/dist/lib/generate-types.test.mjs.map +0 -1
- package/dist/lib/hooks.d.cts.map +0 -1
- package/dist/lib/hooks.d.mts.map +0 -1
- package/dist/lib/hooks.test.cjs +0 -23
- package/dist/lib/hooks.test.d.cts +0 -1
- package/dist/lib/hooks.test.d.mts +0 -2
- package/dist/lib/hooks.test.mjs +0 -25
- package/dist/lib/hooks.test.mjs.map +0 -1
- package/dist/lib/install-dependencies.d.cts.map +0 -1
- package/dist/lib/install-dependencies.d.mts.map +0 -1
- package/dist/lib/install-dependencies.test.cjs +0 -23
- package/dist/lib/install-dependencies.test.d.cts +0 -1
- package/dist/lib/install-dependencies.test.d.mts +0 -2
- package/dist/lib/install-dependencies.test.mjs +0 -25
- package/dist/lib/install-dependencies.test.mjs.map +0 -1
- package/dist/lib/meta.d.cts.map +0 -1
- package/dist/lib/meta.d.mts.map +0 -1
- package/dist/lib/meta.test.cjs +0 -35
- package/dist/lib/meta.test.d.cts +0 -1
- package/dist/lib/meta.test.d.mts +0 -2
- package/dist/lib/meta.test.mjs +0 -37
- package/dist/lib/meta.test.mjs.map +0 -1
- package/dist/lib/plugins.d.cts.map +0 -1
- package/dist/lib/plugins.d.mts.map +0 -1
- package/dist/lib/plugins.test.cjs +0 -23
- package/dist/lib/plugins.test.d.cts +0 -1
- package/dist/lib/plugins.test.d.mts +0 -2
- package/dist/lib/plugins.test.mjs +0 -25
- package/dist/lib/plugins.test.mjs.map +0 -1
- package/dist/lib/resolver.d.cts.map +0 -1
- package/dist/lib/resolver.d.mts.map +0 -1
- package/dist/lib/resolver.test.cjs +0 -23
- package/dist/lib/resolver.test.d.cts +0 -1
- package/dist/lib/resolver.test.d.mts +0 -2
- package/dist/lib/resolver.test.mjs +0 -25
- package/dist/lib/resolver.test.mjs.map +0 -1
- package/dist/lib/streaming-channel.d.cts.map +0 -1
- package/dist/lib/streaming-channel.d.mts.map +0 -1
- package/dist/lib/streaming-channel.test.cjs +0 -23
- package/dist/lib/streaming-channel.test.d.cts +0 -1
- package/dist/lib/streaming-channel.test.d.mts +0 -2
- package/dist/lib/streaming-channel.test.mjs +0 -25
- package/dist/lib/streaming-channel.test.mjs.map +0 -1
- package/dist/lib/typescript/ts-morph.d.cts.map +0 -1
- package/dist/lib/typescript/ts-morph.d.mts.map +0 -1
- package/dist/lib/typescript/ts-morph.test.cjs +0 -23
- package/dist/lib/typescript/ts-morph.test.d.cts +0 -1
- package/dist/lib/typescript/ts-morph.test.d.mts +0 -2
- package/dist/lib/typescript/ts-morph.test.mjs +0 -25
- package/dist/lib/typescript/ts-morph.test.mjs.map +0 -1
- package/dist/lib/typescript/tsconfig.d.cts.map +0 -1
- package/dist/lib/typescript/tsconfig.d.mts.map +0 -1
- package/dist/lib/typescript/tsconfig.test.cjs +0 -23
- package/dist/lib/typescript/tsconfig.test.d.cts +0 -1
- package/dist/lib/typescript/tsconfig.test.d.mts +0 -2
- package/dist/lib/typescript/tsconfig.test.mjs +0 -25
- package/dist/lib/typescript/tsconfig.test.mjs.map +0 -1
- package/dist/lib/unplugin/helpers.d.cts.map +0 -1
- package/dist/lib/unplugin/helpers.d.mts.map +0 -1
- package/dist/lib/unplugin/helpers.test.cjs +0 -23
- package/dist/lib/unplugin/helpers.test.d.cts +0 -1
- package/dist/lib/unplugin/helpers.test.d.mts +0 -2
- package/dist/lib/unplugin/helpers.test.mjs +0 -25
- package/dist/lib/unplugin/helpers.test.mjs.map +0 -1
- package/dist/lib/unplugin/module-resolution.d.cts.map +0 -1
- package/dist/lib/unplugin/module-resolution.d.mts.map +0 -1
- package/dist/lib/unplugin/module-resolution.test.cjs +0 -23
- package/dist/lib/unplugin/module-resolution.test.d.cts +0 -1
- package/dist/lib/unplugin/module-resolution.test.d.mts +0 -2
- package/dist/lib/unplugin/module-resolution.test.mjs +0 -25
- package/dist/lib/unplugin/module-resolution.test.mjs.map +0 -1
- package/dist/lib/unplugin/plugin.d.cts.map +0 -1
- package/dist/lib/unplugin/plugin.d.mts.map +0 -1
- package/dist/lib/unplugin/plugin.test.cjs +0 -23
- package/dist/lib/unplugin/plugin.test.d.cts +0 -1
- package/dist/lib/unplugin/plugin.test.d.mts +0 -2
- package/dist/lib/unplugin/plugin.test.mjs +0 -25
- package/dist/lib/unplugin/plugin.test.mjs.map +0 -1
- package/dist/lib/utilities/file-header.d.cts.map +0 -1
- package/dist/lib/utilities/file-header.d.mts.map +0 -1
- package/dist/lib/utilities/file-header.test.cjs +0 -23
- package/dist/lib/utilities/file-header.test.d.cts +0 -1
- package/dist/lib/utilities/file-header.test.d.mts +0 -2
- package/dist/lib/utilities/file-header.test.mjs +0 -25
- package/dist/lib/utilities/file-header.test.mjs.map +0 -1
- package/dist/lib/utilities/format.d.cts.map +0 -1
- package/dist/lib/utilities/format.d.mts.map +0 -1
- package/dist/lib/utilities/format.test.cjs +0 -23
- package/dist/lib/utilities/format.test.d.cts +0 -1
- package/dist/lib/utilities/format.test.d.mts +0 -2
- package/dist/lib/utilities/format.test.mjs +0 -25
- package/dist/lib/utilities/format.test.mjs.map +0 -1
- package/dist/lib/utilities/source-file.d.cts.map +0 -1
- package/dist/lib/utilities/source-file.d.mts.map +0 -1
- package/dist/lib/utilities/source-file.test.cjs +0 -23
- package/dist/lib/utilities/source-file.test.d.cts +0 -1
- package/dist/lib/utilities/source-file.test.d.mts +0 -2
- package/dist/lib/utilities/source-file.test.mjs +0 -25
- package/dist/lib/utilities/source-file.test.mjs.map +0 -1
- package/dist/lib/utilities/source-map.d.cts.map +0 -1
- package/dist/lib/utilities/source-map.d.mts.map +0 -1
- package/dist/lib/utilities/source-map.test.cjs +0 -23
- package/dist/lib/utilities/source-map.test.d.cts +0 -1
- package/dist/lib/utilities/source-map.test.d.mts +0 -2
- package/dist/lib/utilities/source-map.test.mjs +0 -25
- package/dist/lib/utilities/source-map.test.mjs.map +0 -1
- package/dist/lib/utilities/write-file.d.cts.map +0 -1
- package/dist/lib/utilities/write-file.d.mts.map +0 -1
- package/dist/lib/utilities/write-file.test.cjs +0 -23
- package/dist/lib/utilities/write-file.test.d.cts +0 -1
- package/dist/lib/utilities/write-file.test.d.mts +0 -2
- package/dist/lib/utilities/write-file.test.mjs +0 -25
- package/dist/lib/utilities/write-file.test.mjs.map +0 -1
- package/dist/lib/vfs.d.cts.map +0 -1
- package/dist/lib/vfs.d.mts.map +0 -1
- package/dist/lib/vfs.test.cjs +0 -23
- package/dist/lib/vfs.test.d.cts +0 -1
- package/dist/lib/vfs.test.d.mts +0 -2
- package/dist/lib/vfs.test.mjs +0 -25
- package/dist/lib/vfs.test.mjs.map +0 -1
- package/dist/plugin-base.test.cjs +0 -23
- package/dist/plugin-base.test.d.cts +0 -1
- package/dist/plugin-base.test.d.mts +0 -2
- package/dist/plugin-base.test.mjs +0 -25
- package/dist/plugin-base.test.mjs.map +0 -1
- package/dist/plugin-utils/build-helpers.test.cjs +0 -23
- package/dist/plugin-utils/build-helpers.test.d.cts +0 -1
- package/dist/plugin-utils/build-helpers.test.d.mts +0 -2
- package/dist/plugin-utils/build-helpers.test.mjs +0 -25
- package/dist/plugin-utils/build-helpers.test.mjs.map +0 -1
- package/dist/plugin-utils/combine-plugins.test.cjs +0 -23
- package/dist/plugin-utils/combine-plugins.test.d.cts +0 -1
- package/dist/plugin-utils/combine-plugins.test.d.mts +0 -2
- package/dist/plugin-utils/combine-plugins.test.mjs +0 -25
- package/dist/plugin-utils/combine-plugins.test.mjs.map +0 -1
- package/dist/plugin-utils/context-helpers.test.cjs +0 -23
- package/dist/plugin-utils/context-helpers.test.d.cts +0 -1
- package/dist/plugin-utils/context-helpers.test.d.mts +0 -2
- package/dist/plugin-utils/context-helpers.test.mjs +0 -25
- package/dist/plugin-utils/context-helpers.test.mjs.map +0 -1
- package/dist/plugin-utils/docs-helper.test.cjs +0 -23
- package/dist/plugin-utils/docs-helper.test.d.cts +0 -1
- package/dist/plugin-utils/docs-helper.test.d.mts +0 -2
- package/dist/plugin-utils/docs-helper.test.mjs +0 -25
- package/dist/plugin-utils/docs-helper.test.mjs.map +0 -1
- package/dist/plugin-utils/enable-plugin.test.cjs +0 -23
- package/dist/plugin-utils/enable-plugin.test.d.cts +0 -1
- package/dist/plugin-utils/enable-plugin.test.d.mts +0 -2
- package/dist/plugin-utils/enable-plugin.test.mjs +0 -25
- package/dist/plugin-utils/enable-plugin.test.mjs.map +0 -1
- package/dist/plugin-utils/extend.test.cjs +0 -23
- package/dist/plugin-utils/extend.test.d.cts +0 -1
- package/dist/plugin-utils/extend.test.d.mts +0 -2
- package/dist/plugin-utils/extend.test.mjs +0 -25
- package/dist/plugin-utils/extend.test.mjs.map +0 -1
- package/dist/plugin-utils/filter.test.cjs +0 -23
- package/dist/plugin-utils/filter.test.d.cts +0 -1
- package/dist/plugin-utils/filter.test.d.mts +0 -2
- package/dist/plugin-utils/filter.test.mjs +0 -25
- package/dist/plugin-utils/filter.test.mjs.map +0 -1
- package/dist/plugin-utils/format-package-json.test.cjs +0 -23
- package/dist/plugin-utils/format-package-json.test.d.cts +0 -1
- package/dist/plugin-utils/format-package-json.test.d.mts +0 -2
- package/dist/plugin-utils/format-package-json.test.mjs +0 -25
- package/dist/plugin-utils/format-package-json.test.mjs.map +0 -1
- package/dist/plugin-utils/format.test.cjs +0 -23
- package/dist/plugin-utils/format.test.d.cts +0 -1
- package/dist/plugin-utils/format.test.d.mts +0 -2
- package/dist/plugin-utils/format.test.mjs +0 -25
- package/dist/plugin-utils/format.test.mjs.map +0 -1
- package/dist/plugin-utils/get-config-path.test.cjs +0 -23
- package/dist/plugin-utils/get-config-path.test.d.cts +0 -1
- package/dist/plugin-utils/get-config-path.test.d.mts +0 -2
- package/dist/plugin-utils/get-config-path.test.mjs +0 -25
- package/dist/plugin-utils/get-config-path.test.mjs.map +0 -1
- package/dist/plugin-utils/helpers.test.cjs +0 -23
- package/dist/plugin-utils/helpers.test.d.cts +0 -1
- package/dist/plugin-utils/helpers.test.d.mts +0 -2
- package/dist/plugin-utils/helpers.test.mjs +0 -25
- package/dist/plugin-utils/helpers.test.mjs.map +0 -1
- package/dist/plugin-utils/install.test.cjs +0 -23
- package/dist/plugin-utils/install.test.d.cts +0 -1
- package/dist/plugin-utils/install.test.d.mts +0 -2
- package/dist/plugin-utils/install.test.mjs +0 -25
- package/dist/plugin-utils/install.test.mjs.map +0 -1
- package/dist/plugin-utils/logging.test.cjs +0 -23
- package/dist/plugin-utils/logging.test.d.cts +0 -1
- package/dist/plugin-utils/logging.test.d.mts +0 -2
- package/dist/plugin-utils/logging.test.mjs +0 -25
- package/dist/plugin-utils/logging.test.mjs.map +0 -1
- package/dist/plugin-utils/merge.test.cjs +0 -23
- package/dist/plugin-utils/merge.test.d.cts +0 -1
- package/dist/plugin-utils/merge.test.d.mts +0 -2
- package/dist/plugin-utils/merge.test.mjs +0 -25
- package/dist/plugin-utils/merge.test.mjs.map +0 -1
- package/dist/plugin-utils/modules.test.cjs +0 -23
- package/dist/plugin-utils/modules.test.d.cts +0 -1
- package/dist/plugin-utils/modules.test.d.mts +0 -2
- package/dist/plugin-utils/modules.test.mjs +0 -25
- package/dist/plugin-utils/modules.test.mjs.map +0 -1
- package/dist/plugin-utils/paths.test.cjs +0 -23
- package/dist/plugin-utils/paths.test.d.cts +0 -1
- package/dist/plugin-utils/paths.test.d.mts +0 -2
- package/dist/plugin-utils/paths.test.mjs +0 -25
- package/dist/plugin-utils/paths.test.mjs.map +0 -1
- package/dist/plugin-utils/virtual.test.cjs +0 -23
- package/dist/plugin-utils/virtual.test.d.cts +0 -1
- package/dist/plugin-utils/virtual.test.d.mts +0 -2
- package/dist/plugin-utils/virtual.test.mjs +0 -25
- package/dist/plugin-utils/virtual.test.mjs.map +0 -1
- package/dist/schemas/fs.d.cts.map +0 -1
- package/dist/schemas/fs.d.mts.map +0 -1
- package/dist/schemas/fs.mjs.map +0 -1
- package/dist/storage/base.test.cjs +0 -23
- package/dist/storage/base.test.d.cts +0 -1
- package/dist/storage/base.test.d.mts +0 -2
- package/dist/storage/base.test.mjs +0 -25
- package/dist/storage/base.test.mjs.map +0 -1
- package/dist/storage/file-system.test.cjs +0 -23
- package/dist/storage/file-system.test.d.cts +0 -1
- package/dist/storage/file-system.test.d.mts +0 -2
- package/dist/storage/file-system.test.mjs +0 -25
- package/dist/storage/file-system.test.mjs.map +0 -1
- package/dist/storage/helpers.test.cjs +0 -23
- package/dist/storage/helpers.test.d.cts +0 -1
- package/dist/storage/helpers.test.d.mts +0 -2
- package/dist/storage/helpers.test.mjs +0 -25
- package/dist/storage/helpers.test.mjs.map +0 -1
- package/dist/storage/virtual.test.cjs +0 -23
- package/dist/storage/virtual.test.d.cts +0 -1
- package/dist/storage/virtual.test.d.mts +0 -2
- package/dist/storage/virtual.test.mjs +0 -25
- package/dist/storage/virtual.test.mjs.map +0 -1
- package/dist/types/api.d.cts +0 -16
- package/dist/types/api.d.cts.map +0 -1
- package/dist/types/api.d.mts +0 -18
- package/dist/types/api.d.mts.map +0 -1
- package/dist/types/config.d.cts +0 -739
- package/dist/types/config.d.cts.map +0 -1
- package/dist/types/config.d.mts +0 -741
- package/dist/types/config.d.mts.map +0 -1
- package/dist/types/context.d.cts +0 -682
- package/dist/types/context.d.cts.map +0 -1
- package/dist/types/context.d.mts +0 -684
- package/dist/types/context.d.mts.map +0 -1
- package/dist/types/fs.d.cts +0 -538
- package/dist/types/fs.d.cts.map +0 -1
- package/dist/types/fs.d.mts +0 -540
- package/dist/types/fs.d.mts.map +0 -1
- package/dist/types/hooks.d.cts +0 -96
- package/dist/types/hooks.d.cts.map +0 -1
- package/dist/types/hooks.d.mts +0 -98
- package/dist/types/hooks.d.mts.map +0 -1
- package/dist/types/index.d.cts +0 -9
- package/dist/types/index.d.mts +0 -11
- package/dist/types/logging.d.cts +0 -145
- package/dist/types/logging.d.cts.map +0 -1
- package/dist/types/logging.d.mts +0 -147
- package/dist/types/logging.d.mts.map +0 -1
- package/dist/types/plugin.d.cts +0 -207
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -209
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/tsconfig.d.cts +0 -73
- package/dist/types/tsconfig.d.cts.map +0 -1
- package/dist/types/tsconfig.d.mts +0 -75
- package/dist/types/tsconfig.d.mts.map +0 -1
- package/dist/types/unplugin.d.cts +0 -22
- package/dist/types/unplugin.d.cts.map +0 -1
- package/dist/types/unplugin.d.mts +0 -24
- package/dist/types/unplugin.d.mts.map +0 -1
- /package/dist/{constants/api.test.d.cts → index-BKZ67WMa.d.cts} +0 -0
- /package/dist/{constants/commands.test.d.cts → index-BKZ67WMa.d.mts} +0 -0
- /package/dist/{constants/devtools.test.d.cts → index-BVVgDSdq.d.cts} +0 -0
- /package/dist/{constants/environments.test.d.cts → index-BVVgDSdq.d.mts} +0 -0
- /package/dist/{constants/extensions.test.d.cts → index-Den-MsLx.d.cts} +0 -0
- /package/dist/{constants/fs.test.d.cts → index-Den-MsLx.d.mts} +0 -0
- /package/dist/{constants/hooks.test.d.cts → index-DmtQKWjk.d.cts} +0 -0
- /package/dist/{constants/log-level.test.d.cts → index-DmtQKWjk.d.mts} +0 -0
- /package/dist/{constants/meta.test.d.cts → index-_6s0AX1B.d.cts} +0 -0
- /package/dist/{constants/plugin.test.d.cts → index-_6s0AX1B.d.mts} +0 -0
package/dist/lib/entry.d.cts
CHANGED
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { FileReference, FileReferenceParameter } from "@stryke/types/configuration";
|
|
4
|
-
|
|
5
|
-
//#region src/lib/entry.d.ts
|
|
6
|
-
declare function resolveEntryOutput<TContext extends UnresolvedContext>(context: TContext, fileReference: FileReference): string;
|
|
7
|
-
declare function resolveInput<TContext extends UnresolvedContext>(context: TContext, fileReference: FileReference, input?: FileReferenceParameter, output?: string): ResolvedEntryFileReference;
|
|
8
|
-
/**
|
|
9
|
-
* Resolves multiple file references into their corresponding resolved entry file references.
|
|
10
|
-
*
|
|
11
|
-
* @param context - The current context
|
|
12
|
-
* @param fileReferences - The file references to resolve.
|
|
13
|
-
* @returns A promise that resolves to an array of resolved entry file references .
|
|
14
|
-
*/
|
|
15
|
-
declare function resolveInputs<TContext extends UnresolvedContext>(context: TContext, fileReferences: FileReferenceParameter | FileReferenceParameter[] | Record<string, FileReferenceParameter | FileReferenceParameter[]>): Promise<ResolvedEntryFileReference[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Resolves multiple file references into their corresponding resolved entry file references.
|
|
18
|
-
*
|
|
19
|
-
* @param context - The current context
|
|
20
|
-
* @param fileReferences - The file references to resolve.
|
|
21
|
-
* @returns An array of resolved entry file references.
|
|
22
|
-
*/
|
|
23
|
-
declare function resolveInputsSync<TContext extends UnresolvedContext>(context: TContext, fileReferences: FileReferenceParameter | FileReferenceParameter[] | Record<string, FileReferenceParameter | FileReferenceParameter[]>): ResolvedEntryFileReference[];
|
|
24
|
-
/**
|
|
25
|
-
* Checks if the provided entry is a file reference.
|
|
26
|
-
*
|
|
27
|
-
* @param entry - The entry to check.
|
|
28
|
-
* @returns True if the entry is a file reference, false otherwise.
|
|
29
|
-
*/
|
|
30
|
-
declare function isFileReference(entry: any): entry is FileReference;
|
|
31
|
-
/**
|
|
32
|
-
* Checks if the provided entry is a resolved entry file reference.
|
|
33
|
-
*
|
|
34
|
-
* @param entry - The entry to check.
|
|
35
|
-
* @returns True if the entry is a resolved entry file reference, false otherwise.
|
|
36
|
-
*/
|
|
37
|
-
declare function isResolvedEntryFileReference(entry: FileReferenceParameter | ResolvedEntryFileReference): entry is ResolvedEntryFileReference;
|
|
38
|
-
/**
|
|
39
|
-
* Get unique inputs from the provided list.
|
|
40
|
-
*
|
|
41
|
-
* @param inputs - The entry points to process.
|
|
42
|
-
* @returns An array of unique inputs (by file path or content hash).
|
|
43
|
-
*/
|
|
44
|
-
declare function getUniqueInputs(inputs?: Config["input"]): ResolvedConfig["input"];
|
|
45
|
-
//#endregion
|
|
46
|
-
export { getUniqueInputs, isFileReference, isResolvedEntryFileReference, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync };
|
|
47
|
-
//# sourceMappingURL=entry.d.cts.map
|
|
1
|
+
import { a as resolveInput, i as resolveEntryOutput, n as isFileReference, o as resolveInputs, r as isResolvedEntryFileReference, s as resolveInputsSync, t as getUniqueInputs } from "../entry-BC_V2K2U.cjs";
|
|
2
|
+
export { getUniqueInputs, isFileReference, isResolvedEntryFileReference, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync };
|
package/dist/lib/entry.d.mts
CHANGED
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { UnresolvedContext } from "../types/context.mjs";
|
|
4
|
-
import { Config, ResolvedConfig, ResolvedEntryFileReference } from "../types/config.mjs";
|
|
5
|
-
import { FileReference, FileReferenceParameter } from "@stryke/types/configuration";
|
|
6
|
-
|
|
7
|
-
//#region src/lib/entry.d.ts
|
|
8
|
-
declare function resolveEntryOutput<TContext extends UnresolvedContext>(context: TContext, fileReference: FileReference): string;
|
|
9
|
-
declare function resolveInput<TContext extends UnresolvedContext>(context: TContext, fileReference: FileReference, input?: FileReferenceParameter, output?: string): ResolvedEntryFileReference;
|
|
10
|
-
/**
|
|
11
|
-
* Resolves multiple file references into their corresponding resolved entry file references.
|
|
12
|
-
*
|
|
13
|
-
* @param context - The current context
|
|
14
|
-
* @param fileReferences - The file references to resolve.
|
|
15
|
-
* @returns A promise that resolves to an array of resolved entry file references .
|
|
16
|
-
*/
|
|
17
|
-
declare function resolveInputs<TContext extends UnresolvedContext>(context: TContext, fileReferences: FileReferenceParameter | FileReferenceParameter[] | Record<string, FileReferenceParameter | FileReferenceParameter[]>): Promise<ResolvedEntryFileReference[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Resolves multiple file references into their corresponding resolved entry file references.
|
|
20
|
-
*
|
|
21
|
-
* @param context - The current context
|
|
22
|
-
* @param fileReferences - The file references to resolve.
|
|
23
|
-
* @returns An array of resolved entry file references.
|
|
24
|
-
*/
|
|
25
|
-
declare function resolveInputsSync<TContext extends UnresolvedContext>(context: TContext, fileReferences: FileReferenceParameter | FileReferenceParameter[] | Record<string, FileReferenceParameter | FileReferenceParameter[]>): ResolvedEntryFileReference[];
|
|
26
|
-
/**
|
|
27
|
-
* Checks if the provided entry is a file reference.
|
|
28
|
-
*
|
|
29
|
-
* @param entry - The entry to check.
|
|
30
|
-
* @returns True if the entry is a file reference, false otherwise.
|
|
31
|
-
*/
|
|
32
|
-
declare function isFileReference(entry: any): entry is FileReference;
|
|
33
|
-
/**
|
|
34
|
-
* Checks if the provided entry is a resolved entry file reference.
|
|
35
|
-
*
|
|
36
|
-
* @param entry - The entry to check.
|
|
37
|
-
* @returns True if the entry is a resolved entry file reference, false otherwise.
|
|
38
|
-
*/
|
|
39
|
-
declare function isResolvedEntryFileReference(entry: FileReferenceParameter | ResolvedEntryFileReference): entry is ResolvedEntryFileReference;
|
|
40
|
-
/**
|
|
41
|
-
* Get unique inputs from the provided list.
|
|
42
|
-
*
|
|
43
|
-
* @param inputs - The entry points to process.
|
|
44
|
-
* @returns An array of unique inputs (by file path or content hash).
|
|
45
|
-
*/
|
|
46
|
-
declare function getUniqueInputs(inputs?: Config["input"]): ResolvedConfig["input"];
|
|
47
|
-
//#endregion
|
|
48
|
-
export { getUniqueInputs, isFileReference, isResolvedEntryFileReference, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync };
|
|
49
|
-
//# sourceMappingURL=entry.d.mts.map
|
|
1
|
+
import { a as resolveInput, i as resolveEntryOutput, n as isFileReference, o as resolveInputs, r as isResolvedEntryFileReference, s as resolveInputsSync, t as getUniqueInputs } from "../entry-CHIaWcmk.mjs";
|
|
2
|
+
export { getUniqueInputs, isFileReference, isResolvedEntryFileReference, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync };
|
package/dist/lib/entry.mjs
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import __tsdown_shims_path from 'node:path'
|
|
4
|
-
import __tsdown_shims_url from 'node:url'
|
|
5
|
-
|
|
6
|
-
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
-
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
-
|
|
9
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
10
1
|
import { replacePathTokens } from "../plugin-utils/paths.mjs";
|
|
11
2
|
import { appendPath } from "@stryke/path/append";
|
|
12
3
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
@@ -21,15 +12,6 @@ import { extractFileReference } from "@stryke/convert/extract-file-reference";
|
|
|
21
12
|
import { murmurhash } from "@stryke/hash";
|
|
22
13
|
|
|
23
14
|
//#region src/lib/entry.ts
|
|
24
|
-
var entry_exports = /* @__PURE__ */ __exportAll({
|
|
25
|
-
getUniqueInputs: () => getUniqueInputs,
|
|
26
|
-
isFileReference: () => isFileReference,
|
|
27
|
-
isResolvedEntryFileReference: () => isResolvedEntryFileReference,
|
|
28
|
-
resolveEntryOutput: () => resolveEntryOutput,
|
|
29
|
-
resolveInput: () => resolveInput,
|
|
30
|
-
resolveInputs: () => resolveInputs,
|
|
31
|
-
resolveInputsSync: () => resolveInputsSync
|
|
32
|
-
});
|
|
33
15
|
function resolveEntryOutput(context, fileReference) {
|
|
34
16
|
return replaceExtension(replacePath(replacePath(replacePath(replacePath(replacePath(fileReference.file, joinPaths(context.config.cwd, context.config.root, "src")), joinPaths(context.config.cwd, context.config.root)), joinPaths(context.config.root, "src")), context.config.root), "src"));
|
|
35
17
|
}
|
|
@@ -131,5 +113,5 @@ function getUniqueInputs(inputs = []) {
|
|
|
131
113
|
}
|
|
132
114
|
|
|
133
115
|
//#endregion
|
|
134
|
-
export {
|
|
116
|
+
export { getUniqueInputs, isFileReference, isResolvedEntryFileReference, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync };
|
|
135
117
|
//# sourceMappingURL=entry.mjs.map
|
package/dist/lib/entry.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.mjs","names":[],"sources":["../../src/lib/entry.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { extractFileReference } from \"@stryke/convert/extract-file-reference\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { murmurhash } from \"@stryke/hash\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { isAbsolutePath } from \"@stryke/path/is-type\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type {\n FileReference,\n FileReferenceParameter\n} from \"@stryke/types/configuration\";\nimport { replacePathTokens } from \"../plugin-utils/paths\";\nimport {\n Config,\n ResolvedConfig,\n ResolvedEntryFileReference\n} from \"../types/config\";\nimport type { UnresolvedContext } from \"../types/context\";\n\nexport function resolveEntryOutput<TContext extends UnresolvedContext>(\n context: TContext,\n fileReference: FileReference\n): string {\n return replaceExtension(\n replacePath(\n replacePath(\n replacePath(\n replacePath(\n replacePath(\n fileReference.file,\n joinPaths(context.config.cwd, context.config.root, \"src\")\n ),\n joinPaths(context.config.cwd, context.config.root)\n ),\n joinPaths(context.config.root, \"src\")\n ),\n context.config.root\n ),\n \"src\"\n )\n );\n}\n\nexport function resolveInput<TContext extends UnresolvedContext>(\n context: TContext,\n fileReference: FileReference,\n input?: FileReferenceParameter,\n output?: string\n): ResolvedEntryFileReference {\n return {\n ...fileReference,\n input: isSetString(input) ? { file: String(input) } : fileReference,\n output: output || resolveEntryOutput(context, fileReference)\n };\n}\n\n/**\n * Resolves multiple file references into their corresponding resolved entry file references.\n *\n * @param context - The current context\n * @param fileReferences - The file references to resolve.\n * @returns A promise that resolves to an array of resolved entry file references .\n */\nexport async function resolveInputs<TContext extends UnresolvedContext>(\n context: TContext,\n fileReferences:\n | FileReferenceParameter\n | FileReferenceParameter[]\n | Record<string, FileReferenceParameter | FileReferenceParameter[]>\n): Promise<ResolvedEntryFileReference[]> {\n return (\n await Promise.all(\n (isObject(fileReferences) && !isFileReference(fileReferences)\n ? Object.values(fileReferences).flat()\n : toArray(fileReferences)\n )\n .map(async entry => {\n if (isResolvedEntryFileReference(entry)) {\n return {\n ...entry,\n output: entry.output\n ? replacePathTokens(context, entry.output)\n : undefined,\n file: replacePathTokens(context, entry.file)\n };\n }\n\n let typeDefinition: FileReference;\n if (isString(entry)) {\n typeDefinition = extractFileReference(\n replacePathTokens(context, entry)\n )!;\n } else {\n typeDefinition = entry;\n typeDefinition.file = replacePathTokens(\n context,\n typeDefinition.file\n );\n }\n\n const filePath = isAbsolutePath(typeDefinition.file)\n ? typeDefinition.file\n : appendPath(typeDefinition.file, context.config.root);\n if (await context.fs.isFile(filePath)) {\n return resolveInput(\n context,\n {\n file: replacePath(filePath, context.config.root),\n export: typeDefinition.export\n },\n (entry as ResolvedEntryFileReference).input,\n (entry as ResolvedEntryFileReference).output\n );\n }\n\n return (\n await context.fs.glob(appendPath(filePath, context.config.cwd))\n ).map(file =>\n resolveInput(\n context,\n {\n file: replacePath(file, context.config.root),\n export: typeDefinition.export\n },\n (entry as ResolvedEntryFileReference).input,\n (entry as ResolvedEntryFileReference).output\n )\n );\n })\n .flat()\n .filter(Boolean)\n )\n ).flat();\n}\n\n/**\n * Resolves multiple file references into their corresponding resolved entry file references.\n *\n * @param context - The current context\n * @param fileReferences - The file references to resolve.\n * @returns An array of resolved entry file references.\n */\nexport function resolveInputsSync<TContext extends UnresolvedContext>(\n context: TContext,\n fileReferences:\n | FileReferenceParameter\n | FileReferenceParameter[]\n | Record<string, FileReferenceParameter | FileReferenceParameter[]>\n): ResolvedEntryFileReference[] {\n return (\n isObject(fileReferences) && !isFileReference(fileReferences)\n ? Object.values(fileReferences).flat()\n : toArray(fileReferences)\n )\n .map(entry => {\n if (isResolvedEntryFileReference(entry)) {\n return {\n ...entry,\n output: entry.output\n ? replacePathTokens(context, entry.output)\n : undefined,\n file: replacePathTokens(context, entry.file)\n };\n }\n\n let typeDefinition: FileReference;\n if (isString(entry)) {\n typeDefinition = extractFileReference(\n replacePathTokens(context, entry)\n )!;\n } else {\n typeDefinition = entry;\n typeDefinition.file = replacePathTokens(context, typeDefinition.file);\n }\n\n const filePath = isAbsolutePath(typeDefinition.file)\n ? typeDefinition.file\n : appendPath(typeDefinition.file, context.config.root);\n if (context.fs.isFileSync(filePath)) {\n return resolveInput(context, {\n file: appendPath(filePath, context.config.cwd),\n export: typeDefinition.export\n });\n }\n\n return context.fs\n .globSync(appendPath(filePath, context.config.cwd))\n .map(file =>\n resolveInput(context, {\n file,\n export: typeDefinition.export\n })\n );\n })\n .flat()\n .filter(Boolean);\n}\n\n/**\n * Checks if the provided entry is a file reference.\n *\n * @param entry - The entry to check.\n * @returns True if the entry is a file reference, false otherwise.\n */\nexport function isFileReference(entry: any): entry is FileReference {\n return !isString(entry) && entry.file !== undefined;\n}\n\n/**\n * Checks if the provided entry is a resolved entry file reference.\n *\n * @param entry - The entry to check.\n * @returns True if the entry is a resolved entry file reference, false otherwise.\n */\nexport function isResolvedEntryFileReference(\n entry: FileReferenceParameter | ResolvedEntryFileReference\n): entry is ResolvedEntryFileReference {\n return (\n isFileReference(entry) &&\n (entry as ResolvedEntryFileReference).output !== undefined\n );\n}\n\n/**\n * Get unique inputs from the provided list.\n *\n * @param inputs - The entry points to process.\n * @returns An array of unique inputs (by file path or content hash).\n */\nexport function getUniqueInputs(\n inputs: Config[\"input\"] = []\n): ResolvedConfig[\"input\"] {\n return isObject(inputs)\n ? inputs\n : getUniqueBy(toArray(inputs), (item: FileReferenceParameter) =>\n isSetString(item) ? item : murmurhash(item ?? {}, { maxLength: 24 })\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"entry.mjs","names":[],"sources":["../../src/lib/entry.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { extractFileReference } from \"@stryke/convert/extract-file-reference\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { murmurhash } from \"@stryke/hash\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { isAbsolutePath } from \"@stryke/path/is-type\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type {\n FileReference,\n FileReferenceParameter\n} from \"@stryke/types/configuration\";\nimport { replacePathTokens } from \"../plugin-utils/paths\";\nimport {\n Config,\n ResolvedConfig,\n ResolvedEntryFileReference\n} from \"../types/config\";\nimport type { UnresolvedContext } from \"../types/context\";\n\nexport function resolveEntryOutput<TContext extends UnresolvedContext>(\n context: TContext,\n fileReference: FileReference\n): string {\n return replaceExtension(\n replacePath(\n replacePath(\n replacePath(\n replacePath(\n replacePath(\n fileReference.file,\n joinPaths(context.config.cwd, context.config.root, \"src\")\n ),\n joinPaths(context.config.cwd, context.config.root)\n ),\n joinPaths(context.config.root, \"src\")\n ),\n context.config.root\n ),\n \"src\"\n )\n );\n}\n\nexport function resolveInput<TContext extends UnresolvedContext>(\n context: TContext,\n fileReference: FileReference,\n input?: FileReferenceParameter,\n output?: string\n): ResolvedEntryFileReference {\n return {\n ...fileReference,\n input: isSetString(input) ? { file: String(input) } : fileReference,\n output: output || resolveEntryOutput(context, fileReference)\n };\n}\n\n/**\n * Resolves multiple file references into their corresponding resolved entry file references.\n *\n * @param context - The current context\n * @param fileReferences - The file references to resolve.\n * @returns A promise that resolves to an array of resolved entry file references .\n */\nexport async function resolveInputs<TContext extends UnresolvedContext>(\n context: TContext,\n fileReferences:\n | FileReferenceParameter\n | FileReferenceParameter[]\n | Record<string, FileReferenceParameter | FileReferenceParameter[]>\n): Promise<ResolvedEntryFileReference[]> {\n return (\n await Promise.all(\n (isObject(fileReferences) && !isFileReference(fileReferences)\n ? Object.values(fileReferences).flat()\n : toArray(fileReferences)\n )\n .map(async entry => {\n if (isResolvedEntryFileReference(entry)) {\n return {\n ...entry,\n output: entry.output\n ? replacePathTokens(context, entry.output)\n : undefined,\n file: replacePathTokens(context, entry.file)\n };\n }\n\n let typeDefinition: FileReference;\n if (isString(entry)) {\n typeDefinition = extractFileReference(\n replacePathTokens(context, entry)\n )!;\n } else {\n typeDefinition = entry;\n typeDefinition.file = replacePathTokens(\n context,\n typeDefinition.file\n );\n }\n\n const filePath = isAbsolutePath(typeDefinition.file)\n ? typeDefinition.file\n : appendPath(typeDefinition.file, context.config.root);\n if (await context.fs.isFile(filePath)) {\n return resolveInput(\n context,\n {\n file: replacePath(filePath, context.config.root),\n export: typeDefinition.export\n },\n (entry as ResolvedEntryFileReference).input,\n (entry as ResolvedEntryFileReference).output\n );\n }\n\n return (\n await context.fs.glob(appendPath(filePath, context.config.cwd))\n ).map(file =>\n resolveInput(\n context,\n {\n file: replacePath(file, context.config.root),\n export: typeDefinition.export\n },\n (entry as ResolvedEntryFileReference).input,\n (entry as ResolvedEntryFileReference).output\n )\n );\n })\n .flat()\n .filter(Boolean)\n )\n ).flat();\n}\n\n/**\n * Resolves multiple file references into their corresponding resolved entry file references.\n *\n * @param context - The current context\n * @param fileReferences - The file references to resolve.\n * @returns An array of resolved entry file references.\n */\nexport function resolveInputsSync<TContext extends UnresolvedContext>(\n context: TContext,\n fileReferences:\n | FileReferenceParameter\n | FileReferenceParameter[]\n | Record<string, FileReferenceParameter | FileReferenceParameter[]>\n): ResolvedEntryFileReference[] {\n return (\n isObject(fileReferences) && !isFileReference(fileReferences)\n ? Object.values(fileReferences).flat()\n : toArray(fileReferences)\n )\n .map(entry => {\n if (isResolvedEntryFileReference(entry)) {\n return {\n ...entry,\n output: entry.output\n ? replacePathTokens(context, entry.output)\n : undefined,\n file: replacePathTokens(context, entry.file)\n };\n }\n\n let typeDefinition: FileReference;\n if (isString(entry)) {\n typeDefinition = extractFileReference(\n replacePathTokens(context, entry)\n )!;\n } else {\n typeDefinition = entry;\n typeDefinition.file = replacePathTokens(context, typeDefinition.file);\n }\n\n const filePath = isAbsolutePath(typeDefinition.file)\n ? typeDefinition.file\n : appendPath(typeDefinition.file, context.config.root);\n if (context.fs.isFileSync(filePath)) {\n return resolveInput(context, {\n file: appendPath(filePath, context.config.cwd),\n export: typeDefinition.export\n });\n }\n\n return context.fs\n .globSync(appendPath(filePath, context.config.cwd))\n .map(file =>\n resolveInput(context, {\n file,\n export: typeDefinition.export\n })\n );\n })\n .flat()\n .filter(Boolean);\n}\n\n/**\n * Checks if the provided entry is a file reference.\n *\n * @param entry - The entry to check.\n * @returns True if the entry is a file reference, false otherwise.\n */\nexport function isFileReference(entry: any): entry is FileReference {\n return !isString(entry) && entry.file !== undefined;\n}\n\n/**\n * Checks if the provided entry is a resolved entry file reference.\n *\n * @param entry - The entry to check.\n * @returns True if the entry is a resolved entry file reference, false otherwise.\n */\nexport function isResolvedEntryFileReference(\n entry: FileReferenceParameter | ResolvedEntryFileReference\n): entry is ResolvedEntryFileReference {\n return (\n isFileReference(entry) &&\n (entry as ResolvedEntryFileReference).output !== undefined\n );\n}\n\n/**\n * Get unique inputs from the provided list.\n *\n * @param inputs - The entry points to process.\n * @returns An array of unique inputs (by file path or content hash).\n */\nexport function getUniqueInputs(\n inputs: Config[\"input\"] = []\n): ResolvedConfig[\"input\"] {\n return isObject(inputs)\n ? inputs\n : getUniqueBy(toArray(inputs), (item: FileReferenceParameter) =>\n isSetString(item) ? item : murmurhash(item ?? {}, { maxLength: 24 })\n );\n}\n"],"mappings":"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"}
|
package/dist/lib/environment.cjs
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import __tsdown_shims_path from 'node:path'
|
|
4
|
-
import __tsdown_shims_url from 'node:url'
|
|
5
|
-
|
|
6
|
-
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
-
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
-
|
|
9
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
|
-
const
|
|
2
|
+
const require_chunk = require('../chunk-C_NdSu1c.cjs');
|
|
11
3
|
const require_constants_environments = require('../constants/environments.cjs');
|
|
12
4
|
const require_lib_hooks = require('./hooks.cjs');
|
|
13
5
|
require('../constants/index.cjs');
|
|
14
6
|
let defu = require("defu");
|
|
15
|
-
defu =
|
|
7
|
+
defu = require_chunk.__toESM(defu, 1);
|
|
16
8
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
17
9
|
let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
|
|
18
10
|
let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
19
11
|
|
|
20
12
|
//#region src/lib/environment.ts
|
|
21
|
-
var environment_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
22
|
-
createDefaultEnvironment: () => createDefaultEnvironment,
|
|
23
|
-
createEnvironment: () => createEnvironment,
|
|
24
|
-
executeEnvironments: () => executeEnvironments,
|
|
25
|
-
getEnvironments: () => getEnvironments
|
|
26
|
-
});
|
|
27
13
|
function createEnvironment(name, config) {
|
|
28
14
|
return (0, defu.default)(config.environments?.[name] ?? {}, {
|
|
29
15
|
id: (0, _stryke_unique_id_uuid.uuid)(),
|
|
@@ -82,11 +68,5 @@ async function executeEnvironments(context, handle) {
|
|
|
82
68
|
//#endregion
|
|
83
69
|
exports.createDefaultEnvironment = createDefaultEnvironment;
|
|
84
70
|
exports.createEnvironment = createEnvironment;
|
|
85
|
-
Object.defineProperty(exports, 'environment_exports', {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function () {
|
|
88
|
-
return environment_exports;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
71
|
exports.executeEnvironments = executeEnvironments;
|
|
92
72
|
exports.getEnvironments = getEnvironments;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { EnvironmentContext,
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "../types/config.cjs";
|
|
1
|
+
import { $ as ExecutionContext, M as ResolvedConfig, Z as EnvironmentContext, d as EnvironmentResolvedConfig } from "../config-BnV_o0Es.cjs";
|
|
3
2
|
import { MaybePromise } from "@stryke/types/base";
|
|
4
3
|
|
|
5
4
|
//#region src/lib/environment.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.cts","names":[],"sources":["../../src/lib/environment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"environment.d.cts","names":[],"sources":["../../src/lib/environment.ts"],"mappings":";;;;iBAgCgB,iBAAA,yBACU,cAAA,GAAiB,cAAA,EACzC,IAAA,UAAc,MAAA,EAAQ,eAAA,GA0BL,yBAAA,CAA0B,eAAA;AAAA,iBAG7B,wBAAA,yBACU,cAAA,GAAiB,cAAA,EACzC,MAAA,EAAQ,eAAA,GAAe,yBAAA,CAAA,eAAA;AAAA,iBAIH,eAAA,yBACI,cAAA,GAAiB,cAAA,4BAGzC,OAAA,EAAS,gBAAA,CAAiB,eAAA,EAAiB,cAAA,IAC1C,OAAA,CAAQ,kBAAA,CAAmB,eAAA,EAAiB,cAAA;AAAA,iBAuDzB,mBAAA,yBACI,cAAA,GAAiB,cAAA,4BAGzC,OAAA,EAAS,gBAAA,CAAiB,eAAA,EAAiB,cAAA,GAC3C,MAAA,GACE,GAAA,EAAK,kBAAA,CAAmB,eAAA,EAAiB,cAAA,MACtC,YAAA,SAAkB,OAAA"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { EnvironmentContext, ExecutionContext } from "../types/context.mjs";
|
|
4
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "../types/config.mjs";
|
|
1
|
+
import { $ as ExecutionContext, M as ResolvedConfig, Z as EnvironmentContext, d as EnvironmentResolvedConfig } from "../config-DboKmDhl.mjs";
|
|
5
2
|
import { MaybePromise } from "@stryke/types/base";
|
|
6
3
|
|
|
7
4
|
//#region src/lib/environment.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.mts","names":[],"sources":["../../src/lib/environment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"environment.d.mts","names":[],"sources":["../../src/lib/environment.ts"],"mappings":";;;;iBAgCgB,iBAAA,yBACU,cAAA,GAAiB,cAAA,EACzC,IAAA,UAAc,MAAA,EAAQ,eAAA,GA0BL,yBAAA,CAA0B,eAAA;AAAA,iBAG7B,wBAAA,yBACU,cAAA,GAAiB,cAAA,EACzC,MAAA,EAAQ,eAAA,GAAe,yBAAA,CAAA,eAAA;AAAA,iBAIH,eAAA,yBACI,cAAA,GAAiB,cAAA,4BAGzC,OAAA,EAAS,gBAAA,CAAiB,eAAA,EAAiB,cAAA,IAC1C,OAAA,CAAQ,kBAAA,CAAmB,eAAA,EAAiB,cAAA;AAAA,iBAuDzB,mBAAA,yBACI,cAAA,GAAiB,cAAA,4BAGzC,OAAA,EAAS,gBAAA,CAAiB,eAAA,EAAiB,cAAA,GAC3C,MAAA,GACE,GAAA,EAAK,kBAAA,CAAmB,eAAA,EAAiB,cAAA,MACtC,YAAA,SAAkB,OAAA"}
|
package/dist/lib/environment.mjs
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import __tsdown_shims_path from 'node:path'
|
|
4
|
-
import __tsdown_shims_url from 'node:url'
|
|
5
|
-
|
|
6
|
-
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
-
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
-
|
|
9
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
10
1
|
import { DEFAULT_ENVIRONMENT } from "../constants/environments.mjs";
|
|
11
2
|
import { callHook } from "./hooks.mjs";
|
|
12
3
|
import "../constants/index.mjs";
|
|
@@ -16,12 +7,6 @@ import { uuid } from "@stryke/unique-id/uuid";
|
|
|
16
7
|
import { isSet } from "@stryke/type-checks/is-set";
|
|
17
8
|
|
|
18
9
|
//#region src/lib/environment.ts
|
|
19
|
-
var environment_exports = /* @__PURE__ */ __exportAll({
|
|
20
|
-
createDefaultEnvironment: () => createDefaultEnvironment,
|
|
21
|
-
createEnvironment: () => createEnvironment,
|
|
22
|
-
executeEnvironments: () => executeEnvironments,
|
|
23
|
-
getEnvironments: () => getEnvironments
|
|
24
|
-
});
|
|
25
10
|
function createEnvironment(name, config) {
|
|
26
11
|
return defu(config.environments?.[name] ?? {}, {
|
|
27
12
|
id: uuid(),
|
|
@@ -78,5 +63,5 @@ async function executeEnvironments(context, handle) {
|
|
|
78
63
|
}
|
|
79
64
|
|
|
80
65
|
//#endregion
|
|
81
|
-
export { createDefaultEnvironment, createEnvironment,
|
|
66
|
+
export { createDefaultEnvironment, createEnvironment, executeEnvironments, getEnvironments };
|
|
82
67
|
//# sourceMappingURL=environment.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.mjs","names":[],"sources":["../../src/lib/environment.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { MaybePromise } from \"@stryke/types/base\";\nimport { uuid } from \"@stryke/unique-id/uuid\";\nimport defu from \"defu\";\nimport { DEFAULT_ENVIRONMENT } from \"../constants\";\nimport type {\n EnvironmentContext,\n EnvironmentResolvedConfig,\n ExecutionContext,\n ResolvedConfig\n} from \"../types\";\nimport { callHook } from \"./hooks\";\n\nexport function createEnvironment<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>(name: string, config: TResolvedConfig) {\n return defu(config.environments?.[name] ?? {}, {\n id: uuid(),\n name,\n title: config.title ?? titleCase(config.name),\n ssr: false,\n resolve: {\n mainFields:\n config.platform === \"browser\"\n ? [\"browser\", \"module\", \"jsnext:main\", \"jsnext\"]\n : [\"module\", \"jsnext:main\", \"jsnext\"]\n },\n consumer: config.platform === \"browser\" ? \"client\" : \"server\",\n preview:\n config.platform === \"browser\"\n ? {\n port: 5173,\n open: true,\n strictPort: false,\n // https: false,\n host: \"localhost\",\n allowedHosts: [\".\"],\n cors: true,\n headers: {}\n }\n : undefined\n }) as unknown as EnvironmentResolvedConfig<TResolvedConfig>[\"environment\"];\n}\n\nexport function createDefaultEnvironment<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>(config: TResolvedConfig) {\n return createEnvironment<TResolvedConfig>(DEFAULT_ENVIRONMENT, config);\n}\n\nexport async function getEnvironments<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig,\n TSystemContext = unknown\n>(\n context: ExecutionContext<TResolvedConfig, TSystemContext>\n): Promise<EnvironmentContext<TResolvedConfig, TSystemContext>[]> {\n if (\n !context.config.environments ||\n Object.keys(context.config.environments).length <= 1\n ) {\n context.debug({\n meta: {\n category: \"config\"\n },\n message:\n \"No environments are configured for this Powerlines project. Using the default environment.\"\n });\n\n return [await context.getEnvironment()];\n }\n\n context.debug({\n meta: {\n category: \"config\"\n },\n message: `Found ${\n Object.keys(context.config.environments).length\n } configured environment(s) for this Powerlines project.`\n });\n\n return (\n await Promise.all(\n Object.entries(context.config.environments).map(\n async ([name, config]) => {\n const environment = await context.getEnvironmentSafe(name);\n if (!environment) {\n const resolvedEnvironment = await callHook(\n context,\n \"configEnvironment\",\n {\n environment: name\n },\n name,\n config\n );\n\n if (resolvedEnvironment) {\n context.environments[name] = await context.createEnvironment(\n resolvedEnvironment as EnvironmentResolvedConfig<TResolvedConfig>[\"environment\"]\n );\n }\n }\n\n return context.environments[name];\n }\n )\n )\n ).filter(env => isSet(env));\n}\n\nexport async function executeEnvironments<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig,\n TSystemContext = unknown\n>(\n context: ExecutionContext<TResolvedConfig, TSystemContext>,\n handle: (\n env: EnvironmentContext<TResolvedConfig, TSystemContext>\n ) => MaybePromise<void>\n) {\n await Promise.all(\n (await getEnvironments(context)).map(async env =>\n Promise.resolve(handle(env))\n )\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"environment.mjs","names":[],"sources":["../../src/lib/environment.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { MaybePromise } from \"@stryke/types/base\";\nimport { uuid } from \"@stryke/unique-id/uuid\";\nimport defu from \"defu\";\nimport { DEFAULT_ENVIRONMENT } from \"../constants\";\nimport type {\n EnvironmentContext,\n EnvironmentResolvedConfig,\n ExecutionContext,\n ResolvedConfig\n} from \"../types\";\nimport { callHook } from \"./hooks\";\n\nexport function createEnvironment<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>(name: string, config: TResolvedConfig) {\n return defu(config.environments?.[name] ?? {}, {\n id: uuid(),\n name,\n title: config.title ?? titleCase(config.name),\n ssr: false,\n resolve: {\n mainFields:\n config.platform === \"browser\"\n ? [\"browser\", \"module\", \"jsnext:main\", \"jsnext\"]\n : [\"module\", \"jsnext:main\", \"jsnext\"]\n },\n consumer: config.platform === \"browser\" ? \"client\" : \"server\",\n preview:\n config.platform === \"browser\"\n ? {\n port: 5173,\n open: true,\n strictPort: false,\n // https: false,\n host: \"localhost\",\n allowedHosts: [\".\"],\n cors: true,\n headers: {}\n }\n : undefined\n }) as unknown as EnvironmentResolvedConfig<TResolvedConfig>[\"environment\"];\n}\n\nexport function createDefaultEnvironment<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>(config: TResolvedConfig) {\n return createEnvironment<TResolvedConfig>(DEFAULT_ENVIRONMENT, config);\n}\n\nexport async function getEnvironments<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig,\n TSystemContext = unknown\n>(\n context: ExecutionContext<TResolvedConfig, TSystemContext>\n): Promise<EnvironmentContext<TResolvedConfig, TSystemContext>[]> {\n if (\n !context.config.environments ||\n Object.keys(context.config.environments).length <= 1\n ) {\n context.debug({\n meta: {\n category: \"config\"\n },\n message:\n \"No environments are configured for this Powerlines project. Using the default environment.\"\n });\n\n return [await context.getEnvironment()];\n }\n\n context.debug({\n meta: {\n category: \"config\"\n },\n message: `Found ${\n Object.keys(context.config.environments).length\n } configured environment(s) for this Powerlines project.`\n });\n\n return (\n await Promise.all(\n Object.entries(context.config.environments).map(\n async ([name, config]) => {\n const environment = await context.getEnvironmentSafe(name);\n if (!environment) {\n const resolvedEnvironment = await callHook(\n context,\n \"configEnvironment\",\n {\n environment: name\n },\n name,\n config\n );\n\n if (resolvedEnvironment) {\n context.environments[name] = await context.createEnvironment(\n resolvedEnvironment as EnvironmentResolvedConfig<TResolvedConfig>[\"environment\"]\n );\n }\n }\n\n return context.environments[name];\n }\n )\n )\n ).filter(env => isSet(env));\n}\n\nexport async function executeEnvironments<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig,\n TSystemContext = unknown\n>(\n context: ExecutionContext<TResolvedConfig, TSystemContext>,\n handle: (\n env: EnvironmentContext<TResolvedConfig, TSystemContext>\n ) => MaybePromise<void>\n) {\n await Promise.all(\n (await getEnvironments(context)).map(async env =>\n Promise.resolve(handle(env))\n )\n );\n}\n"],"mappings":";;;;;;;;;AAgCA,SAAgB,kBAEd,MAAc,QAAyB;CACvC,OAAO,KAAK,OAAO,eAAe,SAAS,CAAC,GAAG;EAC7C,IAAI,KAAK;EACT;EACA,OAAO,OAAO,SAAS,UAAU,OAAO,IAAI;EAC5C,KAAK;EACL,SAAS,EACP,YACE,OAAO,aAAa,YAChB;GAAC;GAAW;GAAU;GAAe;EAAQ,IAC7C;GAAC;GAAU;GAAe;EAAQ,EAC1C;EACA,UAAU,OAAO,aAAa,YAAY,WAAW;EACrD,SACE,OAAO,aAAa,YAChB;GACE,MAAM;GACN,MAAM;GACN,YAAY;GAEZ,MAAM;GACN,cAAc,CAAC,GAAG;GAClB,MAAM;GACN,SAAS,CAAC;EACZ,IACA;CACR,CAAC;AACH;AAEA,SAAgB,yBAEd,QAAyB;CACzB,OAAO,kBAAmC,qBAAqB,MAAM;AACvE;AAEA,eAAsB,gBAIpB,SACgE;CAChE,IACE,CAAC,QAAQ,OAAO,gBAChB,OAAO,KAAK,QAAQ,OAAO,YAAY,EAAE,UAAU,GACnD;EACA,QAAQ,MAAM;GACZ,MAAM,EACJ,UAAU,SACZ;GACA,SACE;EACJ,CAAC;EAED,OAAO,CAAC,MAAM,QAAQ,eAAe,CAAC;CACxC;CAEA,QAAQ,MAAM;EACZ,MAAM,EACJ,UAAU,SACZ;EACA,SAAS,SACP,OAAO,KAAK,QAAQ,OAAO,YAAY,EAAE,OAC1C;CACH,CAAC;CAED,QACE,MAAM,QAAQ,IACZ,OAAO,QAAQ,QAAQ,OAAO,YAAY,EAAE,IAC1C,OAAO,CAAC,MAAM,YAAY;EAExB,IAAI,CAAC,MADqB,QAAQ,mBAAmB,IAAI,GACvC;GAChB,MAAM,sBAAsB,MAAM,SAChC,SACA,qBACA,EACE,aAAa,KACf,GACA,MACA,MACF;GAEA,IAAI,qBACF,QAAQ,aAAa,QAAQ,MAAM,QAAQ,kBACzC,mBACF;EAEJ;EAEA,OAAO,QAAQ,aAAa;CAC9B,CACF,CACF,GACA,QAAO,QAAO,MAAM,GAAG,CAAC;AAC5B;AAEA,eAAsB,oBAIpB,SACA,QAGA;CACA,MAAM,QAAQ,KACX,MAAM,gBAAgB,OAAO,GAAG,IAAI,OAAM,QACzC,QAAQ,QAAQ,OAAO,GAAG,CAAC,CAC7B,CACF;AACF"}
|
package/dist/lib/events.cjs
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import __tsdown_shims_path from 'node:path'
|
|
4
|
-
import __tsdown_shims_url from 'node:url'
|
|
5
|
-
|
|
6
|
-
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
-
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
-
|
|
9
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
11
2
|
|
|
12
3
|
//#region src/lib/events.ts
|
|
13
|
-
var events_exports = /* @__PURE__ */ require_runtime.__exportAll({ createEventEmitter: () => createEventEmitter });
|
|
14
4
|
/**
|
|
15
5
|
* Create event emitter.
|
|
16
6
|
*/
|
|
@@ -50,10 +40,4 @@ function createEventEmitter() {
|
|
|
50
40
|
}
|
|
51
41
|
|
|
52
42
|
//#endregion
|
|
53
|
-
exports.createEventEmitter = createEventEmitter;
|
|
54
|
-
Object.defineProperty(exports, 'events_exports', {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return events_exports;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
43
|
+
exports.createEventEmitter = createEventEmitter;
|
package/dist/lib/events.d.cts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/lib/events.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Create event emitter.
|
|
6
|
-
*/
|
|
7
|
-
declare function createEventEmitter<Events extends EventsMap>(): EventEmitter<Events>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { createEventEmitter };
|
|
10
|
-
//# sourceMappingURL=events.d.cts.map
|
|
1
|
+
import { t as createEventEmitter } from "../events-NA1XM2Vz.cjs";
|
|
2
|
+
export { createEventEmitter };
|
package/dist/lib/events.d.mts
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { EventEmitter, EventsMap } from "devframe/types";
|
|
4
|
-
|
|
5
|
-
//#region src/lib/events.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Create event emitter.
|
|
8
|
-
*/
|
|
9
|
-
declare function createEventEmitter<Events extends EventsMap>(): EventEmitter<Events>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { createEventEmitter };
|
|
12
|
-
//# sourceMappingURL=events.d.mts.map
|
|
1
|
+
import { t as createEventEmitter } from "../events-NA1XM2Vz.mjs";
|
|
2
|
+
export { createEventEmitter };
|
package/dist/lib/events.mjs
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import __tsdown_shims_path from 'node:path'
|
|
4
|
-
import __tsdown_shims_url from 'node:url'
|
|
5
|
-
|
|
6
|
-
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
-
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
-
|
|
9
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
10
|
-
|
|
11
1
|
//#region src/lib/events.ts
|
|
12
|
-
var events_exports = /* @__PURE__ */ __exportAll({ createEventEmitter: () => createEventEmitter });
|
|
13
2
|
/**
|
|
14
3
|
* Create event emitter.
|
|
15
4
|
*/
|
|
@@ -49,5 +38,5 @@ function createEventEmitter() {
|
|
|
49
38
|
}
|
|
50
39
|
|
|
51
40
|
//#endregion
|
|
52
|
-
export { createEventEmitter
|
|
41
|
+
export { createEventEmitter };
|
|
53
42
|
//# sourceMappingURL=events.mjs.map
|
package/dist/lib/events.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.mjs","names":[],"sources":["../../src/lib/events.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { EventEmitter, EventsMap, EventUnsubscribe } from \"devframe/types\";\n\n/**\n * Create event emitter.\n */\nexport function createEventEmitter<\n Events extends EventsMap\n>(): EventEmitter<Events> {\n const _listeners: Partial<{ [E in keyof Events]: Events[E][] }> = {};\n\n function emit<K extends keyof Events>(\n event: K,\n ...args: Parameters<Events[K]>\n ) {\n const callbacks = _listeners[event] || [];\n for (let i = 0, length = callbacks.length; i < length; i++) {\n const callback = callbacks[i];\n if (callback) {\n // eslint-disable-next-line ts/no-unsafe-call\n callback(...args);\n }\n }\n }\n function emitOnce<K extends keyof Events>(\n event: K,\n ...args: Parameters<Events[K]>\n ) {\n emit(event, ...args);\n delete _listeners[event];\n }\n function on<K extends keyof Events>(\n event: K,\n cb: Events[K]\n ): EventUnsubscribe {\n (_listeners[event] ||= [] as Events[K][]).push(cb);\n return () => {\n _listeners[event] = _listeners[event]?.filter(i => cb !== i);\n };\n }\n function once<K extends keyof Events>(event: K, cb: Events[K]) {\n const unsubscribe = on(event, ((...args: Parameters<Events[K]>) => {\n unsubscribe();\n\n // eslint-disable-next-line ts/no-unsafe-call\n return cb(...args);\n }) as Events[K]);\n\n return unsubscribe;\n }\n\n return {\n _listeners,\n emit,\n emitOnce,\n on,\n once\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.mjs","names":[],"sources":["../../src/lib/events.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { EventEmitter, EventsMap, EventUnsubscribe } from \"devframe/types\";\n\n/**\n * Create event emitter.\n */\nexport function createEventEmitter<\n Events extends EventsMap\n>(): EventEmitter<Events> {\n const _listeners: Partial<{ [E in keyof Events]: Events[E][] }> = {};\n\n function emit<K extends keyof Events>(\n event: K,\n ...args: Parameters<Events[K]>\n ) {\n const callbacks = _listeners[event] || [];\n for (let i = 0, length = callbacks.length; i < length; i++) {\n const callback = callbacks[i];\n if (callback) {\n // eslint-disable-next-line ts/no-unsafe-call\n callback(...args);\n }\n }\n }\n function emitOnce<K extends keyof Events>(\n event: K,\n ...args: Parameters<Events[K]>\n ) {\n emit(event, ...args);\n delete _listeners[event];\n }\n function on<K extends keyof Events>(\n event: K,\n cb: Events[K]\n ): EventUnsubscribe {\n (_listeners[event] ||= [] as Events[K][]).push(cb);\n return () => {\n _listeners[event] = _listeners[event]?.filter(i => cb !== i);\n };\n }\n function once<K extends keyof Events>(event: K, cb: Events[K]) {\n const unsubscribe = on(event, ((...args: Parameters<Events[K]>) => {\n unsubscribe();\n\n // eslint-disable-next-line ts/no-unsafe-call\n return cb(...args);\n }) as Events[K]);\n\n return unsubscribe;\n }\n\n return {\n _listeners,\n emit,\n emitOnce,\n on,\n once\n };\n}\n"],"mappings":";;;;AAuBA,SAAgB,qBAEU;CACxB,MAAM,aAA4D,CAAC;CAEnE,SAAS,KACP,OACA,GAAG,MACH;EACA,MAAM,YAAY,WAAW,UAAU,CAAC;EACxC,KAAK,IAAI,IAAI,GAAG,SAAS,UAAU,QAAQ,IAAI,QAAQ,KAAK;GAC1D,MAAM,WAAW,UAAU;GAC3B,IAAI,UAEF,SAAS,GAAG,IAAI;EAEpB;CACF;CACA,SAAS,SACP,OACA,GAAG,MACH;EACA,KAAK,OAAO,GAAG,IAAI;EACnB,OAAO,WAAW;CACpB;CACA,SAAS,GACP,OACA,IACkB;EAClB,CAAC,WAAW,WAAW,CAAC,GAAkB,KAAK,EAAE;EACjD,aAAa;GACX,WAAW,SAAS,WAAW,QAAQ,QAAO,MAAK,OAAO,CAAC;EAC7D;CACF;CACA,SAAS,KAA6B,OAAU,IAAe;EAC7D,MAAM,cAAc,GAAG,SAAS,GAAG,SAAgC;GACjE,YAAY;GAGZ,OAAO,GAAG,GAAG,IAAI;EACnB,EAAe;EAEf,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import __tsdown_shims_path from 'node:path'
|
|
4
|
-
import __tsdown_shims_url from 'node:url'
|
|
5
|
-
|
|
6
|
-
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
-
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
-
|
|
9
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
11
2
|
const require_lib_utilities_format = require('./utilities/format.cjs');
|
|
12
3
|
const require_lib_hooks = require('./hooks.cjs');
|
|
13
4
|
const require_lib_typescript_ts_morph = require('./typescript/ts-morph.cjs');
|
|
@@ -27,11 +18,6 @@ let _stryke_string_format_pretty_bytes = require("@stryke/string-format/pretty-b
|
|
|
27
18
|
let ts_morph = require("ts-morph");
|
|
28
19
|
|
|
29
20
|
//#region src/lib/generate-types.ts
|
|
30
|
-
var generate_types_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
31
|
-
emitBuiltinTypes: () => emitBuiltinTypes,
|
|
32
|
-
formatTypes: () => formatTypes,
|
|
33
|
-
handleTypes: () => handleTypes
|
|
34
|
-
});
|
|
35
21
|
/**
|
|
36
22
|
* Formats the generated TypeScript types source code.
|
|
37
23
|
*
|
|
@@ -381,10 +367,4 @@ ${formatTypes(code)}
|
|
|
381
367
|
//#endregion
|
|
382
368
|
exports.emitBuiltinTypes = emitBuiltinTypes;
|
|
383
369
|
exports.formatTypes = formatTypes;
|
|
384
|
-
Object.defineProperty(exports, 'generate_types_exports', {
|
|
385
|
-
enumerable: true,
|
|
386
|
-
get: function () {
|
|
387
|
-
return generate_types_exports;
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
370
|
exports.handleTypes = handleTypes;
|
|
@@ -1,66 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { SourceFile } from "ts-morph";
|
|
4
|
-
|
|
5
|
-
//#region src/lib/generate-types.d.ts
|
|
6
|
-
interface ModuleExportSpecifier {
|
|
7
|
-
name: string;
|
|
8
|
-
alias?: string;
|
|
9
|
-
default?: boolean;
|
|
10
|
-
type?: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface ModuleReference {
|
|
13
|
-
name?: string;
|
|
14
|
-
specifiers?: ModuleExportSpecifier[];
|
|
15
|
-
all?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface ImportModuleReference extends ModuleReference {
|
|
18
|
-
name: string;
|
|
19
|
-
ambient?: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface ExportModuleReference extends ModuleReference {
|
|
22
|
-
text: string;
|
|
23
|
-
fullText: string;
|
|
24
|
-
comment?: string;
|
|
25
|
-
}
|
|
26
|
-
interface ModuleDeclaration {
|
|
27
|
-
name: string;
|
|
28
|
-
text: string;
|
|
29
|
-
sourceFile: SourceFile;
|
|
30
|
-
comment?: string;
|
|
31
|
-
exports: (ExportModuleReference | string)[];
|
|
32
|
-
imports: ImportModuleReference[];
|
|
33
|
-
}
|
|
34
|
-
interface TypegenContext {
|
|
35
|
-
context: Context;
|
|
36
|
-
emitted: Map<string, string>;
|
|
37
|
-
modules: ModuleDeclaration[];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Formats the generated TypeScript types source code.
|
|
41
|
-
*
|
|
42
|
-
* @param code - The generated TypeScript code.
|
|
43
|
-
* @returns The formatted TypeScript code.
|
|
44
|
-
*/
|
|
45
|
-
declare function formatTypes(code?: string): string;
|
|
46
|
-
/**
|
|
47
|
-
* Emits TypeScript declaration types for the provided files using the given TypeScript configuration.
|
|
48
|
-
*
|
|
49
|
-
* @param context - The context containing options and environment paths.
|
|
50
|
-
* @param files - The list of files to generate types for.
|
|
51
|
-
* @returns A promise that resolves to the generated TypeScript declaration types.
|
|
52
|
-
*/
|
|
53
|
-
declare function emitBuiltinTypes<TContext extends Context>(context: TContext, files: string[]): Promise<{
|
|
54
|
-
code: string;
|
|
55
|
-
directives: string[];
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Generate the Powerlines TypeScript declaration file
|
|
59
|
-
*
|
|
60
|
-
* @param context - The execution context for generating the TypeScript declaration file, which provides access to the project configuration, environment, and utility functions for performing the generation. The context is used to manage the state and behavior of the generation process, allowing for hooks to be called at different stages and for environment-specific configurations to be applied.
|
|
61
|
-
* @param env - The environment context to use for generating the TypeScript declaration file
|
|
62
|
-
*/
|
|
63
|
-
declare function handleTypes<TResolvedConfig extends ResolvedConfig, TSystemContext = unknown>(context: ExecutionContext<TResolvedConfig, TSystemContext>, env: EnvironmentContext<TResolvedConfig, TSystemContext>): Promise<void>;
|
|
64
|
-
//#endregion
|
|
65
|
-
export { TypegenContext, emitBuiltinTypes, formatTypes, handleTypes };
|
|
66
|
-
//# sourceMappingURL=generate-types.d.cts.map
|
|
1
|
+
import { i as handleTypes, n as emitBuiltinTypes, r as formatTypes, t as TypegenContext } from "../generate-types-CDkVosrS.cjs";
|
|
2
|
+
export { TypegenContext, emitBuiltinTypes, formatTypes, handleTypes };
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { Context, EnvironmentContext, ExecutionContext } from "../types/context.mjs";
|
|
4
|
-
import { ResolvedConfig } from "../types/config.mjs";
|
|
5
|
-
import { SourceFile } from "ts-morph";
|
|
6
|
-
|
|
7
|
-
//#region src/lib/generate-types.d.ts
|
|
8
|
-
interface ModuleExportSpecifier {
|
|
9
|
-
name: string;
|
|
10
|
-
alias?: string;
|
|
11
|
-
default?: boolean;
|
|
12
|
-
type?: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface ModuleReference {
|
|
15
|
-
name?: string;
|
|
16
|
-
specifiers?: ModuleExportSpecifier[];
|
|
17
|
-
all?: boolean;
|
|
18
|
-
}
|
|
19
|
-
interface ImportModuleReference extends ModuleReference {
|
|
20
|
-
name: string;
|
|
21
|
-
ambient?: boolean;
|
|
22
|
-
}
|
|
23
|
-
interface ExportModuleReference extends ModuleReference {
|
|
24
|
-
text: string;
|
|
25
|
-
fullText: string;
|
|
26
|
-
comment?: string;
|
|
27
|
-
}
|
|
28
|
-
interface ModuleDeclaration {
|
|
29
|
-
name: string;
|
|
30
|
-
text: string;
|
|
31
|
-
sourceFile: SourceFile;
|
|
32
|
-
comment?: string;
|
|
33
|
-
exports: (ExportModuleReference | string)[];
|
|
34
|
-
imports: ImportModuleReference[];
|
|
35
|
-
}
|
|
36
|
-
interface TypegenContext {
|
|
37
|
-
context: Context;
|
|
38
|
-
emitted: Map<string, string>;
|
|
39
|
-
modules: ModuleDeclaration[];
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Formats the generated TypeScript types source code.
|
|
43
|
-
*
|
|
44
|
-
* @param code - The generated TypeScript code.
|
|
45
|
-
* @returns The formatted TypeScript code.
|
|
46
|
-
*/
|
|
47
|
-
declare function formatTypes(code?: string): string;
|
|
48
|
-
/**
|
|
49
|
-
* Emits TypeScript declaration types for the provided files using the given TypeScript configuration.
|
|
50
|
-
*
|
|
51
|
-
* @param context - The context containing options and environment paths.
|
|
52
|
-
* @param files - The list of files to generate types for.
|
|
53
|
-
* @returns A promise that resolves to the generated TypeScript declaration types.
|
|
54
|
-
*/
|
|
55
|
-
declare function emitBuiltinTypes<TContext extends Context>(context: TContext, files: string[]): Promise<{
|
|
56
|
-
code: string;
|
|
57
|
-
directives: string[];
|
|
58
|
-
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Generate the Powerlines TypeScript declaration file
|
|
61
|
-
*
|
|
62
|
-
* @param context - The execution context for generating the TypeScript declaration file, which provides access to the project configuration, environment, and utility functions for performing the generation. The context is used to manage the state and behavior of the generation process, allowing for hooks to be called at different stages and for environment-specific configurations to be applied.
|
|
63
|
-
* @param env - The environment context to use for generating the TypeScript declaration file
|
|
64
|
-
*/
|
|
65
|
-
declare function handleTypes<TResolvedConfig extends ResolvedConfig, TSystemContext = unknown>(context: ExecutionContext<TResolvedConfig, TSystemContext>, env: EnvironmentContext<TResolvedConfig, TSystemContext>): Promise<void>;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { TypegenContext, emitBuiltinTypes, formatTypes, handleTypes };
|
|
68
|
-
//# sourceMappingURL=generate-types.d.mts.map
|
|
1
|
+
import { i as handleTypes, n as emitBuiltinTypes, r as formatTypes, t as TypegenContext } from "../generate-types-Dw6p3cB_.mjs";
|
|
2
|
+
export { TypegenContext, emitBuiltinTypes, formatTypes, handleTypes };
|