powerlines 0.34.9 → 0.35.1
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-64F6GdFq.d.cts → api-Ch19bYX6.d.cts} +1 -1
- package/dist/{api-C8dgNF9j.d.ts → api-DJoWdEeA.d.ts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +2 -2
- package/dist/astro.d.ts +2 -2
- package/dist/astro.js +3 -3
- package/dist/chunk-24F67D36.cjs +12 -0
- package/dist/{chunk-WLBT35SV.cjs → chunk-3TJ77HBR.cjs} +5 -5
- package/dist/{chunk-3HMEVUF3.js → chunk-4JTXARCZ.js} +3 -3
- package/dist/{chunk-JZA7N2M4.js → chunk-4ZM66B4T.js} +3 -3
- package/dist/{chunk-MLAI362G.js → chunk-52UMGJQJ.js} +3 -3
- package/dist/{chunk-AMPAP7VJ.js → chunk-7GLQATKT.js} +3 -3
- package/dist/{chunk-O5QCLZXU.cjs → chunk-AFSF26JE.cjs} +4 -4
- package/dist/{chunk-IWD7XNVY.js → chunk-EJZVAP3T.js} +2 -2
- package/dist/{chunk-RFPNTMLX.js → chunk-GIOACISS.js} +2 -2
- package/dist/{chunk-NJRZDDTZ.cjs → chunk-IJXEMXLH.cjs} +2 -2
- package/dist/{chunk-BY2N3ZJV.js → chunk-JEP7MDIY.js} +67 -32
- package/dist/{chunk-MBPLCGMU.js → chunk-LUTJ2RSQ.js} +3 -3
- package/dist/{chunk-V64P3LPH.cjs → chunk-OOZPDTJM.cjs} +67 -32
- package/dist/{chunk-IMRQNWR4.cjs → chunk-QMYQNHIP.cjs} +4 -4
- package/dist/chunk-S6KFRQYJ.cjs +12 -0
- package/dist/{chunk-BCF2FSIU.cjs → chunk-UMU2MF3G.cjs} +2 -2
- package/dist/{context-CD3z3bug.d.ts → context-CWyF5B_6.d.ts} +18 -14
- package/dist/{context-CybU4gzB.d.cts → context-HIW4qjIs.d.cts} +18 -14
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +2 -2
- package/dist/farm.d.ts +2 -2
- package/dist/farm.js +2 -2
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/lib/{api-WGXMngpt.d.ts → api-B8aBolnU.d.ts} +1 -1
- package/dist/lib/{api-C-muqDwC.d.cts → api-C6p2jxI9.d.cts} +1 -1
- package/dist/lib/build/esbuild.d.cts +2 -2
- package/dist/lib/build/esbuild.d.ts +2 -2
- package/dist/lib/build/index.d.cts +4 -4
- package/dist/lib/build/index.d.ts +4 -4
- package/dist/lib/build/rolldown.d.cts +2 -2
- package/dist/lib/build/rolldown.d.ts +2 -2
- package/dist/lib/build/rollup.d.cts +2 -2
- package/dist/lib/build/rollup.d.ts +2 -2
- package/dist/lib/build/rspack.d.cts +2 -2
- package/dist/lib/build/rspack.d.ts +2 -2
- package/dist/lib/build/tsdown.d.cts +2 -2
- package/dist/lib/build/tsdown.d.ts +2 -2
- package/dist/lib/build/tsup.d.cts +2 -2
- package/dist/lib/build/tsup.d.ts +2 -2
- package/dist/lib/build/unbuild.d.cts +4 -4
- package/dist/lib/build/unbuild.d.ts +4 -4
- package/dist/lib/build/vite.d.cts +2 -2
- package/dist/lib/build/vite.d.ts +2 -2
- package/dist/lib/build/webpack.d.cts +2 -2
- package/dist/lib/build/webpack.d.ts +2 -2
- package/dist/lib/{chunk-2KYZLGIZ.js → chunk-25C6FCLA.js} +4 -4
- package/dist/lib/{chunk-2KYZLGIZ.js.map → chunk-25C6FCLA.js.map} +1 -1
- package/dist/lib/{chunk-VPZU5BTK.js → chunk-3BXSIJGU.js} +17 -6
- package/dist/lib/chunk-3BXSIJGU.js.map +1 -0
- package/dist/lib/{chunk-UWOD2XLX.cjs → chunk-53LK7IG5.cjs} +17 -3
- package/dist/lib/chunk-53LK7IG5.cjs.map +1 -0
- package/dist/lib/{chunk-RRPFZDGI.cjs → chunk-7XTQMSUB.cjs} +6 -6
- package/dist/lib/{chunk-RRPFZDGI.cjs.map → chunk-7XTQMSUB.cjs.map} +1 -1
- package/dist/lib/{chunk-HVL3SPVN.js → chunk-FM7R4KTA.js} +40 -30
- package/dist/lib/chunk-FM7R4KTA.js.map +1 -0
- package/dist/lib/{chunk-VM6LBJ3L.cjs → chunk-NOABJWDK.cjs} +45 -35
- package/dist/lib/chunk-NOABJWDK.cjs.map +1 -0
- package/dist/lib/{chunk-MBGLVIJD.js → chunk-Q7KX7QCP.js} +3 -3
- package/dist/lib/{chunk-MBGLVIJD.js.map → chunk-Q7KX7QCP.js.map} +1 -1
- package/dist/lib/{chunk-NXUMUI2Z.js → chunk-TB2ZWKZN.js} +17 -3
- package/dist/lib/chunk-TB2ZWKZN.js.map +1 -0
- package/dist/lib/{chunk-UZSTEOLF.cjs → chunk-VAIDDF5X.cjs} +19 -8
- package/dist/lib/chunk-VAIDDF5X.cjs.map +1 -0
- package/dist/lib/{chunk-XXQREHLK.cjs → chunk-VMWMBMXG.cjs} +13 -13
- package/dist/lib/{chunk-XXQREHLK.cjs.map → chunk-VMWMBMXG.cjs.map} +1 -1
- package/dist/lib/{config-ba1qwxTg.d.ts → config-CGGo9KcK.d.ts} +17 -13
- package/dist/lib/{config-Lr7p1CKw.d.cts → config-CYz6Kd4L.d.cts} +17 -13
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +4 -4
- package/dist/lib/contexts/api-context.d.ts +4 -4
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +4 -4
- package/dist/lib/contexts/context.d.ts +4 -4
- 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 +4 -4
- package/dist/lib/contexts/environment-context.d.ts +4 -4
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +4 -4
- package/dist/lib/contexts/plugin-context.d.ts +4 -4
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.d.cts +2 -2
- package/dist/lib/fs/index.d.ts +2 -2
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/storage/base.d.cts +1 -1
- package/dist/lib/fs/storage/base.d.ts +1 -1
- package/dist/lib/fs/storage/file-system.d.cts +1 -1
- package/dist/lib/fs/storage/file-system.d.ts +1 -1
- package/dist/lib/fs/storage/index.d.cts +1 -1
- package/dist/lib/fs/storage/index.d.ts +1 -1
- package/dist/lib/fs/storage/virtual.d.cts +1 -1
- package/dist/lib/fs/storage/virtual.d.ts +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/{fs-BkpNEsxT.d.ts → fs-Mx46r7JY.d.cts} +2 -2
- package/dist/lib/{fs-BkpNEsxT.d.cts → fs-Mx46r7JY.d.ts} +2 -2
- package/dist/lib/index.cjs +10 -10
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-Cy15nTJD.d.ts → internal-DoGteMoK.d.ts} +2 -2
- package/dist/lib/{internal-CSgMKSqU.d.cts → internal-YI5K6rmd.d.cts} +2 -2
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.ts +2 -2
- package/dist/lib/typescript/ts-morph.d.cts +2 -2
- package/dist/lib/typescript/ts-morph.d.ts +2 -2
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/{unplugin-C1FUzEE1.d.ts → unplugin-DYkHIqSU.d.ts} +2 -2
- package/dist/lib/{unplugin-DQ_UxGcQ.d.cts → unplugin-Dx_uD4rQ.d.cts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/cache.d.cts +2 -2
- package/dist/lib/utilities/cache.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/source-file.d.cts +2 -2
- package/dist/lib/utilities/source-file.d.ts +2 -2
- package/dist/lib/utilities/source-map.d.cts +2 -2
- package/dist/lib/utilities/source-map.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{chunk-X4BI25Z5.js → chunk-CTG3PTA6.js} +3 -3
- package/dist/plugin-utils/chunk-CTG3PTA6.js.map +1 -0
- package/dist/plugin-utils/chunk-DO3S34NW.cjs +33 -0
- package/dist/plugin-utils/chunk-DO3S34NW.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-QQ63YK2G.js → chunk-DYCWCPQP.js} +3 -3
- package/dist/plugin-utils/{chunk-QQ63YK2G.js.map → chunk-DYCWCPQP.js.map} +1 -1
- package/dist/plugin-utils/{chunk-UXLKUCEY.cjs → chunk-FINF3V34.cjs} +6 -6
- package/dist/plugin-utils/{chunk-UXLKUCEY.cjs.map → chunk-FINF3V34.cjs.map} +1 -1
- package/dist/plugin-utils/{chunk-VJGI676W.cjs → chunk-IZMPXMCN.cjs} +3 -3
- package/dist/plugin-utils/chunk-IZMPXMCN.cjs.map +1 -0
- package/dist/plugin-utils/chunk-LRSYWPP2.js +31 -0
- package/dist/plugin-utils/chunk-LRSYWPP2.js.map +1 -0
- package/dist/plugin-utils/chunk-ORSVDVXT.js +25 -0
- package/dist/plugin-utils/chunk-ORSVDVXT.js.map +1 -0
- package/dist/plugin-utils/chunk-VW6I3FEY.cjs +27 -0
- package/dist/plugin-utils/chunk-VW6I3FEY.cjs.map +1 -0
- package/dist/plugin-utils/{context-D7SEhuVP.d.ts → context-BY72cezC.d.cts} +21 -17
- package/dist/plugin-utils/{context-D7SEhuVP.d.cts → context-BY72cezC.d.ts} +21 -17
- package/dist/plugin-utils/context-helpers.d.cts +2 -2
- package/dist/plugin-utils/context-helpers.d.ts +2 -2
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +4 -3
- package/dist/plugin-utils/enforce.d.ts +4 -3
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +6 -3
- package/dist/plugin-utils/extend.d.ts +6 -3
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.d.cts +2 -2
- package/dist/plugin-utils/get-config-path.d.ts +2 -2
- package/dist/plugin-utils/helpers.cjs +14 -14
- package/dist/plugin-utils/helpers.d.cts +2 -2
- package/dist/plugin-utils/helpers.d.ts +2 -2
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +20 -20
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.ts +2 -2
- package/dist/plugin-utils/index.js +4 -4
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +2 -2
- package/dist/plugin-utils/merge.d.ts +2 -2
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.d.cts +2 -2
- package/dist/plugin-utils/paths.d.ts +2 -2
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.ts +2 -2
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +3 -3
- package/dist/types/api.d.ts +3 -3
- package/dist/types/babel.d.cts +2 -2
- package/dist/types/babel.d.ts +2 -2
- package/dist/types/commands.d.cts +2 -2
- package/dist/types/commands.d.ts +2 -2
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +2 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/context.js +1 -1
- package/dist/types/fs.cjs +3 -3
- package/dist/types/fs.d.cts +2 -2
- package/dist/types/fs.d.ts +2 -2
- package/dist/types/fs.js +1 -1
- package/dist/types/hooks.d.cts +2 -2
- package/dist/types/hooks.d.ts +2 -2
- package/dist/types/index.cjs +5 -5
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +3 -3
- package/dist/types/internal.d.ts +3 -3
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +3 -3
- package/dist/types/unplugin.d.ts +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +2 -2
- package/dist/unloader.d.ts +2 -2
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +5 -5
- package/dist/unplugin.d.cts +3 -3
- package/dist/unplugin.d.ts +3 -3
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-2GKVCE3E.cjs +0 -12
- package/dist/chunk-JTZS2TSQ.cjs +0 -12
- package/dist/lib/chunk-HVL3SPVN.js.map +0 -1
- package/dist/lib/chunk-NXUMUI2Z.js.map +0 -1
- package/dist/lib/chunk-UWOD2XLX.cjs.map +0 -1
- package/dist/lib/chunk-UZSTEOLF.cjs.map +0 -1
- package/dist/lib/chunk-VM6LBJ3L.cjs.map +0 -1
- package/dist/lib/chunk-VPZU5BTK.js.map +0 -1
- package/dist/plugin-utils/chunk-36OM2X4L.js +0 -30
- package/dist/plugin-utils/chunk-36OM2X4L.js.map +0 -1
- package/dist/plugin-utils/chunk-DQDBFO67.js +0 -23
- package/dist/plugin-utils/chunk-DQDBFO67.js.map +0 -1
- package/dist/plugin-utils/chunk-EWPAHNGW.cjs +0 -25
- package/dist/plugin-utils/chunk-EWPAHNGW.cjs.map +0 -1
- package/dist/plugin-utils/chunk-ID47RJFS.cjs +0 -32
- package/dist/plugin-utils/chunk-ID47RJFS.cjs.map +0 -1
- package/dist/plugin-utils/chunk-VJGI676W.cjs.map +0 -1
- package/dist/plugin-utils/chunk-X4BI25Z5.js.map +0 -1
|
@@ -840,7 +840,7 @@ function isPluginConfigTuple(value) {
|
|
|
840
840
|
}
|
|
841
841
|
chunkPK6SKIKE_cjs.__name(isPluginConfigTuple, "isPluginConfigTuple");
|
|
842
842
|
function isPluginConfig(value) {
|
|
843
|
-
return isSetString.isSetString(value) || isFunction.isFunction(value) || isPlugin(value) || isPluginConfigObject(value) || isPluginConfigTuple(value);
|
|
843
|
+
return isSetString.isSetString(value) || isFunction.isFunction(value) || isPlugin(value) || Array.isArray(value) && value.every((item) => isPlugin(item)) || isPluginConfigObject(value) || isPluginConfigTuple(value);
|
|
844
844
|
}
|
|
845
845
|
chunkPK6SKIKE_cjs.__name(isPluginConfig, "isPluginConfig");
|
|
846
846
|
function isPluginHookFunction(value) {
|
|
@@ -1902,6 +1902,20 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
return ret;
|
|
1904
1904
|
}, {});
|
|
1905
|
+
if (context.config.skipCache !== true) {
|
|
1906
|
+
Object.entries(this.#metadata).filter(([, value]) => value.type === "entry").forEach(([id, value]) => {
|
|
1907
|
+
this.#context.entry ??= [];
|
|
1908
|
+
this.#context.entry.push({
|
|
1909
|
+
file: id,
|
|
1910
|
+
name: value.properties.name,
|
|
1911
|
+
output: value.properties.output,
|
|
1912
|
+
input: value.properties["input.file"] ? {
|
|
1913
|
+
file: value.properties["input.file"],
|
|
1914
|
+
name: value.properties["input.name"]
|
|
1915
|
+
} : void 0
|
|
1916
|
+
});
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1905
1919
|
}
|
|
1906
1920
|
this.#ids = {};
|
|
1907
1921
|
this.#paths = {};
|
|
@@ -2504,7 +2518,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2504
2518
|
fileMetadata.timestamp = value.timestamp ?? BigInt(Date.now());
|
|
2505
2519
|
if (value.properties) {
|
|
2506
2520
|
const props = fileMetadata._initProperties(Object.keys(value.properties).length);
|
|
2507
|
-
Object.entries(value.properties).forEach(([key, val], index2) => {
|
|
2521
|
+
Object.entries(value.properties).filter(([, val]) => isSetString.isSetString(val)).forEach(([key, val], index2) => {
|
|
2508
2522
|
const prop = props.get(index2);
|
|
2509
2523
|
prop.key = key;
|
|
2510
2524
|
prop.value = val;
|
|
@@ -3116,13 +3130,24 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3116
3130
|
* @param options - Optional write file options
|
|
3117
3131
|
*/
|
|
3118
3132
|
async emitEntry(code, path, options = {}) {
|
|
3119
|
-
|
|
3133
|
+
const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
|
|
3134
|
+
this.entry ??= [];
|
|
3135
|
+
this.entry.push({
|
|
3136
|
+
name: options.name,
|
|
3137
|
+
file: entryPath,
|
|
3138
|
+
input: options.input,
|
|
3139
|
+
output: options.output
|
|
3140
|
+
});
|
|
3141
|
+
return this.fs.write(entryPath, code, defu7__default.default(omit.omit(options, [
|
|
3120
3142
|
"name"
|
|
3121
3143
|
]), {
|
|
3122
3144
|
meta: {
|
|
3123
3145
|
type: "entry",
|
|
3124
3146
|
properties: {
|
|
3125
|
-
name: options.name
|
|
3147
|
+
name: options.name,
|
|
3148
|
+
output: options.output,
|
|
3149
|
+
"input.file": options.input?.file,
|
|
3150
|
+
"input.name": options.input?.name
|
|
3126
3151
|
}
|
|
3127
3152
|
}
|
|
3128
3153
|
}));
|
|
@@ -4034,7 +4059,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4034
4059
|
order: "normal"
|
|
4035
4060
|
});
|
|
4036
4061
|
context.log(types.LogLevelLabel.DEBUG, `The configuration provided ${toArray.toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4037
|
-
${context.entry.map((entry) => `- ${entry.
|
|
4062
|
+
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
|
|
4038
4063
|
await resolveTsconfig(context);
|
|
4039
4064
|
await installDependencies(context);
|
|
4040
4065
|
await this.callHook("configResolved", {
|
|
@@ -4473,17 +4498,19 @@ ${formatTypes(types$1)}
|
|
|
4473
4498
|
*/
|
|
4474
4499
|
async #addPlugin(config) {
|
|
4475
4500
|
if (config) {
|
|
4476
|
-
const
|
|
4477
|
-
if (!
|
|
4501
|
+
const result = await this.#initPlugin(config);
|
|
4502
|
+
if (!result) {
|
|
4478
4503
|
return;
|
|
4479
4504
|
}
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4505
|
+
for (const plugin of result) {
|
|
4506
|
+
if (plugin.dependsOn) {
|
|
4507
|
+
for (const required of plugin.dependsOn) {
|
|
4508
|
+
await this.#addPlugin(required);
|
|
4509
|
+
}
|
|
4483
4510
|
}
|
|
4511
|
+
this.context.log(types.LogLevelLabel.DEBUG, `Successfully initialized the ${chalk5__default.default.bold.cyanBright(plugin.name)} plugin`);
|
|
4512
|
+
await this.context.addPlugin(plugin);
|
|
4484
4513
|
}
|
|
4485
|
-
this.context.log(types.LogLevelLabel.DEBUG, `Successfully initialized the ${chalk5__default.default.bold.cyanBright(plugin.name)} plugin`);
|
|
4486
|
-
await this.context.addPlugin(plugin);
|
|
4487
4514
|
}
|
|
4488
4515
|
}
|
|
4489
4516
|
/**
|
|
@@ -4501,17 +4528,21 @@ ${formatTypes(types$1)}
|
|
|
4501
4528
|
if (!isPluginConfig(awaited)) {
|
|
4502
4529
|
throw new Error(`Invalid plugin specified in the configuration - ${JSON.stringify(awaited)}. Please ensure the value is a plugin name, an object with the \`plugin\` and \`props\` properties, or an instance of \`Plugin\`.`);
|
|
4503
4530
|
}
|
|
4504
|
-
let
|
|
4505
|
-
if (
|
|
4506
|
-
|
|
4531
|
+
let result;
|
|
4532
|
+
if (Array.isArray(awaited) && awaited.every(isPlugin)) {
|
|
4533
|
+
result = awaited;
|
|
4534
|
+
} else if (isPlugin(awaited)) {
|
|
4535
|
+
result = [
|
|
4536
|
+
awaited
|
|
4537
|
+
];
|
|
4507
4538
|
} else if (isFunction.isFunction(awaited)) {
|
|
4508
|
-
|
|
4539
|
+
result = toArray.toArray(await Promise.resolve(awaited()));
|
|
4509
4540
|
} else if (isSetString.isSetString(awaited)) {
|
|
4510
4541
|
const resolved = await this.#resolvePlugin(awaited);
|
|
4511
4542
|
if (isFunction.isFunction(resolved)) {
|
|
4512
|
-
|
|
4543
|
+
result = toArray.toArray(await Promise.resolve(resolved()));
|
|
4513
4544
|
} else {
|
|
4514
|
-
|
|
4545
|
+
result = toArray.toArray(resolved);
|
|
4515
4546
|
}
|
|
4516
4547
|
} else if (isPluginConfigTuple(awaited) || isPluginConfigObject(awaited)) {
|
|
4517
4548
|
let pluginConfig;
|
|
@@ -4526,28 +4557,32 @@ ${formatTypes(types$1)}
|
|
|
4526
4557
|
if (isSetString.isSetString(pluginConfig)) {
|
|
4527
4558
|
const resolved = await this.#resolvePlugin(pluginConfig);
|
|
4528
4559
|
if (isFunction.isFunction(resolved)) {
|
|
4529
|
-
|
|
4560
|
+
result = toArray.toArray(await Promise.resolve(pluginOptions ? resolved(pluginOptions) : resolved()));
|
|
4530
4561
|
} else {
|
|
4531
|
-
|
|
4562
|
+
result = toArray.toArray(resolved);
|
|
4532
4563
|
}
|
|
4533
4564
|
} else if (isFunction.isFunction(pluginConfig)) {
|
|
4534
|
-
|
|
4565
|
+
result = toArray.toArray(await Promise.resolve(pluginConfig(pluginOptions)));
|
|
4566
|
+
} else if (Array.isArray(pluginConfig) && pluginConfig.every(isPlugin)) {
|
|
4567
|
+
result = pluginConfig;
|
|
4535
4568
|
} else if (isPlugin(pluginConfig)) {
|
|
4536
|
-
|
|
4569
|
+
result = toArray.toArray(pluginConfig);
|
|
4537
4570
|
}
|
|
4538
4571
|
}
|
|
4539
|
-
if (!
|
|
4572
|
+
if (!result) {
|
|
4540
4573
|
throw new Error(`The plugin configuration ${JSON.stringify(awaited)} is invalid. This configuration must point to a valid Powerlines plugin module.`);
|
|
4541
4574
|
}
|
|
4542
|
-
if (!isPlugin
|
|
4543
|
-
throw new Error(`The plugin option ${JSON.stringify(
|
|
4575
|
+
if (result.length > 0 && !result.every(isPlugin)) {
|
|
4576
|
+
throw new Error(`The plugin option ${JSON.stringify(result)} does not export a valid module. This configuration must point to a valid Powerlines plugin module.`);
|
|
4544
4577
|
}
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4578
|
+
for (const plugin of result) {
|
|
4579
|
+
if (checkDedupe(plugin, this.context.plugins)) {
|
|
4580
|
+
this.context.log(types.LogLevelLabel.TRACE, `Duplicate ${chalk5__default.default.bold.cyanBright(plugin.name)} plugin dependency detected - Skipping initialization.`);
|
|
4581
|
+
return null;
|
|
4582
|
+
}
|
|
4583
|
+
this.context.log(types.LogLevelLabel.TRACE, `Initializing the ${chalk5__default.default.bold.cyanBright(plugin.name)} plugin...`);
|
|
4548
4584
|
}
|
|
4549
|
-
|
|
4550
|
-
return plugin;
|
|
4585
|
+
return result;
|
|
4551
4586
|
}
|
|
4552
4587
|
async #resolvePlugin(pluginPath) {
|
|
4553
4588
|
if (pluginPath.startsWith("@") && pluginPath.split("/").filter(Boolean).length > 2) {
|
|
@@ -4608,5 +4643,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
|
|
|
4608
4643
|
exports._capnpFileId = _capnpFileId;
|
|
4609
4644
|
exports.createLog = createLog;
|
|
4610
4645
|
exports.extendLog = extendLog;
|
|
4611
|
-
//# sourceMappingURL=chunk-
|
|
4612
|
-
//# sourceMappingURL=chunk-
|
|
4646
|
+
//# sourceMappingURL=chunk-OOZPDTJM.cjs.map
|
|
4647
|
+
//# sourceMappingURL=chunk-OOZPDTJM.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk3TJ77HBR_cjs = require('./chunk-3TJ77HBR.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(chunk3TJ77HBR_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -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-QMYQNHIP.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-QMYQNHIP.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3TJ77HBR_cjs = require('./chunk-3TJ77HBR.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk3TJ77HBR_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-S6KFRQYJ.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-S6KFRQYJ.cjs.map
|
|
@@ -6,5 +6,5 @@ var __VFS_REVERT__ = "__VFS_REVERT__";
|
|
|
6
6
|
|
|
7
7
|
exports.__VFS_PATCH__ = __VFS_PATCH__;
|
|
8
8
|
exports.__VFS_REVERT__ = __VFS_REVERT__;
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-UMU2MF3G.cjs.map
|
|
10
|
+
//# sourceMappingURL=chunk-UMU2MF3G.cjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
2
|
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
3
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
4
|
-
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
5
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
6
5
|
import { Worker } from 'jest-worker';
|
|
7
6
|
import { Jiti } from 'jiti';
|
|
@@ -16,6 +15,7 @@ import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } f
|
|
|
16
15
|
import { Format } from '@storm-software/build-tools/types';
|
|
17
16
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
18
17
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
18
|
+
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
19
19
|
import { AssetGlob } from '@stryke/types/file';
|
|
20
20
|
import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
|
|
21
21
|
import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfig$2 } from 'vite';
|
|
@@ -109,7 +109,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
109
109
|
/**
|
|
110
110
|
* The user provided entry point in the source code
|
|
111
111
|
*/
|
|
112
|
-
input
|
|
112
|
+
input?: TypeDefinition;
|
|
113
113
|
/**
|
|
114
114
|
* An optional name to use in the package export during the build process
|
|
115
115
|
*/
|
|
@@ -462,7 +462,7 @@ type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
|
462
462
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
463
463
|
*/
|
|
464
464
|
type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
|
|
465
|
-
type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext
|
|
465
|
+
type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext> | Plugin<TContext>[]>;
|
|
466
466
|
/**
|
|
467
467
|
* A configuration tuple for a Powerlines plugin.
|
|
468
468
|
*/
|
|
@@ -480,9 +480,9 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
480
480
|
/**
|
|
481
481
|
* A configuration tuple for a Powerlines plugin.
|
|
482
482
|
*/
|
|
483
|
-
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext
|
|
483
|
+
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Plugin<TContext>[] | Promise<Plugin<TContext> | Plugin<TContext>[]> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
484
484
|
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
485
|
-
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext
|
|
485
|
+
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext> | PartialPlugin<TContext>[]>;
|
|
486
486
|
type ProjectType = "application" | "library";
|
|
487
487
|
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
488
488
|
/**
|
|
@@ -1054,6 +1054,9 @@ type UnimportContext = Omit<Unimport, "injectImports"> & {
|
|
|
1054
1054
|
interface SelectHooksOptions {
|
|
1055
1055
|
order?: "pre" | "post" | "normal";
|
|
1056
1056
|
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Options for initializing or updating the context with new configuration values
|
|
1059
|
+
*/
|
|
1057
1060
|
interface InitContextOptions {
|
|
1058
1061
|
/**
|
|
1059
1062
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -1062,27 +1065,28 @@ interface InitContextOptions {
|
|
|
1062
1065
|
*/
|
|
1063
1066
|
isHighPriority: boolean;
|
|
1064
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
1070
|
+
*/
|
|
1065
1071
|
interface FetchOptions extends FetchRequestOptions {
|
|
1066
1072
|
/**
|
|
1067
1073
|
* An indicator specifying that the request should bypass any caching
|
|
1068
1074
|
*/
|
|
1069
1075
|
skipCache?: boolean;
|
|
1070
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
1079
|
+
*/
|
|
1071
1080
|
interface ParseOptions extends ParserOptions {
|
|
1072
1081
|
/**
|
|
1073
1082
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1074
1083
|
*/
|
|
1075
1084
|
allowReturnOutsideFunction?: boolean;
|
|
1076
1085
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
* @remarks
|
|
1082
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
1083
|
-
*/
|
|
1084
|
-
name?: TypeDefinition["name"];
|
|
1085
|
-
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Options for emitting entry virtual files
|
|
1088
|
+
*/
|
|
1089
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
1086
1090
|
/**
|
|
1087
1091
|
* The unresolved Powerlines context.
|
|
1088
1092
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
2
|
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
3
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
4
|
-
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
5
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
6
5
|
import { Worker } from 'jest-worker';
|
|
7
6
|
import { Jiti } from 'jiti';
|
|
@@ -16,6 +15,7 @@ import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } f
|
|
|
16
15
|
import { Format } from '@storm-software/build-tools/types';
|
|
17
16
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
18
17
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
18
|
+
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
19
19
|
import { AssetGlob } from '@stryke/types/file';
|
|
20
20
|
import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
|
|
21
21
|
import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfig$2 } from 'vite';
|
|
@@ -109,7 +109,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
109
109
|
/**
|
|
110
110
|
* The user provided entry point in the source code
|
|
111
111
|
*/
|
|
112
|
-
input
|
|
112
|
+
input?: TypeDefinition;
|
|
113
113
|
/**
|
|
114
114
|
* An optional name to use in the package export during the build process
|
|
115
115
|
*/
|
|
@@ -462,7 +462,7 @@ type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
|
462
462
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
463
463
|
*/
|
|
464
464
|
type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
|
|
465
|
-
type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext
|
|
465
|
+
type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext> | Plugin<TContext>[]>;
|
|
466
466
|
/**
|
|
467
467
|
* A configuration tuple for a Powerlines plugin.
|
|
468
468
|
*/
|
|
@@ -480,9 +480,9 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
480
480
|
/**
|
|
481
481
|
* A configuration tuple for a Powerlines plugin.
|
|
482
482
|
*/
|
|
483
|
-
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext
|
|
483
|
+
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Plugin<TContext>[] | Promise<Plugin<TContext> | Plugin<TContext>[]> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
484
484
|
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
485
|
-
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext
|
|
485
|
+
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext> | PartialPlugin<TContext>[]>;
|
|
486
486
|
type ProjectType = "application" | "library";
|
|
487
487
|
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
488
488
|
/**
|
|
@@ -1054,6 +1054,9 @@ type UnimportContext = Omit<Unimport, "injectImports"> & {
|
|
|
1054
1054
|
interface SelectHooksOptions {
|
|
1055
1055
|
order?: "pre" | "post" | "normal";
|
|
1056
1056
|
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Options for initializing or updating the context with new configuration values
|
|
1059
|
+
*/
|
|
1057
1060
|
interface InitContextOptions {
|
|
1058
1061
|
/**
|
|
1059
1062
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -1062,27 +1065,28 @@ interface InitContextOptions {
|
|
|
1062
1065
|
*/
|
|
1063
1066
|
isHighPriority: boolean;
|
|
1064
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
1070
|
+
*/
|
|
1065
1071
|
interface FetchOptions extends FetchRequestOptions {
|
|
1066
1072
|
/**
|
|
1067
1073
|
* An indicator specifying that the request should bypass any caching
|
|
1068
1074
|
*/
|
|
1069
1075
|
skipCache?: boolean;
|
|
1070
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
1079
|
+
*/
|
|
1071
1080
|
interface ParseOptions extends ParserOptions {
|
|
1072
1081
|
/**
|
|
1073
1082
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1074
1083
|
*/
|
|
1075
1084
|
allowReturnOutsideFunction?: boolean;
|
|
1076
1085
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
* @remarks
|
|
1082
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
1083
|
-
*/
|
|
1084
|
-
name?: TypeDefinition["name"];
|
|
1085
|
-
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Options for emitting entry virtual files
|
|
1088
|
+
*/
|
|
1089
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
1086
1090
|
/**
|
|
1087
1091
|
* The unresolved Powerlines context.
|
|
1088
1092
|
*
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkQMYQNHIP_cjs = require('./chunk-QMYQNHIP.cjs');
|
|
6
6
|
require('./chunk-QHEKB7RW.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-3TJ77HBR.cjs');
|
|
8
|
+
require('./chunk-OOZPDTJM.cjs');
|
|
9
9
|
require('./chunk-VFXZVCGG.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
require('./chunk-PK6SKIKE.cjs');
|
|
@@ -14,15 +14,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQMYQNHIP_cjs.esbuild_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "esbuild", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkQMYQNHIP_cjs.esbuild; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "module.exports", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkQMYQNHIP_cjs.esbuild; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=esbuild.cjs.map
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import { Z as ESBuildUserConfig } from './context-
|
|
2
|
+
import { Z as ESBuildUserConfig } from './context-HIW4qjIs.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import { Z as ESBuildUserConfig } from './context-
|
|
2
|
+
import { Z as ESBuildUserConfig } from './context-CWyF5B_6.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-
|
|
1
|
+
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-4JTXARCZ.js';
|
|
2
2
|
import './chunk-YJWTNJQF.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-4ZM66B4T.js';
|
|
4
|
+
import './chunk-JEP7MDIY.js';
|
|
5
5
|
import './chunk-JGSCIWFQ.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
|
7
7
|
import './chunk-7QVYU63E.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk3TJ77HBR_cjs = require('./chunk-3TJ77HBR.cjs');
|
|
6
|
+
require('./chunk-OOZPDTJM.cjs');
|
|
7
7
|
require('./chunk-VFXZVCGG.cjs');
|
|
8
8
|
require('./chunk-Z6ARQDHR.cjs');
|
|
9
9
|
require('./chunk-PK6SKIKE.cjs');
|
|
10
10
|
var unplugin = require('unplugin');
|
|
11
11
|
|
|
12
|
-
var farm = unplugin.createFarmPlugin(
|
|
12
|
+
var farm = unplugin.createFarmPlugin(chunk3TJ77HBR_cjs.createUnpluginFactory("farm"));
|
|
13
13
|
var farm_default = farm;
|
|
14
14
|
|
|
15
15
|
exports.default = farm_default;
|
package/dist/farm.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { a2 as FarmUserConfig } from './context-
|
|
2
|
+
import { a2 as FarmUserConfig } from './context-HIW4qjIs.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { a2 as FarmUserConfig } from './context-
|
|
2
|
+
import { a2 as FarmUserConfig } from './context-CWyF5B_6.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/farm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-4ZM66B4T.js';
|
|
2
|
+
import './chunk-JEP7MDIY.js';
|
|
3
3
|
import './chunk-JGSCIWFQ.js';
|
|
4
4
|
import './chunk-2MYPFASJ.js';
|
|
5
5
|
import './chunk-7QVYU63E.js';
|
package/dist/index.cjs
CHANGED
|
@@ -11,10 +11,10 @@ require('./chunk-YZZUOOPS.cjs');
|
|
|
11
11
|
require('./chunk-DFLNRC3B.cjs');
|
|
12
12
|
require('./chunk-VQCQRLGM.cjs');
|
|
13
13
|
require('./chunk-4JCNAKOE.cjs');
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var chunkIJXEMXLH_cjs = require('./chunk-IJXEMXLH.cjs');
|
|
15
|
+
var chunkUMU2MF3G_cjs = require('./chunk-UMU2MF3G.cjs');
|
|
16
16
|
require('./chunk-XZO6ZJQP.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkOOZPDTJM_cjs = require('./chunk-OOZPDTJM.cjs');
|
|
18
18
|
var chunkVFXZVCGG_cjs = require('./chunk-VFXZVCGG.cjs');
|
|
19
19
|
var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
|
|
20
20
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
@@ -27,50 +27,50 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
|
|
|
27
27
|
async function createPowerlines(options = {}) {
|
|
28
28
|
options.root ??= process.cwd();
|
|
29
29
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
|
|
30
|
-
return
|
|
30
|
+
return chunkOOZPDTJM_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunkOOZPDTJM_cjs.PowerlinesAPI;
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "LogLevel", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkIJXEMXLH_cjs.LogLevel; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "__VFS_PATCH__", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkUMU2MF3G_cjs.__VFS_PATCH__; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "__VFS_REVERT__", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkUMU2MF3G_cjs.__VFS_REVERT__; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FileId", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkOOZPDTJM_cjs.FileId; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FileMetadata", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkOOZPDTJM_cjs.FileMetadata; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkOOZPDTJM_cjs.FileMetadata_KeyValuePair; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileStorage", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkOOZPDTJM_cjs.FileStorage; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileSystem", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkOOZPDTJM_cjs.FileSystem; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkOOZPDTJM_cjs.PowerlinesAPI; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkOOZPDTJM_cjs._capnpFileId; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "PLUGIN_NON_HOOK_FIELDS", {
|
|
76
76
|
enumerable: true,
|