@powerlines/core 0.48.27 → 0.48.29
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 -9
- 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 +2 -10
- package/dist/context/base-context.d.cts +2 -81
- package/dist/context/base-context.d.mts +2 -83
- package/dist/context/base-context.mjs +0 -8
- package/dist/context/base-context.mjs.map +1 -1
- package/dist/context/context.cjs +2 -10
- package/dist/context/context.d.cts +2 -373
- package/dist/context/context.d.mts +2 -375
- package/dist/context/context.mjs +0 -8
- package/dist/context/context.mjs.map +1 -1
- package/dist/context/environment-context.cjs +0 -8
- 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 +0 -8
- package/dist/context/environment-context.mjs.map +1 -1
- package/dist/context/execution-context.cjs +2 -10
- 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 +0 -8
- 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 +0 -8
- 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 +0 -8
- 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-BKxpDArS.d.mts +15 -0
- package/dist/context-helpers-BKxpDArS.d.mts.map +1 -0
- package/dist/context-helpers-zXovPE7i.d.cts +15 -0
- package/dist/context-helpers-zXovPE7i.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-BKZ67WMa.d.cts +1 -0
- package/dist/index-BKZ67WMa.d.mts +1 -0
- package/dist/index-BVVgDSdq.d.cts +1 -0
- package/dist/index-BVVgDSdq.d.mts +1 -0
- package/dist/index-Den-MsLx.d.cts +1 -0
- package/dist/index-Den-MsLx.d.mts +1 -0
- package/dist/index-DmtQKWjk.d.cts +1 -0
- package/dist/index-DmtQKWjk.d.mts +1 -0
- package/dist/index-LtpXjuJR.d.mts +25 -0
- package/dist/index-LtpXjuJR.d.mts.map +1 -0
- package/dist/index-_6s0AX1B.d.cts +1 -0
- package/dist/index-_6s0AX1B.d.mts +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 -10
- package/dist/lib/config.d.cts +2 -140
- package/dist/lib/config.d.mts +2 -142
- package/dist/lib/config.mjs +0 -8
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/context-helpers.cjs +0 -8
- package/dist/lib/context-helpers.d.cts +2 -16
- package/dist/lib/context-helpers.d.mts +2 -18
- package/dist/lib/context-helpers.mjs +0 -8
- package/dist/lib/context-helpers.mjs.map +1 -1
- package/dist/lib/entry.cjs +0 -8
- package/dist/lib/entry.d.cts +2 -47
- package/dist/lib/entry.d.mts +2 -49
- package/dist/lib/entry.mjs +0 -8
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/environment.cjs +2 -10
- 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 +0 -8
- package/dist/lib/environment.mjs.map +1 -1
- package/dist/lib/events.cjs +0 -8
- package/dist/lib/events.d.cts +2 -10
- package/dist/lib/events.d.mts +2 -12
- package/dist/lib/events.mjs +0 -8
- package/dist/lib/events.mjs.map +1 -1
- package/dist/lib/generate-types.cjs +0 -8
- package/dist/lib/generate-types.d.cts +2 -66
- package/dist/lib/generate-types.d.mts +2 -68
- package/dist/lib/generate-types.mjs +0 -8
- package/dist/lib/generate-types.mjs.map +1 -1
- package/dist/lib/hooks.cjs +2 -10
- package/dist/lib/hooks.d.cts +2 -28
- package/dist/lib/hooks.d.mts +2 -30
- package/dist/lib/hooks.mjs +0 -8
- 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 +0 -8
- package/dist/lib/install-dependencies.d.cts +2 -12
- package/dist/lib/install-dependencies.d.mts +2 -14
- package/dist/lib/install-dependencies.mjs +0 -8
- 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 -10
- package/dist/lib/plugins.d.cts +2 -39
- package/dist/lib/plugins.d.mts +2 -41
- package/dist/lib/plugins.mjs +0 -8
- package/dist/lib/plugins.mjs.map +1 -1
- package/dist/lib/resolver.cjs +2 -10
- package/dist/lib/resolver.d.cts +2 -20
- package/dist/lib/resolver.d.mts +2 -22
- package/dist/lib/resolver.mjs +0 -8
- 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 +0 -8
- package/dist/lib/streaming-channel.d.cts +2 -126
- package/dist/lib/streaming-channel.d.mts +2 -128
- package/dist/lib/streaming-channel.mjs +0 -8
- 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 +2 -10
- 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 +0 -8
- package/dist/lib/typescript/ts-morph.mjs.map +1 -1
- package/dist/lib/typescript/tsconfig.cjs +4 -12
- package/dist/lib/typescript/tsconfig.d.cts +2 -77
- package/dist/lib/typescript/tsconfig.d.mts +2 -79
- package/dist/lib/typescript/tsconfig.mjs +0 -8
- package/dist/lib/typescript/tsconfig.mjs.map +1 -1
- package/dist/lib/unplugin/helpers.cjs +0 -8
- package/dist/lib/unplugin/helpers.d.cts +2 -23
- package/dist/lib/unplugin/helpers.d.mts +2 -25
- package/dist/lib/unplugin/helpers.mjs +0 -8
- 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 +2 -10
- 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 +0 -8
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +0 -8
- package/dist/lib/unplugin/plugin.d.cts +2 -40
- package/dist/lib/unplugin/plugin.d.mts +2 -42
- package/dist/lib/unplugin/plugin.mjs +0 -8
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/file-header.cjs +0 -8
- 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 +0 -8
- package/dist/lib/utilities/file-header.mjs.map +1 -1
- package/dist/lib/utilities/format.cjs +2 -10
- package/dist/lib/utilities/format.d.cts +2 -24
- package/dist/lib/utilities/format.d.mts +2 -26
- package/dist/lib/utilities/format.mjs +0 -8
- 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 +2 -10
- 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 +0 -8
- package/dist/lib/utilities/source-file.mjs.map +1 -1
- package/dist/lib/utilities/source-map.cjs +2 -10
- 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 +0 -8
- package/dist/lib/utilities/source-map.mjs.map +1 -1
- package/dist/lib/utilities/write-file.cjs +0 -8
- 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 +0 -8
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/lib/vfs.cjs +3 -11
- package/dist/lib/vfs.d.cts +2 -321
- package/dist/lib/vfs.d.mts +2 -323
- package/dist/lib/vfs.mjs +1 -9
- 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 +0 -8
- 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 +0 -8
- 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 -8
- 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 +0 -8
- package/dist/plugin-utils/build-helpers.mjs.map +1 -1
- package/dist/plugin-utils/combine-plugins.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/docs-helper.mjs.map +1 -1
- package/dist/plugin-utils/enable-plugin.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/enable-plugin.mjs.map +1 -1
- package/dist/plugin-utils/extend.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +2 -10
- 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 +0 -8
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/format.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/format.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.cjs +0 -8
- 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 +0 -8
- 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 +0 -8
- 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 +0 -8
- package/dist/plugin-utils/install.mjs.map +1 -1
- package/dist/plugin-utils/logging.cjs +2 -10
- 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 +0 -8
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +2 -10
- 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 +0 -8
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/plugin-utils/modules.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/modules.mjs.map +1 -1
- package/dist/plugin-utils/paths.cjs +0 -8
- 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 +0 -8
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/virtual.cjs +0 -8
- 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 +0 -8
- 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 +0 -8
- 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 +0 -8
- package/dist/storage/base.mjs.map +1 -1
- package/dist/storage/file-system.cjs +0 -8
- 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 +0 -8
- package/dist/storage/file-system.mjs.map +1 -1
- package/dist/storage/helpers.cjs +0 -8
- package/dist/storage/helpers.d.mts +0 -2
- package/dist/storage/helpers.d.mts.map +1 -1
- package/dist/storage/helpers.mjs +0 -8
- 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 +0 -8
- package/dist/storage/virtual.d.cts +1 -1
- package/dist/storage/virtual.d.cts.map +1 -1
- package/dist/storage/virtual.d.mts +1 -3
- package/dist/storage/virtual.d.mts.map +1 -1
- package/dist/storage/virtual.mjs +0 -8
- 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 +17 -17
- package/dist/constants/api.d.cts.map +0 -1
- package/dist/constants/api.d.mts.map +0 -1
- package/dist/constants/commands.d.cts.map +0 -1
- package/dist/constants/commands.d.mts.map +0 -1
- package/dist/constants/devtools.d.cts.map +0 -1
- package/dist/constants/devtools.d.mts.map +0 -1
- package/dist/constants/environments.d.cts.map +0 -1
- package/dist/constants/environments.d.mts.map +0 -1
- package/dist/constants/extensions.d.cts.map +0 -1
- package/dist/constants/extensions.d.mts.map +0 -1
- package/dist/constants/fs.d.cts.map +0 -1
- package/dist/constants/fs.d.mts.map +0 -1
- package/dist/constants/hooks.d.cts.map +0 -1
- package/dist/constants/hooks.d.mts.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/meta.d.cts.map +0 -1
- package/dist/constants/meta.d.mts.map +0 -1
- package/dist/constants/plugin.d.cts.map +0 -1
- package/dist/constants/plugin.d.mts.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/context.d.cts.map +0 -1
- package/dist/context/context.d.mts.map +0 -1
- package/dist/lib/config.d.cts.map +0 -1
- package/dist/lib/config.d.mts.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/entry.d.cts.map +0 -1
- package/dist/lib/entry.d.mts.map +0 -1
- package/dist/lib/events.d.cts.map +0 -1
- package/dist/lib/events.d.mts.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/hooks.d.cts.map +0 -1
- package/dist/lib/hooks.d.mts.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/meta.d.cts.map +0 -1
- package/dist/lib/meta.d.mts.map +0 -1
- package/dist/lib/plugins.d.cts.map +0 -1
- package/dist/lib/plugins.d.mts.map +0 -1
- package/dist/lib/resolver.d.cts.map +0 -1
- package/dist/lib/resolver.d.mts.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/typescript/ts-morph.d.cts.map +0 -1
- package/dist/lib/typescript/ts-morph.d.mts.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/unplugin/helpers.d.cts.map +0 -1
- package/dist/lib/unplugin/helpers.d.mts.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/plugin.d.cts.map +0 -1
- package/dist/lib/unplugin/plugin.d.mts.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/format.d.cts.map +0 -1
- package/dist/lib/utilities/format.d.mts.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-map.d.cts.map +0 -1
- package/dist/lib/utilities/source-map.d.mts.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/vfs.d.cts.map +0 -1
- package/dist/lib/vfs.d.mts.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/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
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
let _stryke_path_join = require("@stryke/path/join");
|
|
11
3
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-helper.d.mts","names":[],"sources":["../../src/plugin-utils/docs-helper.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs-helper.d.mts","names":[],"sources":["../../src/plugin-utils/docs-helper.ts"],"mappings":";;AA0BA;;;;AAA8C;iBAA9B,iBAAA,CAAkB,IAAY"}
|
|
@@ -1,11 +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
1
|
import { joinPaths } from "@stryke/path/join";
|
|
10
2
|
|
|
11
3
|
//#region src/plugin-utils/docs-helper.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-helper.mjs","names":[],"sources":["../../src/plugin-utils/docs-helper.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 { joinPaths } from \"@stryke/path/join\";\n\n/**\n * Gets the output path for the generated environment documentation.\n *\n * @param root - The root directory of the project.\n * @returns The output path for the generated environment documentation.\n */\nexport function getDocsOutputPath(root: string): string {\n return joinPaths(root, \"docs\", \"reference\");\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs-helper.mjs","names":[],"sources":["../../src/plugin-utils/docs-helper.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 { joinPaths } from \"@stryke/path/join\";\n\n/**\n * Gets the output path for the generated environment documentation.\n *\n * @param root - The root directory of the project.\n * @returns The output path for the generated environment documentation.\n */\nexport function getDocsOutputPath(root: string): string {\n return joinPaths(root, \"docs\", \"reference\");\n}\n"],"mappings":";;;;;;;;;AA0BA,SAAgB,kBAAkB,MAAsB;CACtD,OAAO,UAAU,MAAM,QAAQ,WAAW;AAC5C"}
|
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
let _stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
|
11
3
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Plugin } from "../
|
|
2
|
-
import { PluginContext } from "../types/context.cjs";
|
|
1
|
+
import { Qt as Plugin, it as PluginContext } from "../config-BnV_o0Es.cjs";
|
|
3
2
|
//#region src/plugin-utils/enable-plugin.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Utility function to conditionally enable plugins based on a boolean value or a function that returns a boolean. This is useful for scenarios where you want to enable certain plugins only in specific environments (e.g., development vs production) or based on certain conditions (e.g., presence of environment variables).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-plugin.d.cts","names":[],"sources":["../../src/plugin-utils/enable-plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"enable-plugin.d.cts","names":[],"sources":["../../src/plugin-utils/enable-plugin.ts"],"mappings":";;;;AA6CA;;;;;;;;;;;;;;;;;;;;iBAAgB,MAAA,kBAAwB,aAAA,GAAgB,aAAA,EACtD,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,KAClC,SAAA,+BACC,MAAA,CAAO,QAAA"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { Plugin } from "../types/plugin.mjs";
|
|
4
|
-
import { PluginContext } from "../types/context.mjs";
|
|
1
|
+
import { Qt as Plugin, it as PluginContext } from "../config-DboKmDhl.mjs";
|
|
5
2
|
//#region src/plugin-utils/enable-plugin.d.ts
|
|
6
3
|
/**
|
|
7
4
|
* Utility function to conditionally enable plugins based on a boolean value or a function that returns a boolean. This is useful for scenarios where you want to enable certain plugins only in specific environments (e.g., development vs production) or based on certain conditions (e.g., presence of environment variables).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-plugin.d.mts","names":[],"sources":["../../src/plugin-utils/enable-plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"enable-plugin.d.mts","names":[],"sources":["../../src/plugin-utils/enable-plugin.ts"],"mappings":";;;;AA6CA;;;;;;;;;;;;;;;;;;;;iBAAgB,MAAA,kBAAwB,aAAA,GAAgB,aAAA,EACtD,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,KAClC,SAAA,+BACC,MAAA,CAAO,QAAA"}
|
|
@@ -1,11 +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
1
|
import { isFunction } from "@stryke/type-checks/is-function";
|
|
10
2
|
import { toArray } from "@stryke/convert/to-array";
|
|
11
3
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-plugin.mjs","names":[],"sources":["../../src/plugin-utils/enable-plugin.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 { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { Plugin } from \"../types\";\nimport { PluginContext } from \"../types/context\";\n\n/**\n * Utility function to conditionally enable plugins based on a boolean value or a function that returns a boolean. This is useful for scenarios where you want to enable certain plugins only in specific environments (e.g., development vs production) or based on certain conditions (e.g., presence of environment variables).\n *\n * @example\n * ```ts\n * const somePlugin = <TContext extends PluginContext = PluginContext>(options: { enableThirdPlugin: boolean }) => {\n * return [\n * ...enable<TContext>(anotherPlugin, () => process.env.NODE_ENV === \"development\"),\n * ...enable<TContext>(yetAnotherPlugin, process.env.ENABLE_YET_ANOTHER_PLUGIN === \"true\"),\n * ...enable<TContext>(thirdPlugin, options.enableThirdPlugin),\n * {\n * name: \"some-plugin\",\n * ...\n * }\n * ];\n * };\n * ```\n *\n * @param plugin - A single plugin or an array of plugins to conditionally enable.\n * @param condition - A boolean value or a function that returns a boolean. If it's a function, it will be executed to determine whether to enable the plugin(s). If it's a boolean, it will be used directly.\n * @returns An array of plugins that should be enabled based on the provided condition. If the condition is false, an empty array will be returned.\n */\nexport function enable<TContext extends PluginContext = PluginContext>(\n plugin: Plugin<TContext> | Plugin<TContext>[],\n condition: boolean | (() => boolean) = true\n): Plugin<TContext>[] {\n return (isFunction(condition) && condition()) ||\n (!isFunction(condition) && condition)\n ? toArray(plugin).filter(Boolean)\n : [];\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"enable-plugin.mjs","names":[],"sources":["../../src/plugin-utils/enable-plugin.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 { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { Plugin } from \"../types\";\nimport { PluginContext } from \"../types/context\";\n\n/**\n * Utility function to conditionally enable plugins based on a boolean value or a function that returns a boolean. This is useful for scenarios where you want to enable certain plugins only in specific environments (e.g., development vs production) or based on certain conditions (e.g., presence of environment variables).\n *\n * @example\n * ```ts\n * const somePlugin = <TContext extends PluginContext = PluginContext>(options: { enableThirdPlugin: boolean }) => {\n * return [\n * ...enable<TContext>(anotherPlugin, () => process.env.NODE_ENV === \"development\"),\n * ...enable<TContext>(yetAnotherPlugin, process.env.ENABLE_YET_ANOTHER_PLUGIN === \"true\"),\n * ...enable<TContext>(thirdPlugin, options.enableThirdPlugin),\n * {\n * name: \"some-plugin\",\n * ...\n * }\n * ];\n * };\n * ```\n *\n * @param plugin - A single plugin or an array of plugins to conditionally enable.\n * @param condition - A boolean value or a function that returns a boolean. If it's a function, it will be executed to determine whether to enable the plugin(s). If it's a boolean, it will be used directly.\n * @returns An array of plugins that should be enabled based on the provided condition. If the condition is false, an empty array will be returned.\n */\nexport function enable<TContext extends PluginContext = PluginContext>(\n plugin: Plugin<TContext> | Plugin<TContext>[],\n condition: boolean | (() => boolean) = true\n): Plugin<TContext>[] {\n return (isFunction(condition) && condition()) ||\n (!isFunction(condition) && condition)\n ? toArray(plugin).filter(Boolean)\n : [];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,OACd,QACA,YAAuC,MACnB;CACpB,OAAQ,WAAW,SAAS,KAAK,UAAU,KACxC,CAAC,WAAW,SAAS,KAAK,YACzB,QAAQ,MAAM,EAAE,OAAO,OAAO,IAC9B,CAAC;AACP"}
|
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
const require_plugin_utils_merge = require('./merge.cjs');
|
|
11
3
|
let _stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Plugin } from "../
|
|
2
|
-
import { PluginContext } from "../types/context.cjs";
|
|
3
|
-
import { PartialPlugin, PartialPluginFactory, PluginFactory } from "../types/config.cjs";
|
|
1
|
+
import { C as PartialPluginFactory, D as PluginFactory, Qt as Plugin, S as PartialPlugin, it as PluginContext } from "../config-BnV_o0Es.cjs";
|
|
4
2
|
|
|
5
3
|
//#region src/plugin-utils/extend.d.ts
|
|
6
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend.d.cts","names":[],"sources":["../../src/plugin-utils/extend.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"extend.d.cts","names":[],"sources":["../../src/plugin-utils/extend.ts"],"mappings":";;;AAoCA;;;;;;;AAAA,iBAAgB,MAAA,kBACG,aAAA,GAAgB,aAAA,yDAIjC,MAAA,EAAQ,aAAA,CAAc,QAAA,EAAU,cAAA,GAChC,SAAA,EAAW,oBAAA,CAAqB,QAAA,EAAU,iBAAA,IACzC,aAAA,CAAc,QAAA,EAAU,cAAA,GAAiB,iBAAA;AAAA,iBAC5B,MAAA,kBACG,aAAA,GAAgB,aAAA,4BAGjC,MAAA,EAAQ,aAAA,CAAc,QAAA,EAAU,cAAA,GAChC,SAAA,EAAW,aAAA,CAAc,QAAA,IACxB,aAAA,CAAc,QAAA,EAAU,cAAA;AAAA,iBACX,MAAA,kBACG,aAAA,GAAgB,aAAA,+BAGjC,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,KAClC,SAAA,EAAW,oBAAA,CAAqB,QAAA,EAAU,iBAAA,IACzC,aAAA,CAAc,QAAA,EAAU,iBAAA;AAAA,iBACX,MAAA,kBAAwB,aAAA,GAAgB,aAAA,EACtD,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,KAClC,SAAA,EAAW,aAAA,CAAc,QAAA,IACxB,MAAA,CAAO,QAAA"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { Plugin } from "../types/plugin.mjs";
|
|
4
|
-
import { PluginContext } from "../types/context.mjs";
|
|
5
|
-
import { PartialPlugin, PartialPluginFactory, PluginFactory } from "../types/config.mjs";
|
|
1
|
+
import { C as PartialPluginFactory, D as PluginFactory, Qt as Plugin, S as PartialPlugin, it as PluginContext } from "../config-DboKmDhl.mjs";
|
|
6
2
|
|
|
7
3
|
//#region src/plugin-utils/extend.d.ts
|
|
8
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend.d.mts","names":[],"sources":["../../src/plugin-utils/extend.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extend.d.mts","names":[],"sources":["../../src/plugin-utils/extend.ts"],"mappings":";;;AAoCA;;;;;;;AAAA,iBAAgB,MAAA,kBACG,aAAA,GAAgB,aAAA,yDAIjC,MAAA,EAAQ,aAAA,CAAc,QAAA,EAAU,cAAA,GAChC,SAAA,EAAW,oBAAA,CAAqB,QAAA,EAAU,iBAAA,IACzC,aAAA,CAAc,QAAA,EAAU,cAAA,GAAiB,iBAAA;AAAA,iBAC5B,MAAA,kBACG,aAAA,GAAgB,aAAA,4BAGjC,MAAA,EAAQ,aAAA,CAAc,QAAA,EAAU,cAAA,GAChC,SAAA,EAAW,aAAA,CAAc,QAAA,IACxB,aAAA,CAAc,QAAA,EAAU,cAAA;AAAA,iBACX,MAAA,kBACG,aAAA,GAAgB,aAAA,+BAGjC,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,KAClC,SAAA,EAAW,oBAAA,CAAqB,QAAA,EAAU,iBAAA,IACzC,aAAA,CAAc,QAAA,EAAU,iBAAA;AAAA,iBACX,MAAA,kBAAwB,aAAA,GAAgB,aAAA,EACtD,MAAA,EAAQ,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,KAClC,SAAA,EAAW,aAAA,CAAc,QAAA,IACxB,MAAA,CAAO,QAAA"}
|
|
@@ -1,11 +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
1
|
import { merge } from "./merge.mjs";
|
|
10
2
|
import { isFunction } from "@stryke/type-checks/is-function";
|
|
11
3
|
import { toArray } from "@stryke/convert/to-array";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend.mjs","names":[],"sources":["../../src/plugin-utils/extend.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 { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport {\n PartialPlugin,\n PartialPluginFactory,\n PluginFactory\n} from \"../types/config\";\nimport { PluginContext } from \"../types/context\";\nimport { Plugin } from \"../types/plugin\";\nimport { merge } from \"./merge\";\n\n/**\n * Adds additional helper functionality to a plugin via a plugin builder function.\n *\n * @param plugin - The base plugin object or factory function to extend.\n * @param extension - The plugin extension object or factory function. This function receives the plugin options and returns a plugin object.\n * @returns A function accepting the plugin options and returning the extended plugin.\n */\nexport function extend<\n TContext extends PluginContext = PluginContext,\n TPluginOptions = unknown,\n TExtensionOptions = unknown\n>(\n plugin: PluginFactory<TContext, TPluginOptions>,\n extension: PartialPluginFactory<TContext, TExtensionOptions>\n): PluginFactory<TContext, TPluginOptions & TExtensionOptions>;\nexport function extend<\n TContext extends PluginContext = PluginContext,\n TPluginOptions = unknown\n>(\n plugin: PluginFactory<TContext, TPluginOptions>,\n extension: PartialPlugin<TContext>\n): PluginFactory<TContext, TPluginOptions>;\nexport function extend<\n TContext extends PluginContext = PluginContext,\n TExtensionOptions = unknown\n>(\n plugin: Plugin<TContext> | Plugin<TContext>[],\n extension: PartialPluginFactory<TContext, TExtensionOptions>\n): PluginFactory<TContext, TExtensionOptions>;\nexport function extend<TContext extends PluginContext = PluginContext>(\n plugin: Plugin<TContext> | Plugin<TContext>[],\n extension: PartialPlugin<TContext>\n): Plugin<TContext>[];\nexport function extend<TContext extends PluginContext = PluginContext>(\n plugin: Plugin<TContext> | Plugin<TContext>[] | PluginFactory<TContext, any>,\n extension: PartialPlugin<TContext> | PartialPluginFactory<TContext, any>\n): PluginFactory<TContext, any> | Plugin<TContext>[] {\n if (isFunction(plugin)) {\n if (isFunction(extension)) {\n return async (options: any) => {\n const pluginResult = toArray(await Promise.resolve(plugin(options)));\n const extensionResult = toArray(\n await Promise.resolve(extension(options))\n );\n\n return pluginResult\n .map(p => extensionResult.map(e => merge(p, e) as Plugin<TContext>))\n .flat();\n };\n }\n\n return async (options: any) => {\n const result = toArray(await Promise.resolve(plugin(options)));\n\n return result.map(p => merge(p, extension) as Plugin<TContext>);\n };\n } else if (isFunction(extension)) {\n return async (options: any) => {\n const result = toArray(await Promise.resolve(extension(options)));\n\n return result\n .map(e => toArray(plugin).map(p => merge(p, e) as Plugin<TContext>))\n .flat();\n };\n }\n\n return toArray(plugin).map(p => merge(p, extension) as Plugin<TContext>);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extend.mjs","names":[],"sources":["../../src/plugin-utils/extend.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 { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport {\n PartialPlugin,\n PartialPluginFactory,\n PluginFactory\n} from \"../types/config\";\nimport { PluginContext } from \"../types/context\";\nimport { Plugin } from \"../types/plugin\";\nimport { merge } from \"./merge\";\n\n/**\n * Adds additional helper functionality to a plugin via a plugin builder function.\n *\n * @param plugin - The base plugin object or factory function to extend.\n * @param extension - The plugin extension object or factory function. This function receives the plugin options and returns a plugin object.\n * @returns A function accepting the plugin options and returning the extended plugin.\n */\nexport function extend<\n TContext extends PluginContext = PluginContext,\n TPluginOptions = unknown,\n TExtensionOptions = unknown\n>(\n plugin: PluginFactory<TContext, TPluginOptions>,\n extension: PartialPluginFactory<TContext, TExtensionOptions>\n): PluginFactory<TContext, TPluginOptions & TExtensionOptions>;\nexport function extend<\n TContext extends PluginContext = PluginContext,\n TPluginOptions = unknown\n>(\n plugin: PluginFactory<TContext, TPluginOptions>,\n extension: PartialPlugin<TContext>\n): PluginFactory<TContext, TPluginOptions>;\nexport function extend<\n TContext extends PluginContext = PluginContext,\n TExtensionOptions = unknown\n>(\n plugin: Plugin<TContext> | Plugin<TContext>[],\n extension: PartialPluginFactory<TContext, TExtensionOptions>\n): PluginFactory<TContext, TExtensionOptions>;\nexport function extend<TContext extends PluginContext = PluginContext>(\n plugin: Plugin<TContext> | Plugin<TContext>[],\n extension: PartialPlugin<TContext>\n): Plugin<TContext>[];\nexport function extend<TContext extends PluginContext = PluginContext>(\n plugin: Plugin<TContext> | Plugin<TContext>[] | PluginFactory<TContext, any>,\n extension: PartialPlugin<TContext> | PartialPluginFactory<TContext, any>\n): PluginFactory<TContext, any> | Plugin<TContext>[] {\n if (isFunction(plugin)) {\n if (isFunction(extension)) {\n return async (options: any) => {\n const pluginResult = toArray(await Promise.resolve(plugin(options)));\n const extensionResult = toArray(\n await Promise.resolve(extension(options))\n );\n\n return pluginResult\n .map(p => extensionResult.map(e => merge(p, e) as Plugin<TContext>))\n .flat();\n };\n }\n\n return async (options: any) => {\n const result = toArray(await Promise.resolve(plugin(options)));\n\n return result.map(p => merge(p, extension) as Plugin<TContext>);\n };\n } else if (isFunction(extension)) {\n return async (options: any) => {\n const result = toArray(await Promise.resolve(extension(options)));\n\n return result\n .map(e => toArray(plugin).map(p => merge(p, e) as Plugin<TContext>))\n .flat();\n };\n }\n\n return toArray(plugin).map(p => merge(p, extension) as Plugin<TContext>);\n}\n"],"mappings":";;;;;AA8DA,SAAgB,OACd,QACA,WACmD;CACnD,IAAI,WAAW,MAAM,GAAG;EACtB,IAAI,WAAW,SAAS,GACtB,OAAO,OAAO,YAAiB;GAC7B,MAAM,eAAe,QAAQ,MAAM,QAAQ,QAAQ,OAAO,OAAO,CAAC,CAAC;GACnE,MAAM,kBAAkB,QACtB,MAAM,QAAQ,QAAQ,UAAU,OAAO,CAAC,CAC1C;GAEA,OAAO,aACJ,KAAI,MAAK,gBAAgB,KAAI,MAAK,MAAM,GAAG,CAAC,CAAqB,CAAC,EAClE,KAAK;EACV;EAGF,OAAO,OAAO,YAAiB;GAG7B,OAFe,QAAQ,MAAM,QAAQ,QAAQ,OAAO,OAAO,CAAC,CAEhD,EAAE,KAAI,MAAK,MAAM,GAAG,SAAS,CAAqB;EAChE;CACF,OAAO,IAAI,WAAW,SAAS,GAC7B,OAAO,OAAO,YAAiB;EAG7B,OAFe,QAAQ,MAAM,QAAQ,QAAQ,UAAU,OAAO,CAAC,CAEnD,EACT,KAAI,MAAK,QAAQ,MAAM,EAAE,KAAI,MAAK,MAAM,GAAG,CAAC,CAAqB,CAAC,EAClE,KAAK;CACV;CAGF,OAAO,QAAQ,MAAM,EAAE,KAAI,MAAK,MAAM,GAAG,SAAS,CAAqB;AACzE"}
|
|
@@ -1,13 +1,5 @@
|
|
|
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_plugin_utils_virtual = require('./virtual.cjs');
|
|
12
4
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
13
5
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
@@ -15,7 +7,7 @@ let _stryke_type_checks_is_regexp = require("@stryke/type-checks/is-regexp");
|
|
|
15
7
|
let _stryke_path_is_type = require("@stryke/path/is-type");
|
|
16
8
|
let node_path = require("node:path");
|
|
17
9
|
let picomatch = require("picomatch");
|
|
18
|
-
picomatch =
|
|
10
|
+
picomatch = require_chunk.__toESM(picomatch, 1);
|
|
19
11
|
|
|
20
12
|
//#region src/plugin-utils/filter.ts
|
|
21
13
|
const BACKSLASH_REGEX = /\\/g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedStringFilter, PluginFilter
|
|
1
|
+
import { Jt as TransformHookFilter, Kt as NormalizedStringFilter, qt as PluginFilter } from "../config-BnV_o0Es.cjs";
|
|
2
2
|
import { StringFilter, StringOrRegExp } from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin-utils/filter.d.ts
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { NormalizedStringFilter, PluginFilter, TransformHookFilter } from "../types/hooks.mjs";
|
|
1
|
+
import { Jt as TransformHookFilter, Kt as NormalizedStringFilter, qt as PluginFilter } from "../config-DboKmDhl.mjs";
|
|
4
2
|
import { StringFilter, StringOrRegExp } from "unplugin";
|
|
5
3
|
|
|
6
4
|
//#region src/plugin-utils/filter.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.mts","names":[],"sources":["../../src/plugin-utils/filter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter.d.mts","names":[],"sources":["../../src/plugin-utils/filter.ts"],"mappings":";;;;iBA+CgB,iBAAA,CAAkB,OAAA,EAAS,cAAA,GAAiB,YAAY;AAAA,iBAoBxD,mBAAA,CAAoB,OAAA,EAAS,cAAA,GAAiB,YAAY;AAAA,iBAW1D,YAAA,CACd,OAAA,EAAS,YAAA,gBACT,OAAA,EAAS,YAAA,iBACR,YAAA;AAAA,iBAgBa,qBAAA,CACd,MAAA,WAAiB,MAAA,YACP,MAAM;AAAA,iBAQF,eAAA,CAAgB,MAAA,EAAQ,YAAA,GAAe,sBAAsB;AAAA,iBAuB7D,cAAA,CACd,MAAA,EAAQ,YAAA,eACP,YAAY;AAAA,iBASC,gBAAA,CACd,MAAA,EAAQ,YAAA,eACP,YAAY;AAAA,iBASC,iBAAA,CACd,MAAA,EAAQ,YAAA,eACP,YAAY;AAAA,iBAMC,wBAAA,CACd,QAAA,EAAU,YAAA,cACV,UAAA,EAAY,YAAA,eACX,mBAAA"}
|
|
@@ -1,11 +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
1
|
import { removeVirtualPrefix } from "./virtual.mjs";
|
|
10
2
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
11
3
|
import { toArray } from "@stryke/convert/to-array";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.mjs","names":[],"sources":["../../src/plugin-utils/filter.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 { toArray } from \"@stryke/convert/to-array\";\nimport { isAbsolutePath } from \"@stryke/path/is-type\";\nimport { isRegExp } from \"@stryke/type-checks/is-regexp\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { resolve } from \"node:path\";\nimport picomatch from \"picomatch\";\nimport type { StringFilter, StringOrRegExp } from \"unplugin\";\nimport {\n NormalizedStringFilter,\n PluginFilter,\n TransformHookFilter\n} from \"../types/hooks\";\nimport { removeVirtualPrefix } from \"./virtual\";\n\nconst BACKSLASH_REGEX = /\\\\/g;\nfunction normalize(path: string): string {\n return removeVirtualPrefix(path).replace(BACKSLASH_REGEX, \"/\");\n}\n\nfunction getMatcherString(glob: string, cwd: string) {\n if (glob.startsWith(\"**\") || isAbsolutePath(glob)) {\n return normalize(glob);\n }\n\n const resolved = resolve(cwd, glob);\n\n return normalize(resolved);\n}\n\nexport function patternToIdFilter(pattern: StringOrRegExp): PluginFilter {\n if (pattern instanceof RegExp) {\n return (id: string) => {\n const normalizedId = normalize(id);\n const result = pattern.test(normalizedId);\n pattern.lastIndex = 0;\n return result;\n };\n }\n const cwd = process.cwd();\n const glob = getMatcherString(pattern, cwd);\n const matcher = picomatch(glob, { dot: true });\n\n return (id: string) => {\n const normalizedId = normalize(id);\n\n return matcher(normalizedId);\n };\n}\n\nexport function patternToCodeFilter(pattern: StringOrRegExp): PluginFilter {\n if (pattern instanceof RegExp) {\n return (code: string) => {\n const result = pattern.test(code);\n pattern.lastIndex = 0;\n return result;\n };\n }\n return (code: string) => code.includes(pattern);\n}\n\nexport function createFilter(\n exclude: PluginFilter[] | undefined,\n include: PluginFilter[] | undefined\n): PluginFilter | undefined {\n if (!exclude && !include) {\n return;\n }\n\n return input => {\n if (exclude?.some(filter => filter(input))) {\n return false;\n }\n if (include?.some(filter => filter(input))) {\n return true;\n }\n return !(include && include.length > 0);\n };\n}\n\nexport function normalizeSingleFilter(\n filter: string | RegExp\n): string | RegExp {\n if (isSetString(filter)) {\n return removeVirtualPrefix(filter);\n }\n\n return filter;\n}\n\nexport function normalizeFilter(filter: StringFilter): NormalizedStringFilter {\n if (isSetString(filter) || isRegExp(filter)) {\n return {\n include: [normalizeSingleFilter(filter)]\n };\n }\n\n if (Array.isArray(filter)) {\n return {\n include: filter.map(normalizeSingleFilter)\n };\n }\n\n return {\n exclude: filter.exclude\n ? toArray(filter.exclude).map(normalizeSingleFilter)\n : undefined,\n include: filter.include\n ? toArray(filter.include).map(normalizeSingleFilter)\n : undefined\n };\n}\n\nexport function createIdFilter(\n filter: StringFilter | undefined\n): PluginFilter | undefined {\n if (!filter) return;\n const { exclude, include } = normalizeFilter(filter);\n const excludeFilter = exclude?.map(patternToIdFilter);\n const includeFilter = include?.map(patternToIdFilter);\n\n return createFilter(excludeFilter, includeFilter);\n}\n\nexport function createCodeFilter(\n filter: StringFilter | undefined\n): PluginFilter | undefined {\n if (!filter) return;\n const { exclude, include } = normalizeFilter(filter);\n const excludeFilter = exclude?.map(patternToCodeFilter);\n const includeFilter = include?.map(patternToCodeFilter);\n\n return createFilter(excludeFilter, includeFilter);\n}\n\nexport function createFilterForId(\n filter: StringFilter | undefined\n): PluginFilter | undefined {\n const filterFunction = createIdFilter(filter);\n\n return filterFunction ? id => !!filterFunction(id) : undefined;\n}\n\nexport function createFilterForTransform(\n idFilter: StringFilter | undefined,\n codeFilter: StringFilter | undefined\n): TransformHookFilter | undefined {\n if (!idFilter && !codeFilter) return;\n const idFilterFunction = createIdFilter(idFilter);\n const codeFilterFunction = createCodeFilter(codeFilter);\n\n return (id, code) => {\n let fallback = true;\n if (idFilterFunction) {\n fallback &&= idFilterFunction(id);\n }\n if (!fallback) {\n return false;\n }\n\n if (codeFilterFunction) {\n fallback &&= codeFilterFunction(code);\n }\n return fallback;\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter.mjs","names":[],"sources":["../../src/plugin-utils/filter.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 { toArray } from \"@stryke/convert/to-array\";\nimport { isAbsolutePath } from \"@stryke/path/is-type\";\nimport { isRegExp } from \"@stryke/type-checks/is-regexp\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { resolve } from \"node:path\";\nimport picomatch from \"picomatch\";\nimport type { StringFilter, StringOrRegExp } from \"unplugin\";\nimport {\n NormalizedStringFilter,\n PluginFilter,\n TransformHookFilter\n} from \"../types/hooks\";\nimport { removeVirtualPrefix } from \"./virtual\";\n\nconst BACKSLASH_REGEX = /\\\\/g;\nfunction normalize(path: string): string {\n return removeVirtualPrefix(path).replace(BACKSLASH_REGEX, \"/\");\n}\n\nfunction getMatcherString(glob: string, cwd: string) {\n if (glob.startsWith(\"**\") || isAbsolutePath(glob)) {\n return normalize(glob);\n }\n\n const resolved = resolve(cwd, glob);\n\n return normalize(resolved);\n}\n\nexport function patternToIdFilter(pattern: StringOrRegExp): PluginFilter {\n if (pattern instanceof RegExp) {\n return (id: string) => {\n const normalizedId = normalize(id);\n const result = pattern.test(normalizedId);\n pattern.lastIndex = 0;\n return result;\n };\n }\n const cwd = process.cwd();\n const glob = getMatcherString(pattern, cwd);\n const matcher = picomatch(glob, { dot: true });\n\n return (id: string) => {\n const normalizedId = normalize(id);\n\n return matcher(normalizedId);\n };\n}\n\nexport function patternToCodeFilter(pattern: StringOrRegExp): PluginFilter {\n if (pattern instanceof RegExp) {\n return (code: string) => {\n const result = pattern.test(code);\n pattern.lastIndex = 0;\n return result;\n };\n }\n return (code: string) => code.includes(pattern);\n}\n\nexport function createFilter(\n exclude: PluginFilter[] | undefined,\n include: PluginFilter[] | undefined\n): PluginFilter | undefined {\n if (!exclude && !include) {\n return;\n }\n\n return input => {\n if (exclude?.some(filter => filter(input))) {\n return false;\n }\n if (include?.some(filter => filter(input))) {\n return true;\n }\n return !(include && include.length > 0);\n };\n}\n\nexport function normalizeSingleFilter(\n filter: string | RegExp\n): string | RegExp {\n if (isSetString(filter)) {\n return removeVirtualPrefix(filter);\n }\n\n return filter;\n}\n\nexport function normalizeFilter(filter: StringFilter): NormalizedStringFilter {\n if (isSetString(filter) || isRegExp(filter)) {\n return {\n include: [normalizeSingleFilter(filter)]\n };\n }\n\n if (Array.isArray(filter)) {\n return {\n include: filter.map(normalizeSingleFilter)\n };\n }\n\n return {\n exclude: filter.exclude\n ? toArray(filter.exclude).map(normalizeSingleFilter)\n : undefined,\n include: filter.include\n ? toArray(filter.include).map(normalizeSingleFilter)\n : undefined\n };\n}\n\nexport function createIdFilter(\n filter: StringFilter | undefined\n): PluginFilter | undefined {\n if (!filter) return;\n const { exclude, include } = normalizeFilter(filter);\n const excludeFilter = exclude?.map(patternToIdFilter);\n const includeFilter = include?.map(patternToIdFilter);\n\n return createFilter(excludeFilter, includeFilter);\n}\n\nexport function createCodeFilter(\n filter: StringFilter | undefined\n): PluginFilter | undefined {\n if (!filter) return;\n const { exclude, include } = normalizeFilter(filter);\n const excludeFilter = exclude?.map(patternToCodeFilter);\n const includeFilter = include?.map(patternToCodeFilter);\n\n return createFilter(excludeFilter, includeFilter);\n}\n\nexport function createFilterForId(\n filter: StringFilter | undefined\n): PluginFilter | undefined {\n const filterFunction = createIdFilter(filter);\n\n return filterFunction ? id => !!filterFunction(id) : undefined;\n}\n\nexport function createFilterForTransform(\n idFilter: StringFilter | undefined,\n codeFilter: StringFilter | undefined\n): TransformHookFilter | undefined {\n if (!idFilter && !codeFilter) return;\n const idFilterFunction = createIdFilter(idFilter);\n const codeFilterFunction = createCodeFilter(codeFilter);\n\n return (id, code) => {\n let fallback = true;\n if (idFilterFunction) {\n fallback &&= idFilterFunction(id);\n }\n if (!fallback) {\n return false;\n }\n\n if (codeFilterFunction) {\n fallback &&= codeFilterFunction(code);\n }\n return fallback;\n };\n}\n"],"mappings":"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"}
|
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
const require_lib_utilities_format = require('../lib/utilities/format.cjs');
|
|
11
3
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-package-json.d.mts","names":[],"sources":["../../src/plugin-utils/format-package-json.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-package-json.d.mts","names":[],"sources":["../../src/plugin-utils/format-package-json.ts"],"mappings":";;;;;AA4BA;;;iBAAsB,iBAAA,CAAkB,OAAA,EAAS,OAAA,GAAO,OAAA"}
|
|
@@ -1,11 +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
1
|
import { format } from "../lib/utilities/format.mjs";
|
|
10
2
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
11
3
|
import { joinPaths } from "@stryke/path/join";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-package-json.mjs","names":[],"sources":["../../src/plugin-utils/format-package-json.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 { joinPaths } from \"@stryke/path/join\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { format } from \"../lib/utilities/format\";\nimport { Context } from \"../types/context\";\n\n/**\n * Formats the `package.json` file in the project root.\n *\n * @param context - The powerlines context.\n */\nexport async function formatPackageJson(context: Context) {\n const packageJsonPath = joinPaths(\n context.config.cwd,\n context.config.root,\n \"package.json\"\n );\n\n const packageJsonFile = await context.fs.read(packageJsonPath);\n if (isSetString(packageJsonFile)) {\n await context.fs.write(\n packageJsonPath,\n await format(context, packageJsonPath, packageJsonFile)\n );\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-package-json.mjs","names":[],"sources":["../../src/plugin-utils/format-package-json.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 { joinPaths } from \"@stryke/path/join\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { format } from \"../lib/utilities/format\";\nimport { Context } from \"../types/context\";\n\n/**\n * Formats the `package.json` file in the project root.\n *\n * @param context - The powerlines context.\n */\nexport async function formatPackageJson(context: Context) {\n const packageJsonPath = joinPaths(\n context.config.cwd,\n context.config.root,\n \"package.json\"\n );\n\n const packageJsonFile = await context.fs.read(packageJsonPath);\n if (isSetString(packageJsonFile)) {\n await context.fs.write(\n packageJsonPath,\n await format(context, packageJsonPath, packageJsonFile)\n );\n }\n}\n"],"mappings":";;;;;;;;;;AA4BA,eAAsB,kBAAkB,SAAkB;CACxD,MAAM,kBAAkB,UACtB,QAAQ,OAAO,KACf,QAAQ,OAAO,MACf,cACF;CAEA,MAAM,kBAAkB,MAAM,QAAQ,GAAG,KAAK,eAAe;CAC7D,IAAI,YAAY,eAAe,GAC7B,MAAM,QAAQ,GAAG,MACf,iBACA,MAAM,OAAO,SAAS,iBAAiB,eAAe,CACxD;AAEJ"}
|
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
11
3
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import __tsdown_shims_path from 'node:path';
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
1
|
//#region src/plugin-utils/format.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Formats a configuration object into a human-readable string, omitting certain properties and simplifying others for better readability.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.mts","names":[],"sources":["../../src/plugin-utils/format.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format.d.mts","names":[],"sources":["../../src/plugin-utils/format.ts"],"mappings":";;AAgCA;;;;AAAwD;iBAAxC,YAAA,CAAa,MAA2B,EAAnB,MAAM"}
|
|
@@ -1,11 +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
1
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
10
2
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
11
3
|
import { toArray } from "@stryke/convert/to-array";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.mjs","names":[],"sources":["../../src/plugin-utils/format.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 { toArray } from \"@stryke/convert/to-array\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { isRegExp } from \"@stryke/type-checks/is-regexp\";\nimport { isSetArray } from \"@stryke/type-checks/is-set-array\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ResolveConfig, ResolvedConfig } from \"../types/config\";\n\n/**\n * Formats a configuration object into a human-readable string, omitting certain properties and simplifying others for better readability.\n *\n * @param config - The configuration object to format.\n * @returns A formatted string representation of the configuration.\n */\nexport function formatConfig(config: Record<string, any>): string {\n return JSON.stringify(\n Object.fromEntries(\n Object.entries({\n ...omit(config, [\n \"deps\",\n \"resolve\",\n \"plugins\",\n \"initialConfig\",\n \"userConfig\",\n \"inlineConfig\",\n \"pluginConfig\",\n \"environmentConfig\"\n ]),\n deps: isSetObject(config.deps)\n ? {\n alwaysBundle: isSetArray(\n (config.deps as { alwaysBundle?: unknown[] })?.alwaysBundle\n )\n ? (\n (config.deps as { alwaysBundle?: unknown[] })\n ?.alwaysBundle ?? []\n )\n .filter(Boolean)\n .map(alwaysBundle =>\n isSetString(alwaysBundle)\n ? alwaysBundle\n : isRegExp(alwaysBundle)\n ? alwaysBundle.source\n : \"<unknown-bundle>\"\n )\n : undefined,\n onlyBundle: isSetArray(\n (config.deps as { onlyBundle?: unknown[] })?.onlyBundle\n )\n ? (\n (config.deps as { onlyBundle?: unknown[] })?.onlyBundle ??\n []\n )\n .filter(Boolean)\n .map(onlyBundle =>\n isSetString(onlyBundle)\n ? onlyBundle\n : isRegExp(onlyBundle)\n ? onlyBundle.source\n : \"<unknown-bundle>\"\n )\n : undefined,\n neverBundle: isSetArray(\n (config.deps as { neverBundle?: unknown[] })?.neverBundle\n )\n ? (\n (config.deps as { neverBundle?: unknown[] })?.neverBundle ??\n []\n )\n .filter(Boolean)\n .map(neverBundle =>\n isSetString(neverBundle)\n ? neverBundle\n : isRegExp(neverBundle)\n ? neverBundle.source\n : \"<unknown-bundle>\"\n )\n : undefined\n }\n : undefined,\n\n resolve: isSetObject(config.resolve)\n ? {\n ...config.resolve,\n external: isSetArray((config.resolve as ResolveConfig)?.external)\n ? ((config.resolve as ResolveConfig)?.external ?? [])\n .filter(Boolean)\n .map(external =>\n isSetString(external)\n ? external\n : isRegExp(external)\n ? external.source\n : \"<unknown-bundle>\"\n )\n : undefined,\n noExternal: isSetArray(\n (config.resolve as ResolveConfig)?.noExternal\n )\n ? ((config.resolve as ResolveConfig)?.noExternal ?? [])\n .filter(Boolean)\n .map(noExternal =>\n isSetString(noExternal)\n ? noExternal\n : isRegExp(noExternal)\n ? noExternal.source\n : \"<unknown-bundle>\"\n )\n : undefined\n }\n : undefined,\n plugins: isSetArray(config.plugins)\n ? (toArray(config.plugins) as ResolvedConfig[\"plugins\"])\n ?.flatMap(plugin => toArray(plugin))\n ?.map(plugin =>\n String(\n isSetString(plugin)\n ? plugin\n : isSetObject(plugin) &&\n isSetString((plugin as { name: string }).name)\n ? (plugin as { name: string }).name\n : Array.isArray(plugin) && isSetString(plugin[0])\n ? plugin[0]\n : \"<function-plugin>\"\n )\n )\n : undefined\n }).sort(([key1], [key2]) => key1.localeCompare(key2))\n ),\n null,\n 4\n )\n .replace(/\"([^\"]+)\":/g, \"$1:\")\n .replace(/,\\s*$/g, \"\");\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format.mjs","names":[],"sources":["../../src/plugin-utils/format.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 { toArray } from \"@stryke/convert/to-array\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { isRegExp } from \"@stryke/type-checks/is-regexp\";\nimport { isSetArray } from \"@stryke/type-checks/is-set-array\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ResolveConfig, ResolvedConfig } from \"../types/config\";\n\n/**\n * Formats a configuration object into a human-readable string, omitting certain properties and simplifying others for better readability.\n *\n * @param config - The configuration object to format.\n * @returns A formatted string representation of the configuration.\n */\nexport function formatConfig(config: Record<string, any>): string {\n return JSON.stringify(\n Object.fromEntries(\n Object.entries({\n ...omit(config, [\n \"deps\",\n \"resolve\",\n \"plugins\",\n \"initialConfig\",\n \"userConfig\",\n \"inlineConfig\",\n \"pluginConfig\",\n \"environmentConfig\"\n ]),\n deps: isSetObject(config.deps)\n ? {\n alwaysBundle: isSetArray(\n (config.deps as { alwaysBundle?: unknown[] })?.alwaysBundle\n )\n ? (\n (config.deps as { alwaysBundle?: unknown[] })\n ?.alwaysBundle ?? []\n )\n .filter(Boolean)\n .map(alwaysBundle =>\n isSetString(alwaysBundle)\n ? alwaysBundle\n : isRegExp(alwaysBundle)\n ? alwaysBundle.source\n : \"<unknown-bundle>\"\n )\n : undefined,\n onlyBundle: isSetArray(\n (config.deps as { onlyBundle?: unknown[] })?.onlyBundle\n )\n ? (\n (config.deps as { onlyBundle?: unknown[] })?.onlyBundle ??\n []\n )\n .filter(Boolean)\n .map(onlyBundle =>\n isSetString(onlyBundle)\n ? onlyBundle\n : isRegExp(onlyBundle)\n ? onlyBundle.source\n : \"<unknown-bundle>\"\n )\n : undefined,\n neverBundle: isSetArray(\n (config.deps as { neverBundle?: unknown[] })?.neverBundle\n )\n ? (\n (config.deps as { neverBundle?: unknown[] })?.neverBundle ??\n []\n )\n .filter(Boolean)\n .map(neverBundle =>\n isSetString(neverBundle)\n ? neverBundle\n : isRegExp(neverBundle)\n ? neverBundle.source\n : \"<unknown-bundle>\"\n )\n : undefined\n }\n : undefined,\n\n resolve: isSetObject(config.resolve)\n ? {\n ...config.resolve,\n external: isSetArray((config.resolve as ResolveConfig)?.external)\n ? ((config.resolve as ResolveConfig)?.external ?? [])\n .filter(Boolean)\n .map(external =>\n isSetString(external)\n ? external\n : isRegExp(external)\n ? external.source\n : \"<unknown-bundle>\"\n )\n : undefined,\n noExternal: isSetArray(\n (config.resolve as ResolveConfig)?.noExternal\n )\n ? ((config.resolve as ResolveConfig)?.noExternal ?? [])\n .filter(Boolean)\n .map(noExternal =>\n isSetString(noExternal)\n ? noExternal\n : isRegExp(noExternal)\n ? noExternal.source\n : \"<unknown-bundle>\"\n )\n : undefined\n }\n : undefined,\n plugins: isSetArray(config.plugins)\n ? (toArray(config.plugins) as ResolvedConfig[\"plugins\"])\n ?.flatMap(plugin => toArray(plugin))\n ?.map(plugin =>\n String(\n isSetString(plugin)\n ? plugin\n : isSetObject(plugin) &&\n isSetString((plugin as { name: string }).name)\n ? (plugin as { name: string }).name\n : Array.isArray(plugin) && isSetString(plugin[0])\n ? plugin[0]\n : \"<function-plugin>\"\n )\n )\n : undefined\n }).sort(([key1], [key2]) => key1.localeCompare(key2))\n ),\n null,\n 4\n )\n .replace(/\"([^\"]+)\":/g, \"$1:\")\n .replace(/,\\s*$/g, \"\");\n}\n"],"mappings":";;;;;;;;;;;;;;AAgCA,SAAgB,aAAa,QAAqC;CAChE,OAAO,KAAK,UACV,OAAO,YACL,OAAO,QAAQ;EACb,GAAG,KAAK,QAAQ;GACd;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EACD,MAAM,YAAY,OAAO,IAAI,IACzB;GACE,cAAc,WACX,OAAO,MAAuC,YACjD,KAEO,OAAO,MACJ,gBAAgB,CAAC,GAEpB,OAAO,OAAO,EACd,KAAI,iBACH,YAAY,YAAY,IACpB,eACA,SAAS,YAAY,IACnB,aAAa,SACb,kBACR,IACF;GACJ,YAAY,WACT,OAAO,MAAqC,UAC/C,KAEO,OAAO,MAAqC,cAC7C,CAAC,GAEA,OAAO,OAAO,EACd,KAAI,eACH,YAAY,UAAU,IAClB,aACA,SAAS,UAAU,IACjB,WAAW,SACX,kBACR,IACF;GACJ,aAAa,WACV,OAAO,MAAsC,WAChD,KAEO,OAAO,MAAsC,eAC9C,CAAC,GAEA,OAAO,OAAO,EACd,KAAI,gBACH,YAAY,WAAW,IACnB,cACA,SAAS,WAAW,IAClB,YAAY,SACZ,kBACR,IACF;EACN,IACA;EAEJ,SAAS,YAAY,OAAO,OAAO,IAC/B;GACE,GAAG,OAAO;GACV,UAAU,WAAY,OAAO,SAA2B,QAAQ,KAC1D,OAAO,SAA2B,YAAY,CAAC,GAC9C,OAAO,OAAO,EACd,KAAI,aACH,YAAY,QAAQ,IAChB,WACA,SAAS,QAAQ,IACf,SAAS,SACT,kBACR,IACF;GACJ,YAAY,WACT,OAAO,SAA2B,UACrC,KACM,OAAO,SAA2B,cAAc,CAAC,GAChD,OAAO,OAAO,EACd,KAAI,eACH,YAAY,UAAU,IAClB,aACA,SAAS,UAAU,IACjB,WAAW,SACX,kBACR,IACF;EACN,IACA;EACJ,SAAS,WAAW,OAAO,OAAO,IAC7B,QAAQ,OAAO,OAAO,GACnB,SAAQ,WAAU,QAAQ,MAAM,CAAC,GACjC,KAAI,WACJ,OACE,YAAY,MAAM,IACd,SACA,YAAY,MAAM,KAChB,YAAa,OAA4B,IAAI,IAC5C,OAA4B,OAC7B,MAAM,QAAQ,MAAM,KAAK,YAAY,OAAO,EAAE,IAC5C,OAAO,KACP,mBACV,CACF,IACF;CACN,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,KAAK,cAAc,IAAI,CAAC,CACtD,GACA,MACA,CACF,EACG,QAAQ,eAAe,KAAK,EAC5B,QAAQ,UAAU,EAAE;AACzB"}
|
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
let _stryke_path_join = require("@stryke/path/join");
|
|
11
3
|
let node_fs = require("node:fs");
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { UnresolvedContext } from "../types/context.mjs";
|
|
1
|
+
import { pt as UnresolvedContext } from "../config-DboKmDhl.mjs";
|
|
4
2
|
|
|
5
3
|
//#region src/plugin-utils/get-config-path.d.ts
|
|
6
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-config-path.d.mts","names":[],"sources":["../../src/plugin-utils/get-config-path.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-config-path.d.mts","names":[],"sources":["../../src/plugin-utils/get-config-path.ts"],"mappings":";;;;;AA6BA;;;;;iBAAgB,aAAA,CACd,OAAA,EAAS,iBAAiB;EAAK,GAAA;EAAc,IAAA;AAAA,GAC7C,IAAA"}
|
|
@@ -1,11 +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
1
|
import { joinPaths } from "@stryke/path/join";
|
|
10
2
|
import { existsSync } from "node:fs";
|
|
11
3
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-config-path.mjs","names":[],"sources":["../../src/plugin-utils/get-config-path.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 { joinPaths } from \"@stryke/path/join\";\nimport { existsSync } from \"node:fs\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Get the configuration file path for a given name.\n *\n * @param context - The Powerlines context.\n * @param name - The name of the configuration file (without extension).\n * @returns The absolute path to the configuration file, or undefined if not found.\n */\nexport function getConfigPath(\n context: UnresolvedContext | { cwd?: string; root: string },\n name: string\n): string | undefined {\n const cwd =\n ((context as UnresolvedContext).config\n ? (context as UnresolvedContext).config.cwd\n : (context as { cwd?: string; root: string }).cwd) || process.cwd();\n const root = (context as UnresolvedContext).config\n ? (context as UnresolvedContext).config.root\n : (context as { cwd?: string; root: string }).root;\n\n if (existsSync(joinPaths(cwd, root, `${name}.yml`))) {\n return joinPaths(cwd, root, `${name}.yml`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.yaml`))) {\n return joinPaths(cwd, root, `${name}.yaml`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.json`))) {\n return joinPaths(cwd, root, `${name}.json`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.jsonc`))) {\n return joinPaths(cwd, root, `${name}.jsonc`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.ts`))) {\n return joinPaths(cwd, root, `${name}.ts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.cts`))) {\n return joinPaths(cwd, root, `${name}.cts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.mts`))) {\n return joinPaths(cwd, root, `${name}.mts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.js`))) {\n return joinPaths(cwd, root, `${name}.js`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.cjs`))) {\n return joinPaths(cwd, root, `${name}.cjs`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.mjs`))) {\n return joinPaths(cwd, root, `${name}.mjs`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.ts`))) {\n return joinPaths(cwd, root, `${name}.config.ts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.cts`))) {\n return joinPaths(cwd, root, `${name}.config.cts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.mts`))) {\n return joinPaths(cwd, root, `${name}.config.mts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.js`))) {\n return joinPaths(cwd, root, `${name}.config.js`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.cjs`))) {\n return joinPaths(cwd, root, `${name}.config.cjs`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.mjs`))) {\n return joinPaths(cwd, root, `${name}.config.mjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.yml`))) {\n return joinPaths(cwd, `${name}.yml`);\n } else if (existsSync(joinPaths(cwd, `${name}.yaml`))) {\n return joinPaths(cwd, `${name}.yaml`);\n } else if (existsSync(joinPaths(cwd, `${name}.json`))) {\n return joinPaths(cwd, `${name}.json`);\n } else if (existsSync(joinPaths(cwd, `${name}.jsonc`))) {\n return joinPaths(cwd, `${name}.jsonc`);\n } else if (existsSync(joinPaths(cwd, `${name}.ts`))) {\n return joinPaths(cwd, `${name}.ts`);\n } else if (existsSync(joinPaths(cwd, `${name}.cts`))) {\n return joinPaths(cwd, `${name}.cts`);\n } else if (existsSync(joinPaths(cwd, `${name}.mts`))) {\n return joinPaths(cwd, `${name}.mts`);\n } else if (existsSync(joinPaths(cwd, `${name}.js`))) {\n return joinPaths(cwd, `${name}.js`);\n } else if (existsSync(joinPaths(cwd, `${name}.cjs`))) {\n return joinPaths(cwd, `${name}.cjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.mjs`))) {\n return joinPaths(cwd, `${name}.mjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.ts`))) {\n return joinPaths(cwd, `${name}.config.ts`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.cts`))) {\n return joinPaths(cwd, `${name}.config.cts`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.mts`))) {\n return joinPaths(cwd, `${name}.config.mts`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.js`))) {\n return joinPaths(cwd, `${name}.config.js`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.cjs`))) {\n return joinPaths(cwd, `${name}.config.cjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.mjs`))) {\n return joinPaths(cwd, `${name}.config.mjs`);\n }\n\n return undefined;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-config-path.mjs","names":[],"sources":["../../src/plugin-utils/get-config-path.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 { joinPaths } from \"@stryke/path/join\";\nimport { existsSync } from \"node:fs\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Get the configuration file path for a given name.\n *\n * @param context - The Powerlines context.\n * @param name - The name of the configuration file (without extension).\n * @returns The absolute path to the configuration file, or undefined if not found.\n */\nexport function getConfigPath(\n context: UnresolvedContext | { cwd?: string; root: string },\n name: string\n): string | undefined {\n const cwd =\n ((context as UnresolvedContext).config\n ? (context as UnresolvedContext).config.cwd\n : (context as { cwd?: string; root: string }).cwd) || process.cwd();\n const root = (context as UnresolvedContext).config\n ? (context as UnresolvedContext).config.root\n : (context as { cwd?: string; root: string }).root;\n\n if (existsSync(joinPaths(cwd, root, `${name}.yml`))) {\n return joinPaths(cwd, root, `${name}.yml`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.yaml`))) {\n return joinPaths(cwd, root, `${name}.yaml`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.json`))) {\n return joinPaths(cwd, root, `${name}.json`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.jsonc`))) {\n return joinPaths(cwd, root, `${name}.jsonc`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.ts`))) {\n return joinPaths(cwd, root, `${name}.ts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.cts`))) {\n return joinPaths(cwd, root, `${name}.cts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.mts`))) {\n return joinPaths(cwd, root, `${name}.mts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.js`))) {\n return joinPaths(cwd, root, `${name}.js`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.cjs`))) {\n return joinPaths(cwd, root, `${name}.cjs`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.mjs`))) {\n return joinPaths(cwd, root, `${name}.mjs`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.ts`))) {\n return joinPaths(cwd, root, `${name}.config.ts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.cts`))) {\n return joinPaths(cwd, root, `${name}.config.cts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.mts`))) {\n return joinPaths(cwd, root, `${name}.config.mts`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.js`))) {\n return joinPaths(cwd, root, `${name}.config.js`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.cjs`))) {\n return joinPaths(cwd, root, `${name}.config.cjs`);\n } else if (existsSync(joinPaths(cwd, root, `${name}.config.mjs`))) {\n return joinPaths(cwd, root, `${name}.config.mjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.yml`))) {\n return joinPaths(cwd, `${name}.yml`);\n } else if (existsSync(joinPaths(cwd, `${name}.yaml`))) {\n return joinPaths(cwd, `${name}.yaml`);\n } else if (existsSync(joinPaths(cwd, `${name}.json`))) {\n return joinPaths(cwd, `${name}.json`);\n } else if (existsSync(joinPaths(cwd, `${name}.jsonc`))) {\n return joinPaths(cwd, `${name}.jsonc`);\n } else if (existsSync(joinPaths(cwd, `${name}.ts`))) {\n return joinPaths(cwd, `${name}.ts`);\n } else if (existsSync(joinPaths(cwd, `${name}.cts`))) {\n return joinPaths(cwd, `${name}.cts`);\n } else if (existsSync(joinPaths(cwd, `${name}.mts`))) {\n return joinPaths(cwd, `${name}.mts`);\n } else if (existsSync(joinPaths(cwd, `${name}.js`))) {\n return joinPaths(cwd, `${name}.js`);\n } else if (existsSync(joinPaths(cwd, `${name}.cjs`))) {\n return joinPaths(cwd, `${name}.cjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.mjs`))) {\n return joinPaths(cwd, `${name}.mjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.ts`))) {\n return joinPaths(cwd, `${name}.config.ts`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.cts`))) {\n return joinPaths(cwd, `${name}.config.cts`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.mts`))) {\n return joinPaths(cwd, `${name}.config.mts`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.js`))) {\n return joinPaths(cwd, `${name}.config.js`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.cjs`))) {\n return joinPaths(cwd, `${name}.config.cjs`);\n } else if (existsSync(joinPaths(cwd, `${name}.config.mjs`))) {\n return joinPaths(cwd, `${name}.config.mjs`);\n }\n\n return undefined;\n}\n"],"mappings":"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"}
|
|
@@ -1,11 +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
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
2
|
const require_constants_plugin = require('../constants/plugin.cjs');
|
|
11
3
|
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, TypesResult } from "../types/plugin.cjs";
|
|
3
|
-
import { HooksListItem } from "../types/hooks.cjs";
|
|
4
|
-
import { PluginContext, ResolveResult, UnresolvedContext } from "../types/context.cjs";
|
|
5
|
-
import { EnvironmentConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, ResolvedEnvironmentConfig } from "../types/config.cjs";
|
|
1
|
+
import { $t as PluginHook, E as PluginConfigTuple, F as ResolvedEnvironmentConfig, Qt as Plugin, T as PluginConfigObject, Vt as HooksListItem, at as ResolveResult, cn as UnpluginOptions, en as PluginHookFields, in as TypesResult, it as PluginContext, nn as PluginHooks, on as UnpluginBuilderVariant, pt as UnresolvedContext, tn as PluginHookObject, u as EnvironmentConfig, w as PluginConfig } from "../config-BnV_o0Es.cjs";
|
|
6
2
|
import { AnyFunction } from "@stryke/types/base";
|
|
7
3
|
|
|
8
4
|
//#region src/plugin-utils/helpers.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/plugin-utils/helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/plugin-utils/helpers.ts"],"mappings":";;;;;;;;;;iBAsDgB,QAAA,kBAA0B,aAAA,GAAgB,aAAA,EACxD,KAAA,YACC,KAAA,IAAS,MAAA,CAAO,QAAA;;;;;;;iBA6BH,oBAAA,kBACG,aAAA,GAAgB,aAAA,EACjC,KAAA,YAAiB,KAAA,IAAS,kBAAA,CAAmB,QAAA;;;AA/BpB;AA6B3B;;;iBAmBgB,mBAAA,kBACG,aAAA,GAAgB,aAAA,EACjC,KAAA,YAAiB,KAAA,IAAS,iBAAA,CAAkB,QAAA;;;;;;;iBAiB9B,cAAA,kBAAgC,aAAA,GAAgB,aAAA,EAC9D,KAAA,YACC,KAAA,IAAS,YAAA,CAAa,QAAA;;;;;;;iBAiBT,kBAAA,CACd,KAAA,YACC,KAAA,IAAS,gBAAgB,CAAC,WAAA;AAxC7B;;;;;;AAAA,iBAkDgB,oBAAA,CAAqB,KAAA,YAAiB,KAAA,IAAS,WAAW;;;;;;;iBAU1D,YAAA,CAAa,KAAA,YAAiB,KAAA,IAAS,UAAU,CAAC,WAAA;AAAA,KAItD,wBAAA,kBACO,aAAA,GAAgB,aAAA,oCAE/B,aAAA,CAAc,QAAA,EAAU,MAAA;;;AAjE0B;AAiBtD;;;iBAwDgB,cAAA,kBACG,aAAA,GAAgB,aAAA,gCAGjC,UAAA,EAAY,UAAA,CAAW,WAAA,IACtB,wBAAA,CAAyB,QAAA,EAAU,IAAA;;;;;;;;;iBActB,iBAAA,kBACG,aAAA,GAAgB,aAAA,kBACjB,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,GAC1C,OAAA,EAAS,QAAA,EAAU,MAAA,EAAQ,OAAA,EAAS,IAAA,QAAY,WAAA,CAAY,QAAA;;;;;;;;;;;+wBAzD3D,i+BAAA,o9BAAA,i/BAAA,29BAAA,i3BAAA,2+BAAA,i/BAAA;;;;sxBAAqC,49BAAA,0+BAAA;;;;;;;;;iBA+ExB,iBAAA,iCACkB,sBAAA,GAC9B,sBAAA,mBACe,aAAA,GAAgB,aAAA,EAEjC,IAAA,WACC,IAAA,OAAW,uBAAA,UAAiC,eAAA,CAAgB,QAAA,EAAU,uBAAA;AAjEzE;;;;;;AAAA,iBA6EgB,iBAAA,kBAAmC,aAAa,EAC9D,IAAA;;;AA9E2E;AAI7E;;;iBAqFgB,mBAAA,iCACkB,sBAAA,GAC9B,sBAAA,EACF,KAAA,WAAgB,KAAA,IAAS,uBAAA;;;;;;;;iBAcX,WAAA,kBAA6B,aAAA,GAAgB,aAAA,EAC3D,MAAA,EAAQ,MAAA,CAAO,QAAA,GACf,OAAA,EAAS,MAAA,CAAO,QAAA;;;;;;;iBAmBF,cAAA,kBACG,aAAA,GAAgB,aAAA,iBAClB,gBAAA,CAAiB,QAAA,IAAY,gBAAA,CAAiB,QAAA,iBAC/C,aAAA,CAAc,QAAA,EAAU,MAAA,IAAU,aAAA,CAC9C,QAAA,EACA,MAAA,GAEF,SAAA,EAAW,KAAA,KAAU,KAAA;AAvHvB;;;;;;;;AAAA,iBA6IgB,aAAA,kBACG,aAAA,GAAgB,aAAA,iBAClB,gBAAA,CAAiB,QAAA,IAAY,gBAAA,CAAiB,QAAA,iBAC/C,aAAA,CAAc,QAAA,EAAU,MAAA,IAAU,aAAA,CAC9C,QAAA,EACA,MAAA,GAGF,OAAA,EAAS,QAAA,EACT,MAAA,EAAQ,MAAA,CAAO,QAAA,GACf,UAAA,EAAY,UAAA,CAAW,WAAA,GACvB,SAAA,EAAW,KAAA,KACV,KAAA;;;;;;;iBA6Ba,uBAAA,kBACG,aAAA,GAAgB,aAAA,EACjC,MAAA,EAAQ,YAAA,CAAa,QAAA"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { UnpluginBuilderVariant, UnpluginOptions } from "../types/unplugin.mjs";
|
|
4
|
-
import { Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, TypesResult } from "../types/plugin.mjs";
|
|
5
|
-
import { HooksListItem } from "../types/hooks.mjs";
|
|
6
|
-
import { PluginContext, ResolveResult, UnresolvedContext } from "../types/context.mjs";
|
|
7
|
-
import { EnvironmentConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, ResolvedEnvironmentConfig } from "../types/config.mjs";
|
|
1
|
+
import { $t as PluginHook, E as PluginConfigTuple, F as ResolvedEnvironmentConfig, Qt as Plugin, T as PluginConfigObject, Vt as HooksListItem, at as ResolveResult, cn as UnpluginOptions, en as PluginHookFields, in as TypesResult, it as PluginContext, nn as PluginHooks, on as UnpluginBuilderVariant, pt as UnresolvedContext, tn as PluginHookObject, u as EnvironmentConfig, w as PluginConfig } from "../config-DboKmDhl.mjs";
|
|
8
2
|
import { AnyFunction } from "@stryke/types/base";
|
|
9
3
|
|
|
10
4
|
//#region src/plugin-utils/helpers.d.ts
|