powerlines 0.37.71 → 0.37.72
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-V7srJoFm.d.ts → api-C6DCvrUS.d.ts} +8 -10
- package/dist/{api-D-Jj7gBV.d.cts → api-DzDN7V6M.d.cts} +8 -10
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/astro.cjs +5 -5
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +4 -4
- package/dist/{chunk-FRNC6FKO.js → chunk-23QTRWEU.js} +8 -18
- package/dist/{chunk-5SS42COY.js → chunk-37HOUYXE.js} +3 -3
- package/dist/{chunk-TFV2AU6W.js → chunk-4EGH2VBO.js} +4 -4
- package/dist/chunk-4Z5JN5LA.cjs +12 -0
- package/dist/{chunk-D6G2NPFN.cjs → chunk-5VRWKIX7.cjs} +6 -6
- package/dist/{chunk-NO2NY6UI.js → chunk-B5CY33VJ.js} +39 -13
- package/dist/{chunk-LAGXKJRA.cjs → chunk-BNMY5INT.cjs} +39 -13
- package/dist/{chunk-NSSJOBJ7.cjs → chunk-HDHABS4U.cjs} +3 -17
- package/dist/{chunk-6JXP537N.js → chunk-HLCQIZKK.js} +3 -17
- package/dist/{chunk-JIEICZIE.js → chunk-II6VDTID.js} +3 -3
- package/dist/{chunk-PDYRMQZO.cjs → chunk-OE26AYQO.cjs} +10 -20
- package/dist/chunk-RMBCRGMA.cjs +12 -0
- package/dist/{chunk-ICQSECGM.js → chunk-WB3RBWMN.js} +3 -3
- package/dist/{chunk-SM2YMSW4.cjs → chunk-XC6JYWS2.cjs} +5 -5
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/build/esbuild.cjs +4 -4
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/esbuild.js +1 -1
- package/dist/lib/build/index.cjs +29 -29
- package/dist/lib/build/index.d.cts +2 -2
- package/dist/lib/build/index.d.ts +2 -2
- package/dist/lib/build/index.js +9 -9
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsdown.cjs +5 -5
- package/dist/lib/build/tsdown.d.cts +1 -1
- package/dist/lib/build/tsdown.d.ts +1 -1
- package/dist/lib/build/tsdown.js +1 -1
- package/dist/lib/build/tsup.cjs +5 -5
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/tsup.js +2 -2
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +2 -2
- package/dist/lib/build/unbuild.d.ts +2 -2
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +4 -4
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/vite.js +2 -2
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/{chunk-HMHMMXG3.js → chunk-2LVLSYWS.js} +6 -16
- package/dist/lib/chunk-2LVLSYWS.js.map +1 -0
- package/dist/lib/{chunk-C2SIHISU.cjs → chunk-3SMW7KVT.cjs} +4 -4
- package/dist/lib/chunk-3SMW7KVT.cjs.map +1 -0
- package/dist/lib/{chunk-JKESK6KE.js → chunk-6FBHHFOA.js} +4 -18
- package/dist/lib/chunk-6FBHHFOA.js.map +1 -0
- package/dist/lib/{chunk-GQNZENVF.js → chunk-6TXWOIA7.js} +4 -4
- package/dist/lib/chunk-6TXWOIA7.js.map +1 -0
- package/dist/lib/{chunk-TI4L43DE.js → chunk-6XVUDVQ4.js} +7 -17
- package/dist/lib/chunk-6XVUDVQ4.js.map +1 -0
- package/dist/lib/{chunk-T3IOOWLO.js → chunk-7OTSAG3M.js} +4 -19
- package/dist/lib/chunk-7OTSAG3M.js.map +1 -0
- package/dist/lib/{chunk-YVFFKAMF.js → chunk-A6PQSWEU.js} +3 -3
- package/dist/lib/{chunk-YVFFKAMF.js.map → chunk-A6PQSWEU.js.map} +1 -1
- package/dist/lib/{chunk-26DEN74R.cjs → chunk-AE5FOE5F.cjs} +6 -6
- package/dist/lib/{chunk-26DEN74R.cjs.map → chunk-AE5FOE5F.cjs.map} +1 -1
- package/dist/lib/{chunk-XVRSEH24.cjs → chunk-DRHDTUHQ.cjs} +4 -19
- package/dist/lib/chunk-DRHDTUHQ.cjs.map +1 -0
- package/dist/lib/{chunk-C2XZBNXT.js → chunk-FA7RSY75.js} +3 -17
- package/dist/lib/chunk-FA7RSY75.js.map +1 -0
- package/dist/lib/{chunk-ZPUQDCZY.js → chunk-FLTOE5GA.js} +4 -13
- package/dist/lib/chunk-FLTOE5GA.js.map +1 -0
- package/dist/lib/{chunk-4MV6GVF2.cjs → chunk-GFRDBE36.cjs} +3 -17
- package/dist/lib/chunk-GFRDBE36.cjs.map +1 -0
- package/dist/lib/{chunk-DMSD5NS5.cjs → chunk-GVIP7SDP.cjs} +19 -19
- package/dist/lib/{chunk-DMSD5NS5.cjs.map → chunk-GVIP7SDP.cjs.map} +1 -1
- package/dist/lib/{chunk-E5GAQMMD.cjs → chunk-IJ7YQK2D.cjs} +3 -17
- package/dist/lib/chunk-IJ7YQK2D.cjs.map +1 -0
- package/dist/lib/{chunk-7JW5GKVU.cjs → chunk-IUEVVKTN.cjs} +17 -6
- package/dist/lib/chunk-IUEVVKTN.cjs.map +1 -0
- package/dist/lib/{chunk-2WYHTO47.cjs → chunk-JD2LTS53.cjs} +8 -18
- package/dist/lib/chunk-JD2LTS53.cjs.map +1 -0
- package/dist/lib/{chunk-2UJLVAEK.js → chunk-JUQOBIHS.js} +7 -7
- package/dist/lib/chunk-JUQOBIHS.js.map +1 -0
- package/dist/lib/{chunk-VWKNWAN3.js → chunk-LAWPHYRN.js} +4 -4
- package/dist/lib/{chunk-VWKNWAN3.js.map → chunk-LAWPHYRN.js.map} +1 -1
- package/dist/lib/{chunk-ZVXIXVNB.js → chunk-LD6XM3JP.js} +3 -3
- package/dist/lib/{chunk-ZVXIXVNB.js.map → chunk-LD6XM3JP.js.map} +1 -1
- package/dist/lib/{chunk-5UCYCLOL.cjs → chunk-LEHNEPEZ.cjs} +5 -19
- package/dist/lib/chunk-LEHNEPEZ.cjs.map +1 -0
- package/dist/lib/{chunk-7D3MEWYE.cjs → chunk-MBNOLP2D.cjs} +4 -4
- package/dist/lib/{chunk-7D3MEWYE.cjs.map → chunk-MBNOLP2D.cjs.map} +1 -1
- package/dist/lib/{chunk-3FLDGR5G.js → chunk-MNSZOVOC.js} +12 -5
- package/dist/lib/chunk-MNSZOVOC.js.map +1 -0
- package/dist/lib/{chunk-IEWCXR3Q.cjs → chunk-ORHCJTJ2.cjs} +37 -11
- package/dist/lib/chunk-ORHCJTJ2.cjs.map +1 -0
- package/dist/lib/{chunk-NRGFEHLP.cjs → chunk-PVWONV7N.cjs} +5 -14
- package/dist/lib/chunk-PVWONV7N.cjs.map +1 -0
- package/dist/lib/{chunk-7IMYFSB5.cjs → chunk-QN455BKZ.cjs} +6 -16
- package/dist/lib/chunk-QN455BKZ.cjs.map +1 -0
- package/dist/lib/{chunk-6ZQ2QV7J.js → chunk-RAAESBJL.js} +3 -17
- package/dist/lib/chunk-RAAESBJL.js.map +1 -0
- package/dist/lib/{chunk-YORFIC7O.cjs → chunk-RBFYRLQF.cjs} +19 -19
- package/dist/lib/chunk-RBFYRLQF.cjs.map +1 -0
- package/dist/lib/{chunk-PU3KX3GM.js → chunk-TLQERY6D.js} +7 -17
- package/dist/lib/chunk-TLQERY6D.js.map +1 -0
- package/dist/lib/{chunk-54EBZ6DV.cjs → chunk-VQAIXUBE.cjs} +8 -18
- package/dist/lib/chunk-VQAIXUBE.cjs.map +1 -0
- package/dist/lib/{chunk-I4LBDWHI.js → chunk-WD4D2AAH.js} +35 -9
- package/dist/lib/chunk-WD4D2AAH.js.map +1 -0
- package/dist/lib/{chunk-HFNHWLHJ.js → chunk-XOIF2AAB.js} +3 -12
- package/dist/lib/chunk-XOIF2AAB.js.map +1 -0
- package/dist/lib/{chunk-IJOS5J6D.cjs → chunk-YCQ7WB5H.cjs} +3 -12
- package/dist/lib/chunk-YCQ7WB5H.cjs.map +1 -0
- package/dist/lib/{config-BdpnZ9Jp.d.cts → config-Dxm15IUf.d.cts} +8 -10
- package/dist/lib/{config-DxhCES5f.d.ts → config-WPmSiClE.d.ts} +8 -10
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +2 -2
- package/dist/lib/contexts/api-context.d.ts +2 -2
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +9 -2
- package/dist/lib/contexts/context.d.ts +9 -2
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +2 -2
- package/dist/lib/contexts/environment-context.d.ts +2 -2
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +2 -2
- package/dist/lib/contexts/index.d.ts +2 -2
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +2 -2
- package/dist/lib/contexts/plugin-context.d.ts +2 -2
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.d.cts +1 -1
- package/dist/lib/fs/index.d.ts +1 -1
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.d.cts +1 -1
- package/dist/lib/fs/vfs.d.ts +1 -1
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/index.cjs +15 -15
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +8 -8
- package/dist/lib/{internal-x5TCXE5P.d.ts → internal-B2zHmbRm.d.ts} +1 -1
- package/dist/lib/{internal-CInyirxk.d.cts → internal-SJ32rPB1.d.cts} +1 -1
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +1 -1
- package/dist/lib/unplugin/factory.d.ts +1 -1
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +1 -1
- package/dist/lib/unplugin/index.d.ts +1 -1
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +1 -1
- package/dist/lib/unplugin/plugin.d.ts +1 -1
- package/dist/lib/utilities/bundle.cjs +8 -3
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/bundle.js +7 -2
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/format.d.cts +1 -1
- package/dist/lib/utilities/format.d.ts +1 -1
- package/dist/lib/utilities/index.cjs +8 -5
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/index.js +6 -3
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.cjs +9 -4
- package/dist/lib/utilities/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/resolve.js +8 -3
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{chunk-TKHJ5FOY.js → chunk-EASIFUVR.js} +3 -3
- package/dist/plugin-utils/chunk-EASIFUVR.js.map +1 -0
- package/dist/plugin-utils/{chunk-G4VBCQU2.cjs → chunk-WXPZZ6SB.cjs} +3 -3
- package/dist/plugin-utils/chunk-WXPZZ6SB.cjs.map +1 -0
- package/dist/plugin-utils/{context-ImhXCCVn.d.cts → context-C-kVgprv.d.cts} +8 -10
- package/dist/plugin-utils/{context-ImhXCCVn.d.ts → context-C-kVgprv.d.ts} +8 -10
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.cjs +2 -2
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/index.js +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/modules.cjs +2 -2
- package/dist/plugin-utils/modules.d.cts +1 -1
- package/dist/plugin-utils/modules.d.ts +1 -1
- package/dist/plugin-utils/modules.js +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types/api.d.cts +1 -1
- package/dist/types/api.d.ts +1 -1
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal.d.cts +1 -1
- package/dist/types/internal.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.ts +1 -1
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-SBZPDER5.cjs +0 -12
- package/dist/chunk-VCTXBZ3L.cjs +0 -12
- package/dist/lib/chunk-2UJLVAEK.js.map +0 -1
- package/dist/lib/chunk-2WYHTO47.cjs.map +0 -1
- package/dist/lib/chunk-3FLDGR5G.js.map +0 -1
- package/dist/lib/chunk-4MV6GVF2.cjs.map +0 -1
- package/dist/lib/chunk-54EBZ6DV.cjs.map +0 -1
- package/dist/lib/chunk-5UCYCLOL.cjs.map +0 -1
- package/dist/lib/chunk-6ZQ2QV7J.js.map +0 -1
- package/dist/lib/chunk-7IMYFSB5.cjs.map +0 -1
- package/dist/lib/chunk-7JW5GKVU.cjs.map +0 -1
- package/dist/lib/chunk-C2SIHISU.cjs.map +0 -1
- package/dist/lib/chunk-C2XZBNXT.js.map +0 -1
- package/dist/lib/chunk-E5GAQMMD.cjs.map +0 -1
- package/dist/lib/chunk-GQNZENVF.js.map +0 -1
- package/dist/lib/chunk-HFNHWLHJ.js.map +0 -1
- package/dist/lib/chunk-HMHMMXG3.js.map +0 -1
- package/dist/lib/chunk-I4LBDWHI.js.map +0 -1
- package/dist/lib/chunk-IEWCXR3Q.cjs.map +0 -1
- package/dist/lib/chunk-IJOS5J6D.cjs.map +0 -1
- package/dist/lib/chunk-JKESK6KE.js.map +0 -1
- package/dist/lib/chunk-NRGFEHLP.cjs.map +0 -1
- package/dist/lib/chunk-PU3KX3GM.js.map +0 -1
- package/dist/lib/chunk-T3IOOWLO.js.map +0 -1
- package/dist/lib/chunk-TI4L43DE.js.map +0 -1
- package/dist/lib/chunk-XVRSEH24.cjs.map +0 -1
- package/dist/lib/chunk-YORFIC7O.cjs.map +0 -1
- package/dist/lib/chunk-ZPUQDCZY.js.map +0 -1
- package/dist/plugin-utils/chunk-G4VBCQU2.cjs.map +0 -1
- package/dist/plugin-utils/chunk-TKHJ5FOY.js.map +0 -1
|
@@ -538,15 +538,6 @@ interface OutputConfig {
|
|
|
538
538
|
* @defaultValue "\{projectRoot\}/powerlines.d.ts"
|
|
539
539
|
*/
|
|
540
540
|
dts?: string | false;
|
|
541
|
-
/**
|
|
542
|
-
* A prefix to use for identifying builtin modules
|
|
543
|
-
*
|
|
544
|
-
* @remarks
|
|
545
|
-
* This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
|
|
546
|
-
*
|
|
547
|
-
* @defaultValue "powerlines"
|
|
548
|
-
*/
|
|
549
|
-
builtinPrefix?: string;
|
|
550
541
|
/**
|
|
551
542
|
* The module format of the output files
|
|
552
543
|
*
|
|
@@ -782,7 +773,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
782
773
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
783
774
|
*
|
|
784
775
|
* @remarks
|
|
785
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}
|
|
776
|
+
* If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
|
|
786
777
|
*
|
|
787
778
|
* @defaultValue "powerlines"
|
|
788
779
|
*/
|
|
@@ -1237,6 +1228,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1237
1228
|
* The builtin module id that exist in the Powerlines virtual file system
|
|
1238
1229
|
*/
|
|
1239
1230
|
builtins: string[];
|
|
1231
|
+
/**
|
|
1232
|
+
* The alias mappings for the project used during module resolution
|
|
1233
|
+
*
|
|
1234
|
+
* @remarks
|
|
1235
|
+
* This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
|
|
1236
|
+
*/
|
|
1237
|
+
alias: Record<string, string>;
|
|
1240
1238
|
/**
|
|
1241
1239
|
* The {@link Project} instance used for type reflection and module manipulation
|
|
1242
1240
|
*
|
|
@@ -538,15 +538,6 @@ interface OutputConfig {
|
|
|
538
538
|
* @defaultValue "\{projectRoot\}/powerlines.d.ts"
|
|
539
539
|
*/
|
|
540
540
|
dts?: string | false;
|
|
541
|
-
/**
|
|
542
|
-
* A prefix to use for identifying builtin modules
|
|
543
|
-
*
|
|
544
|
-
* @remarks
|
|
545
|
-
* This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
|
|
546
|
-
*
|
|
547
|
-
* @defaultValue "powerlines"
|
|
548
|
-
*/
|
|
549
|
-
builtinPrefix?: string;
|
|
550
541
|
/**
|
|
551
542
|
* The module format of the output files
|
|
552
543
|
*
|
|
@@ -782,7 +773,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
782
773
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
783
774
|
*
|
|
784
775
|
* @remarks
|
|
785
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}
|
|
776
|
+
* If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
|
|
786
777
|
*
|
|
787
778
|
* @defaultValue "powerlines"
|
|
788
779
|
*/
|
|
@@ -1237,6 +1228,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1237
1228
|
* The builtin module id that exist in the Powerlines virtual file system
|
|
1238
1229
|
*/
|
|
1239
1230
|
builtins: string[];
|
|
1231
|
+
/**
|
|
1232
|
+
* The alias mappings for the project used during module resolution
|
|
1233
|
+
*
|
|
1234
|
+
* @remarks
|
|
1235
|
+
* This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
|
|
1236
|
+
*/
|
|
1237
|
+
alias: Record<string, string>;
|
|
1240
1238
|
/**
|
|
1241
1239
|
* The {@link Project} instance used for type reflection and module manipulation
|
|
1242
1240
|
*
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBNMY5INT_cjs = require('./chunk-BNMY5INT.cjs');
|
|
4
4
|
require('./chunk-B6DVCLP5.cjs');
|
|
5
5
|
require('./chunk-V5WOGN7O.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBNMY5INT_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-
|
|
1
|
+
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-DzDN7V6M.cjs';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-
|
|
1
|
+
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-C6DCvrUS.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
5
|
+
var chunkOE26AYQO_cjs = require('./chunk-OE26AYQO.cjs');
|
|
6
|
+
require('./chunk-HDHABS4U.cjs');
|
|
7
|
+
require('./chunk-XC6JYWS2.cjs');
|
|
8
|
+
require('./chunk-BNMY5INT.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkOE26AYQO_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cz as ViteResolvedConfig } from './api-
|
|
2
|
+
import { cz as ViteResolvedConfig } from './api-DzDN7V6M.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/astro.d.ts
CHANGED
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
import { vite_default } from './chunk-23QTRWEU.js';
|
|
2
|
+
import './chunk-HLCQIZKK.js';
|
|
3
|
+
import './chunk-II6VDTID.js';
|
|
4
|
+
import './chunk-B5CY33VJ.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { extractESBuildConfig } from './chunk-
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { extractESBuildConfig } from './chunk-HLCQIZKK.js';
|
|
2
|
+
import { createUnpluginFactory } from './chunk-II6VDTID.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -28,27 +28,17 @@ var DEFAULT_VITE_CONFIG = {
|
|
|
28
28
|
function extractViteConfig(context) {
|
|
29
29
|
return defu({
|
|
30
30
|
resolve: {
|
|
31
|
-
alias: context.
|
|
32
|
-
const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
|
|
33
|
-
if (!ret.find((e) => e.find === moduleId)) {
|
|
34
|
-
const path = context.fs.paths[id];
|
|
35
|
-
if (path) {
|
|
36
|
-
ret.push({
|
|
37
|
-
find: moduleId,
|
|
38
|
-
replacement: path
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return ret;
|
|
43
|
-
}, context.config.build.alias ? Array.isArray(context.config.build.alias) ? context.config.build.alias : Object.entries(context.config.build.alias).reduce((ret, [id, path]) => {
|
|
31
|
+
alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
44
32
|
if (!ret.find((e) => e.find === id)) {
|
|
45
33
|
ret.push({
|
|
46
34
|
find: id,
|
|
47
35
|
replacement: path
|
|
48
36
|
});
|
|
37
|
+
} else {
|
|
38
|
+
context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
49
39
|
}
|
|
50
40
|
return ret;
|
|
51
|
-
}, [])
|
|
41
|
+
}, []),
|
|
52
42
|
dedupe: context.config.build.dedupe,
|
|
53
43
|
mainFields: context.config.build.mainFields,
|
|
54
44
|
conditions: context.config.build.conditions,
|
|
@@ -152,5 +142,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
152
142
|
var vite_default = vite;
|
|
153
143
|
|
|
154
144
|
export { vite, vite_default };
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
156
|
-
//# sourceMappingURL=chunk-
|
|
145
|
+
//# sourceMappingURL=chunk-23QTRWEU.js.map
|
|
146
|
+
//# sourceMappingURL=chunk-23QTRWEU.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-II6VDTID.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-37HOUYXE.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-37HOUYXE.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { extractESBuildConfig } from './chunk-
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { extractESBuildConfig } from './chunk-HLCQIZKK.js';
|
|
2
|
+
import { createUnpluginFactory } from './chunk-II6VDTID.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-4EGH2VBO.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-4EGH2VBO.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXC6JYWS2_cjs = require('./chunk-XC6JYWS2.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkXC6JYWS2_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-4Z5JN5LA.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-4Z5JN5LA.cjs.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkHDHABS4U_cjs = require('./chunk-HDHABS4U.cjs');
|
|
4
|
+
var chunkXC6JYWS2_cjs = require('./chunk-XC6JYWS2.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
7
7
|
var unplugin = require('unplugin');
|
|
8
8
|
|
|
9
|
-
var esbuild = unplugin.createEsbuildPlugin(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunkXC6JYWS2_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
13
13
|
config: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((options) => {
|
|
14
14
|
options ??= {};
|
|
15
|
-
const result =
|
|
15
|
+
const result = chunkHDHABS4U_cjs.extractESBuildConfig(api.context);
|
|
16
16
|
for (const key in result) {
|
|
17
17
|
if (isUndefined.isUndefined(options[key]) && !isUndefined.isUndefined(result[key])) {
|
|
18
18
|
options[key] = result[key];
|
|
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
|
|
|
32
32
|
|
|
33
33
|
exports.esbuild = esbuild;
|
|
34
34
|
exports.esbuild_default = esbuild_default;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-5VRWKIX7.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-5VRWKIX7.cjs.map
|
|
@@ -81,13 +81,13 @@ import '@stryke/fs/remove-file';
|
|
|
81
81
|
|
|
82
82
|
// package.json
|
|
83
83
|
var name = "powerlines";
|
|
84
|
-
var version = "0.37.
|
|
84
|
+
var version = "0.37.71";
|
|
85
85
|
var package_default = {
|
|
86
86
|
version};
|
|
87
87
|
|
|
88
88
|
// src/plugin-utils/modules.ts
|
|
89
89
|
function isBuiltinModule(context, moduleName) {
|
|
90
|
-
const prefix = context.config
|
|
90
|
+
const prefix = context.config?.framework || "powerlines";
|
|
91
91
|
return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
|
|
92
92
|
}
|
|
93
93
|
__name(isBuiltinModule, "isBuiltinModule");
|
|
@@ -354,7 +354,7 @@ async function emitBuiltinTypes(context, files) {
|
|
|
354
354
|
context.trace(`Processing emitted type declaration file: ${emittedFile.filePath}`);
|
|
355
355
|
const filePath = appendPath(emittedFile.filePath, context.workspaceConfig.workspaceRoot);
|
|
356
356
|
if (!filePath.endsWith(".map") && findFileName(filePath) !== "tsconfig.tsbuildinfo" && isParentPath(filePath, context.builtinsPath)) {
|
|
357
|
-
const moduleId = `${context.config.
|
|
357
|
+
const moduleId = `${context.config.framework}:${replaceExtension(replacePath(filePath, context.builtinsPath), "", {
|
|
358
358
|
fullExtension: true
|
|
359
359
|
})}`;
|
|
360
360
|
const moduleComment = emittedFile.text.match(getModuleCommentBlockRegex(moduleId))?.find((comment) => isSetString(comment?.trim()));
|
|
@@ -1804,7 +1804,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1804
1804
|
if (isParentPath(normalized, this.#context.builtinsPath)) {
|
|
1805
1805
|
normalized = replacePath(normalized, this.#context.builtinsPath);
|
|
1806
1806
|
}
|
|
1807
|
-
return normalizeId(normalized, this.#context.config.
|
|
1807
|
+
return normalizeId(normalized, this.#context.config.framework);
|
|
1808
1808
|
}
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Normalizes a given path by resolving it against the project root, workspace root, and built-ins path.
|
|
@@ -1813,7 +1813,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1813
1813
|
* @returns The normalized path.
|
|
1814
1814
|
*/
|
|
1815
1815
|
#normalizePath(path) {
|
|
1816
|
-
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.
|
|
1816
|
+
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.framework);
|
|
1817
1817
|
}
|
|
1818
1818
|
/**
|
|
1819
1819
|
* Gets the storage adapter and relative key for a given key.
|
|
@@ -2863,8 +2863,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2863
2863
|
}, {
|
|
2864
2864
|
output: config.framework ? {
|
|
2865
2865
|
artifactsPath: `.${config.framework ?? "powerlines"}`,
|
|
2866
|
-
dts: joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`)
|
|
2867
|
-
builtinPrefix: config.framework ?? "powerlines"
|
|
2866
|
+
dts: joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`)
|
|
2868
2867
|
} : {}
|
|
2869
2868
|
});
|
|
2870
2869
|
}
|
|
@@ -3098,6 +3097,29 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3098
3097
|
return Object.values(this.fs.metadata).filter((meta) => meta && meta.type === "builtin").map((meta) => meta?.id).filter(Boolean);
|
|
3099
3098
|
}
|
|
3100
3099
|
/**
|
|
3100
|
+
* The alias mappings for the project used during module resolution
|
|
3101
|
+
*
|
|
3102
|
+
* @remarks
|
|
3103
|
+
* This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
|
|
3104
|
+
*/
|
|
3105
|
+
get alias() {
|
|
3106
|
+
return this.builtins.reduce((ret, id) => {
|
|
3107
|
+
const moduleId = `${this.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
|
|
3108
|
+
if (!ret[moduleId]) {
|
|
3109
|
+
const path = this.fs.paths[id];
|
|
3110
|
+
if (path) {
|
|
3111
|
+
ret[moduleId] = path;
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
return ret;
|
|
3115
|
+
}, this.config.build.alias ? Array.isArray(this.config.build.alias) ? this.config.build.alias.reduce((ret, alias) => {
|
|
3116
|
+
if (!ret[alias.find.toString()]) {
|
|
3117
|
+
ret[alias.find.toString()] = alias.replacement;
|
|
3118
|
+
}
|
|
3119
|
+
return ret;
|
|
3120
|
+
}, {}) : this.config.build.alias : {});
|
|
3121
|
+
}
|
|
3122
|
+
/**
|
|
3101
3123
|
* The {@link Project} instance used for type reflection and module manipulation
|
|
3102
3124
|
*
|
|
3103
3125
|
* @see https://ts-morph.com/
|
|
@@ -3669,7 +3691,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3669
3691
|
skipCache: config.skipCache ?? this.config.skipCache ?? false,
|
|
3670
3692
|
configFile: config.configFile ?? this.config.configFile,
|
|
3671
3693
|
framework: config.framework ?? this.config.framework ?? "powerlines",
|
|
3672
|
-
command: this.config.inlineConfig?.command
|
|
3694
|
+
command: this.config.inlineConfig?.command,
|
|
3695
|
+
alias: this.config.build?.alias ?? config.build?.alias
|
|
3673
3696
|
};
|
|
3674
3697
|
if (configCache.has(cacheKey)) {
|
|
3675
3698
|
const result = configCache.get(cacheKey);
|
|
@@ -3693,8 +3716,12 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3693
3716
|
projectRoot: cacheKey.projectRoot,
|
|
3694
3717
|
cacheDir: this.cachePath,
|
|
3695
3718
|
mode: cacheKey.mode,
|
|
3696
|
-
logLevel: config.logLevel || this.config
|
|
3697
|
-
skipCache: cacheKey.skipCache
|
|
3719
|
+
logLevel: config.logLevel || this.config.logLevel || this.workspaceConfig.logLevel || "info",
|
|
3720
|
+
skipCache: cacheKey.skipCache,
|
|
3721
|
+
alias: this.config.build?.alias ? Array.isArray(this.config.build.alias) ? this.config.build.alias.reduce((ret, alias) => {
|
|
3722
|
+
ret[alias.find.toString()] = alias.replacement;
|
|
3723
|
+
return ret;
|
|
3724
|
+
}, {}) : this.config.build.alias : {}
|
|
3698
3725
|
});
|
|
3699
3726
|
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3700
3727
|
this.mergeUserConfig(userConfig.config);
|
|
@@ -3727,7 +3754,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3727
3754
|
outputPath: cacheKey.projectRoot ? joinPaths(this.workspaceConfig?.directories?.build || "dist", cacheKey.projectRoot) : this.workspaceConfig?.directories?.build || "dist",
|
|
3728
3755
|
artifactsPath: `.${config.framework ?? "powerlines"}`,
|
|
3729
3756
|
dts: joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
|
|
3730
|
-
builtinPrefix: config.framework ?? "powerlines",
|
|
3731
3757
|
assets: [
|
|
3732
3758
|
{
|
|
3733
3759
|
glob: "LICENSE"
|
|
@@ -5068,5 +5094,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5068
5094
|
};
|
|
5069
5095
|
|
|
5070
5096
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5071
|
-
//# sourceMappingURL=chunk-
|
|
5072
|
-
//# sourceMappingURL=chunk-
|
|
5097
|
+
//# sourceMappingURL=chunk-B5CY33VJ.js.map
|
|
5098
|
+
//# sourceMappingURL=chunk-B5CY33VJ.js.map
|
|
@@ -110,13 +110,13 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
112
|
var name = "powerlines";
|
|
113
|
-
var version = "0.37.
|
|
113
|
+
var version = "0.37.71";
|
|
114
114
|
var package_default = {
|
|
115
115
|
version};
|
|
116
116
|
|
|
117
117
|
// src/plugin-utils/modules.ts
|
|
118
118
|
function isBuiltinModule(context, moduleName) {
|
|
119
|
-
const prefix = context.config
|
|
119
|
+
const prefix = context.config?.framework || "powerlines";
|
|
120
120
|
return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
|
|
121
121
|
}
|
|
122
122
|
chunkPK6SKIKE_cjs.__name(isBuiltinModule, "isBuiltinModule");
|
|
@@ -383,7 +383,7 @@ async function emitBuiltinTypes(context, files) {
|
|
|
383
383
|
context.trace(`Processing emitted type declaration file: ${emittedFile.filePath}`);
|
|
384
384
|
const filePath = append.appendPath(emittedFile.filePath, context.workspaceConfig.workspaceRoot);
|
|
385
385
|
if (!filePath.endsWith(".map") && filePathFns.findFileName(filePath) !== "tsconfig.tsbuildinfo" && isParentPath.isParentPath(filePath, context.builtinsPath)) {
|
|
386
|
-
const moduleId = `${context.config.
|
|
386
|
+
const moduleId = `${context.config.framework}:${replace.replaceExtension(replace.replacePath(filePath, context.builtinsPath), "", {
|
|
387
387
|
fullExtension: true
|
|
388
388
|
})}`;
|
|
389
389
|
const moduleComment = emittedFile.text.match(getModuleCommentBlockRegex(moduleId))?.find((comment) => isSetString.isSetString(comment?.trim()));
|
|
@@ -1833,7 +1833,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1833
1833
|
if (isParentPath.isParentPath(normalized, this.#context.builtinsPath)) {
|
|
1834
1834
|
normalized = replace.replacePath(normalized, this.#context.builtinsPath);
|
|
1835
1835
|
}
|
|
1836
|
-
return normalizeId(normalized, this.#context.config.
|
|
1836
|
+
return normalizeId(normalized, this.#context.config.framework);
|
|
1837
1837
|
}
|
|
1838
1838
|
/**
|
|
1839
1839
|
* Normalizes a given path by resolving it against the project root, workspace root, and built-ins path.
|
|
@@ -1842,7 +1842,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1842
1842
|
* @returns The normalized path.
|
|
1843
1843
|
*/
|
|
1844
1844
|
#normalizePath(path) {
|
|
1845
|
-
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.
|
|
1845
|
+
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.framework);
|
|
1846
1846
|
}
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Gets the storage adapter and relative key for a given key.
|
|
@@ -2892,8 +2892,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2892
2892
|
}, {
|
|
2893
2893
|
output: config.framework ? {
|
|
2894
2894
|
artifactsPath: `.${config.framework ?? "powerlines"}`,
|
|
2895
|
-
dts: join.joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`)
|
|
2896
|
-
builtinPrefix: config.framework ?? "powerlines"
|
|
2895
|
+
dts: join.joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`)
|
|
2897
2896
|
} : {}
|
|
2898
2897
|
});
|
|
2899
2898
|
}
|
|
@@ -3127,6 +3126,29 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3127
3126
|
return Object.values(this.fs.metadata).filter((meta) => meta && meta.type === "builtin").map((meta) => meta?.id).filter(Boolean);
|
|
3128
3127
|
}
|
|
3129
3128
|
/**
|
|
3129
|
+
* The alias mappings for the project used during module resolution
|
|
3130
|
+
*
|
|
3131
|
+
* @remarks
|
|
3132
|
+
* This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
|
|
3133
|
+
*/
|
|
3134
|
+
get alias() {
|
|
3135
|
+
return this.builtins.reduce((ret, id) => {
|
|
3136
|
+
const moduleId = `${this.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
|
|
3137
|
+
if (!ret[moduleId]) {
|
|
3138
|
+
const path = this.fs.paths[id];
|
|
3139
|
+
if (path) {
|
|
3140
|
+
ret[moduleId] = path;
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
return ret;
|
|
3144
|
+
}, this.config.build.alias ? Array.isArray(this.config.build.alias) ? this.config.build.alias.reduce((ret, alias) => {
|
|
3145
|
+
if (!ret[alias.find.toString()]) {
|
|
3146
|
+
ret[alias.find.toString()] = alias.replacement;
|
|
3147
|
+
}
|
|
3148
|
+
return ret;
|
|
3149
|
+
}, {}) : this.config.build.alias : {});
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3130
3152
|
* The {@link Project} instance used for type reflection and module manipulation
|
|
3131
3153
|
*
|
|
3132
3154
|
* @see https://ts-morph.com/
|
|
@@ -3698,7 +3720,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3698
3720
|
skipCache: config.skipCache ?? this.config.skipCache ?? false,
|
|
3699
3721
|
configFile: config.configFile ?? this.config.configFile,
|
|
3700
3722
|
framework: config.framework ?? this.config.framework ?? "powerlines",
|
|
3701
|
-
command: this.config.inlineConfig?.command
|
|
3723
|
+
command: this.config.inlineConfig?.command,
|
|
3724
|
+
alias: this.config.build?.alias ?? config.build?.alias
|
|
3702
3725
|
};
|
|
3703
3726
|
if (configCache.has(cacheKey)) {
|
|
3704
3727
|
const result = configCache.get(cacheKey);
|
|
@@ -3722,8 +3745,12 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3722
3745
|
projectRoot: cacheKey.projectRoot,
|
|
3723
3746
|
cacheDir: this.cachePath,
|
|
3724
3747
|
mode: cacheKey.mode,
|
|
3725
|
-
logLevel: config.logLevel || this.config
|
|
3726
|
-
skipCache: cacheKey.skipCache
|
|
3748
|
+
logLevel: config.logLevel || this.config.logLevel || this.workspaceConfig.logLevel || "info",
|
|
3749
|
+
skipCache: cacheKey.skipCache,
|
|
3750
|
+
alias: this.config.build?.alias ? Array.isArray(this.config.build.alias) ? this.config.build.alias.reduce((ret, alias) => {
|
|
3751
|
+
ret[alias.find.toString()] = alias.replacement;
|
|
3752
|
+
return ret;
|
|
3753
|
+
}, {}) : this.config.build.alias : {}
|
|
3727
3754
|
});
|
|
3728
3755
|
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3729
3756
|
this.mergeUserConfig(userConfig.config);
|
|
@@ -3756,7 +3783,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3756
3783
|
outputPath: cacheKey.projectRoot ? join.joinPaths(this.workspaceConfig?.directories?.build || "dist", cacheKey.projectRoot) : this.workspaceConfig?.directories?.build || "dist",
|
|
3757
3784
|
artifactsPath: `.${config.framework ?? "powerlines"}`,
|
|
3758
3785
|
dts: join.joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
|
|
3759
|
-
builtinPrefix: config.framework ?? "powerlines",
|
|
3760
3786
|
assets: [
|
|
3761
3787
|
{
|
|
3762
3788
|
glob: "LICENSE"
|
|
@@ -5109,5 +5135,5 @@ exports.extendLog = extendLog;
|
|
|
5109
5135
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5110
5136
|
exports.name = name;
|
|
5111
5137
|
exports.version = version;
|
|
5112
|
-
//# sourceMappingURL=chunk-
|
|
5113
|
-
//# sourceMappingURL=chunk-
|
|
5138
|
+
//# sourceMappingURL=chunk-BNMY5INT.cjs.map
|
|
5139
|
+
//# sourceMappingURL=chunk-BNMY5INT.cjs.map
|
|
@@ -64,21 +64,7 @@ export { ${key} };`;
|
|
|
64
64
|
}).join("\n"));
|
|
65
65
|
}
|
|
66
66
|
return defu__default.default({
|
|
67
|
-
alias: context.
|
|
68
|
-
const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
|
|
69
|
-
if (!ret[moduleId]) {
|
|
70
|
-
const path = context.fs.paths[id];
|
|
71
|
-
if (path) {
|
|
72
|
-
ret[moduleId] = path;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return ret;
|
|
76
|
-
}, context.config.build.alias ? Array.isArray(context.config.build.alias) ? context.config.build.alias.reduce((ret, alias) => {
|
|
77
|
-
if (!ret[alias.find.toString()]) {
|
|
78
|
-
ret[alias.find.toString()] = alias.replacement;
|
|
79
|
-
}
|
|
80
|
-
return ret;
|
|
81
|
-
}, {}) : context.config.build.alias : {}),
|
|
67
|
+
alias: context.alias,
|
|
82
68
|
inject: inject && Object.keys(inject).length > 0 ? [
|
|
83
69
|
joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.artifactsPath, "inject-shim.js")
|
|
84
70
|
] : void 0
|
|
@@ -117,5 +103,5 @@ export { ${key} };`;
|
|
|
117
103
|
chunkPK6SKIKE_cjs.__name(extractESBuildConfig, "extractESBuildConfig");
|
|
118
104
|
|
|
119
105
|
exports.extractESBuildConfig = extractESBuildConfig;
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-HDHABS4U.cjs.map
|
|
107
|
+
//# sourceMappingURL=chunk-HDHABS4U.cjs.map
|
|
@@ -58,21 +58,7 @@ export { ${key} };`;
|
|
|
58
58
|
}).join("\n"));
|
|
59
59
|
}
|
|
60
60
|
return defu({
|
|
61
|
-
alias: context.
|
|
62
|
-
const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
|
|
63
|
-
if (!ret[moduleId]) {
|
|
64
|
-
const path = context.fs.paths[id];
|
|
65
|
-
if (path) {
|
|
66
|
-
ret[moduleId] = path;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return ret;
|
|
70
|
-
}, context.config.build.alias ? Array.isArray(context.config.build.alias) ? context.config.build.alias.reduce((ret, alias) => {
|
|
71
|
-
if (!ret[alias.find.toString()]) {
|
|
72
|
-
ret[alias.find.toString()] = alias.replacement;
|
|
73
|
-
}
|
|
74
|
-
return ret;
|
|
75
|
-
}, {}) : context.config.build.alias : {}),
|
|
61
|
+
alias: context.alias,
|
|
76
62
|
inject: inject && Object.keys(inject).length > 0 ? [
|
|
77
63
|
joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.artifactsPath, "inject-shim.js")
|
|
78
64
|
] : void 0
|
|
@@ -111,5 +97,5 @@ export { ${key} };`;
|
|
|
111
97
|
__name(extractESBuildConfig, "extractESBuildConfig");
|
|
112
98
|
|
|
113
99
|
export { extractESBuildConfig };
|
|
114
|
-
//# sourceMappingURL=chunk-
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-HLCQIZKK.js.map
|
|
101
|
+
//# sourceMappingURL=chunk-HLCQIZKK.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-B5CY33VJ.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
134
134
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
135
135
|
|
|
136
136
|
export { createUnpluginFactory, getString };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-II6VDTID.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-II6VDTID.js.map
|