powerlines 0.36.21 → 0.36.23
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-BpNyqnfS.d.ts → api-DpWSpwpF.d.ts} +1 -1
- package/dist/{api-DhwCWSTm.d.cts → api-N_vxh61N.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +3 -3
- package/dist/chunk-4YZZZ76B.cjs +12 -0
- package/dist/{chunk-HJQ77IG5.js → chunk-A42QONGV.js} +3 -3
- package/dist/{chunk-Q3EYAAGO.cjs → chunk-A7AUGAHH.cjs} +7 -2
- package/dist/{chunk-FGJPJGGC.js → chunk-DIXXAXEC.js} +3 -3
- package/dist/chunk-DIYWNVH6.cjs +12 -0
- package/dist/{chunk-GIOACISS.js → chunk-EXY3RCJH.js} +2 -2
- package/dist/{chunk-UZQX7NJH.js → chunk-G6FXWWCK.js} +3 -3
- package/dist/chunk-KXRVVFNK.js +11 -0
- package/dist/{chunk-CXAAEG5H.js → chunk-LSRYGX7V.js} +3 -3
- package/dist/{chunk-HICL77ZC.js → chunk-MP6EXEZ3.js} +121 -6
- package/dist/{chunk-C4AK4CRR.cjs → chunk-MYNL7MRH.cjs} +4 -4
- package/dist/{chunk-6JCE4KHT.js → chunk-PZ5LJOMU.js} +3 -3
- package/dist/{chunk-NAC3BK64.cjs → chunk-Q2IEO3ZW.cjs} +121 -6
- package/dist/{chunk-FZIDEHX4.cjs → chunk-SAVBNMWQ.cjs} +4 -4
- package/dist/{chunk-IJXEMXLH.cjs → chunk-TP4FRF4H.cjs} +2 -2
- package/dist/{chunk-B6F32B3B.cjs → chunk-ZBDGZ7QG.cjs} +5 -5
- package/dist/{context-AF63GCTq.d.cts → context-bJmSqotS.d.cts} +46 -4
- package/dist/{context-BTkUT4s7.d.ts → context-vT1NL0QB.d.ts} +46 -4
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +3 -3
- 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 +19 -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-D0iAknc0.d.ts → api-BpxWBxyN.d.ts} +1 -1
- package/dist/lib/{api-B8z7HzBo.d.cts → api-DuKKNbVT.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-Y5KONJVR.cjs → chunk-4LHV7MWI.cjs} +9 -2
- package/dist/lib/chunk-4LHV7MWI.cjs.map +1 -0
- package/dist/lib/{chunk-QBE4SZN6.cjs → chunk-FO5AJ2PR.cjs} +11 -4
- package/dist/lib/chunk-FO5AJ2PR.cjs.map +1 -0
- package/dist/lib/{chunk-VF3S2D2V.cjs → chunk-HE2IFXW4.cjs} +91 -8
- package/dist/lib/chunk-HE2IFXW4.cjs.map +1 -0
- package/dist/lib/{chunk-5QMQ5G73.js → chunk-I3GWGYDB.js} +10 -3
- package/dist/lib/chunk-I3GWGYDB.js.map +1 -0
- package/dist/lib/{chunk-YITP2ODI.cjs → chunk-I4ZNMVU2.cjs} +22 -11
- package/dist/lib/chunk-I4ZNMVU2.cjs.map +1 -0
- package/dist/lib/{chunk-BZFQYIWK.cjs → chunk-IJ5YZSJO.cjs} +14 -14
- package/dist/lib/{chunk-BZFQYIWK.cjs.map → chunk-IJ5YZSJO.cjs.map} +1 -1
- package/dist/lib/{chunk-YJEZASNU.js → chunk-NE26SC53.js} +10 -3
- package/dist/lib/chunk-NE26SC53.js.map +1 -0
- package/dist/lib/{chunk-CTMPQSK7.js → chunk-QHKZQZJG.js} +9 -2
- package/dist/lib/chunk-QHKZQZJG.js.map +1 -0
- package/dist/lib/{chunk-AQNUFK3L.cjs → chunk-RI3JLIUH.cjs} +11 -4
- package/dist/lib/chunk-RI3JLIUH.cjs.map +1 -0
- package/dist/lib/{chunk-WWWGFMAA.js → chunk-RZ4LXAZQ.js} +4 -4
- package/dist/lib/{chunk-WWWGFMAA.js.map → chunk-RZ4LXAZQ.js.map} +1 -1
- package/dist/lib/{chunk-67XMKJXQ.js → chunk-TGIY7Q6N.js} +4 -4
- package/dist/lib/{chunk-67XMKJXQ.js.map → chunk-TGIY7Q6N.js.map} +1 -1
- package/dist/lib/{chunk-QOVSEBZF.js → chunk-UNJET22R.js} +89 -6
- package/dist/lib/chunk-UNJET22R.js.map +1 -0
- package/dist/lib/{chunk-BT6ROHLM.js → chunk-UOKSPMLS.js} +17 -6
- package/dist/lib/chunk-UOKSPMLS.js.map +1 -0
- package/dist/lib/{chunk-WQNUM4K3.js → chunk-WF65LEKW.js} +3 -3
- package/dist/lib/{chunk-WQNUM4K3.js.map → chunk-WF65LEKW.js.map} +1 -1
- package/dist/lib/{chunk-HZ2RLNLV.cjs → chunk-Z64F7URT.cjs} +6 -6
- package/dist/lib/{chunk-HZ2RLNLV.cjs.map → chunk-Z64F7URT.cjs.map} +1 -1
- package/dist/lib/{chunk-3P36ZLXD.cjs → chunk-ZBC4D6BA.cjs} +16 -16
- package/dist/lib/{chunk-3P36ZLXD.cjs.map → chunk-ZBC4D6BA.cjs.map} +1 -1
- package/dist/lib/{config-Ds6GSd34.d.ts → config-B-3g4vlp.d.ts} +45 -4
- package/dist/lib/{config-BbtAp2KJ.d.cts → config-BaPuSNy_.d.cts} +45 -4
- 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 +8 -8
- 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 +7 -7
- package/dist/lib/contexts/context.cjs +6 -6
- package/dist/lib/contexts/context.d.cts +38 -5
- package/dist/lib/contexts/context.d.ts +38 -5
- package/dist/lib/contexts/context.js +5 -5
- package/dist/lib/contexts/environment-context.cjs +7 -7
- 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 +6 -6
- package/dist/lib/contexts/index.cjs +10 -10
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +7 -7
- 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 +5 -5
- package/dist/lib/fs/index.d.cts +2 -2
- package/dist/lib/fs/index.d.ts +2 -2
- package/dist/lib/fs/index.js +4 -4
- package/dist/lib/fs/storage/base.cjs +2 -2
- package/dist/lib/fs/storage/base.d.cts +8 -1
- package/dist/lib/fs/storage/base.d.ts +8 -1
- package/dist/lib/fs/storage/base.js +1 -1
- package/dist/lib/fs/storage/file-system.cjs +3 -3
- package/dist/lib/fs/storage/file-system.d.cts +8 -1
- package/dist/lib/fs/storage/file-system.d.ts +8 -1
- package/dist/lib/fs/storage/file-system.js +2 -2
- package/dist/lib/fs/storage/index.cjs +6 -6
- 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/index.js +3 -3
- package/dist/lib/fs/storage/virtual.cjs +3 -3
- package/dist/lib/fs/storage/virtual.d.cts +8 -1
- package/dist/lib/fs/storage/virtual.d.ts +8 -1
- package/dist/lib/fs/storage/virtual.js +2 -2
- package/dist/lib/fs/vfs.cjs +5 -5
- package/dist/lib/fs/vfs.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +4 -4
- package/dist/lib/{fs-BmOAZ4An.d.cts → fs-DkLcPGg-.d.cts} +15 -1
- package/dist/lib/{fs-BmOAZ4An.d.ts → fs-DkLcPGg-.d.ts} +15 -1
- package/dist/lib/index.cjs +13 -13
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +8 -8
- package/dist/lib/{internal-Dxf3D0k2.d.ts → internal-8-kuDx9k.d.ts} +2 -2
- package/dist/lib/{internal-DkOa3QW7.d.cts → internal-Dvez9bHr.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 +9 -9
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +8 -8
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +9 -9
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +8 -8
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/{unplugin-ByfVrTII.d.ts → unplugin-CAhjFZ9E.d.ts} +2 -2
- package/dist/lib/{unplugin-Z1cKpW1R.d.cts → unplugin-Ckt_H0y0.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 +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{context-BoulfuGO.d.cts → context-DV64LM07.d.cts} +57 -2
- package/dist/plugin-utils/{context-BoulfuGO.d.ts → context-DV64LM07.d.ts} +57 -2
- 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.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +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 +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +2 -2
- package/dist/types/api.d.ts +2 -2
- 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.cjs +2 -2
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/context.js +1 -1
- package/dist/types/fs.cjs +7 -3
- package/dist/types/fs.d.cts +16 -1
- package/dist/types/fs.d.ts +16 -1
- package/dist/types/fs.js +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.cjs +9 -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 +2 -2
- package/dist/types/internal.d.ts +2 -2
- 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 +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- 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 +5 -5
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- 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 +15 -15
- package/dist/chunk-2AOMCPQX.cjs +0 -12
- package/dist/chunk-FFVBHH5L.js +0 -7
- package/dist/chunk-LCNL5IWM.cjs +0 -12
- package/dist/lib/chunk-5QMQ5G73.js.map +0 -1
- package/dist/lib/chunk-AQNUFK3L.cjs.map +0 -1
- package/dist/lib/chunk-BT6ROHLM.js.map +0 -1
- package/dist/lib/chunk-CTMPQSK7.js.map +0 -1
- package/dist/lib/chunk-QBE4SZN6.cjs.map +0 -1
- package/dist/lib/chunk-QOVSEBZF.js.map +0 -1
- package/dist/lib/chunk-VF3S2D2V.cjs.map +0 -1
- package/dist/lib/chunk-Y5KONJVR.cjs.map +0 -1
- package/dist/lib/chunk-YITP2ODI.cjs.map +0 -1
- package/dist/lib/chunk-YJEZASNU.js.map +0 -1
|
@@ -1263,6 +1263,13 @@ var BaseStorageAdapter = class {
|
|
|
1263
1263
|
*/
|
|
1264
1264
|
options;
|
|
1265
1265
|
/**
|
|
1266
|
+
* The storage preset for the adapter.
|
|
1267
|
+
*
|
|
1268
|
+
* @remarks
|
|
1269
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
1270
|
+
*/
|
|
1271
|
+
preset = null;
|
|
1272
|
+
/**
|
|
1266
1273
|
* Constructor for the BaseStorageAdapter.
|
|
1267
1274
|
*
|
|
1268
1275
|
* @param options - Configuration options for the storage adapter.
|
|
@@ -1453,6 +1460,13 @@ var FileSystemStorageAdapter = class extends BaseStorageAdapter {
|
|
|
1453
1460
|
*/
|
|
1454
1461
|
name = "file-system";
|
|
1455
1462
|
/**
|
|
1463
|
+
* The storage preset for the adapter.
|
|
1464
|
+
*
|
|
1465
|
+
* @remarks
|
|
1466
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
1467
|
+
*/
|
|
1468
|
+
preset = "fs";
|
|
1469
|
+
/**
|
|
1456
1470
|
* Constructor for the FileSystemStorageAdapter.
|
|
1457
1471
|
*
|
|
1458
1472
|
* @param options - Configuration options for the storage adapter.
|
|
@@ -1612,6 +1626,13 @@ var VirtualStorageAdapter = class extends BaseStorageAdapter {
|
|
|
1612
1626
|
*/
|
|
1613
1627
|
name = "virtual";
|
|
1614
1628
|
/**
|
|
1629
|
+
* The storage preset for the adapter.
|
|
1630
|
+
*
|
|
1631
|
+
* @remarks
|
|
1632
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
1633
|
+
*/
|
|
1634
|
+
preset = "virtual";
|
|
1635
|
+
/**
|
|
1615
1636
|
* In-memory data storage.
|
|
1616
1637
|
*/
|
|
1617
1638
|
data = /* @__PURE__ */ new Map();
|
|
@@ -1760,10 +1781,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1760
1781
|
/**
|
|
1761
1782
|
* Gets the storage adapter and relative key for a given key.
|
|
1762
1783
|
*
|
|
1784
|
+
* @remarks
|
|
1785
|
+
* The `key` can be either a path or a storage adapter name.
|
|
1786
|
+
*
|
|
1763
1787
|
* @param key - The key to get the storage adapter for.
|
|
1764
1788
|
* @returns The storage adapter and relative key for the given key.
|
|
1765
1789
|
*/
|
|
1766
1790
|
#getStorage(key) {
|
|
1791
|
+
const found = Object.entries(this.#storage).find(([, adapter]) => adapter.name === key || adapter.preset && adapter.preset.toLowerCase() === key?.toLowerCase());
|
|
1792
|
+
if (found) {
|
|
1793
|
+
return {
|
|
1794
|
+
base: found[0],
|
|
1795
|
+
relativeKey: "",
|
|
1796
|
+
adapter: found[1]
|
|
1797
|
+
};
|
|
1798
|
+
}
|
|
1767
1799
|
const path = this.resolveSync(this.#normalizePath(key)) || key;
|
|
1768
1800
|
for (const base of Object.keys(this.#storage).filter(Boolean).sort().reverse()) {
|
|
1769
1801
|
if (isParentPath.isParentPath(path, base)) {
|
|
@@ -2311,7 +2343,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2311
2343
|
});
|
|
2312
2344
|
}
|
|
2313
2345
|
}
|
|
2314
|
-
const { relativeKey, adapter } = this.#getStorage(path);
|
|
2346
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2315
2347
|
this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes.prettyBytes(new buffer$1.Blob(toArray.toArray(code)).size)})`);
|
|
2316
2348
|
const id = options?.meta?.id || this.#normalizeId(relativeKey);
|
|
2317
2349
|
this.#metadata[id] = {
|
|
@@ -2331,7 +2363,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2331
2363
|
* @param options - Optional parameters for writing the file.
|
|
2332
2364
|
*/
|
|
2333
2365
|
writeSync(path, data = "", options = {}) {
|
|
2334
|
-
const { relativeKey, adapter } = this.#getStorage(path);
|
|
2366
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2335
2367
|
this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes.prettyBytes(new buffer$1.Blob(toArray.toArray(data)).size)})`);
|
|
2336
2368
|
const id = options?.meta?.id || this.#normalizeId(relativeKey);
|
|
2337
2369
|
this.#metadata[id] = {
|
|
@@ -3200,6 +3232,44 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3200
3232
|
}));
|
|
3201
3233
|
}
|
|
3202
3234
|
/**
|
|
3235
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
3236
|
+
*
|
|
3237
|
+
* @param code - The source code of the file
|
|
3238
|
+
* @param path - The path to write the file to
|
|
3239
|
+
* @param options - Additional options for writing the file
|
|
3240
|
+
*/
|
|
3241
|
+
async emit(code, path, options = {}) {
|
|
3242
|
+
if (isFunction.isFunction(this.emitFile) && options.emitWithBundler) {
|
|
3243
|
+
return this.emitFile({
|
|
3244
|
+
needsCodeReference: options.needsCodeReference,
|
|
3245
|
+
originalFileName: options.originalFileName,
|
|
3246
|
+
fileName: path,
|
|
3247
|
+
source: code,
|
|
3248
|
+
type: "asset"
|
|
3249
|
+
});
|
|
3250
|
+
}
|
|
3251
|
+
return this.fs.write(path, code, options);
|
|
3252
|
+
}
|
|
3253
|
+
/**
|
|
3254
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
3255
|
+
*
|
|
3256
|
+
* @param code - The source code of the file
|
|
3257
|
+
* @param path - The path to write the file to
|
|
3258
|
+
* @param options - Additional options for writing the file
|
|
3259
|
+
*/
|
|
3260
|
+
emitSync(code, path, options = {}) {
|
|
3261
|
+
if (isFunction.isFunction(this.emitFile) && options.emitWithBundler) {
|
|
3262
|
+
return this.emitFile({
|
|
3263
|
+
needsCodeReference: options.needsCodeReference,
|
|
3264
|
+
originalFileName: options.originalFileName,
|
|
3265
|
+
fileName: path,
|
|
3266
|
+
source: code,
|
|
3267
|
+
type: "asset"
|
|
3268
|
+
});
|
|
3269
|
+
}
|
|
3270
|
+
return this.fs.writeSync(path, code, options);
|
|
3271
|
+
}
|
|
3272
|
+
/**
|
|
3203
3273
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
3204
3274
|
*
|
|
3205
3275
|
* @param code - The source code of the entry file
|
|
@@ -3215,7 +3285,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3215
3285
|
input: options.input,
|
|
3216
3286
|
output: options.output
|
|
3217
3287
|
});
|
|
3218
|
-
return this.
|
|
3288
|
+
return this.emit(entryPath, code, defu7__default.default(omit.omit(options, [
|
|
3219
3289
|
"name"
|
|
3220
3290
|
]), {
|
|
3221
3291
|
meta: {
|
|
@@ -3230,6 +3300,36 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3230
3300
|
}));
|
|
3231
3301
|
}
|
|
3232
3302
|
/**
|
|
3303
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
3304
|
+
*
|
|
3305
|
+
* @param code - The source code of the entry file
|
|
3306
|
+
* @param path - A path to write the entry file to
|
|
3307
|
+
* @param options - Optional write file options
|
|
3308
|
+
*/
|
|
3309
|
+
emitEntrySync(code, path, options = {}) {
|
|
3310
|
+
const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
|
|
3311
|
+
this.entry ??= [];
|
|
3312
|
+
this.entry.push({
|
|
3313
|
+
name: options?.name,
|
|
3314
|
+
file: entryPath,
|
|
3315
|
+
input: options?.input,
|
|
3316
|
+
output: options?.output
|
|
3317
|
+
});
|
|
3318
|
+
return this.emitSync(entryPath, code, defu7__default.default(omit.omit(options, [
|
|
3319
|
+
"name"
|
|
3320
|
+
]), {
|
|
3321
|
+
meta: {
|
|
3322
|
+
type: "entry",
|
|
3323
|
+
properties: {
|
|
3324
|
+
name: options?.name,
|
|
3325
|
+
output: options?.output,
|
|
3326
|
+
"input.file": options?.input?.file,
|
|
3327
|
+
"input.name": options?.input?.name
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
}));
|
|
3331
|
+
}
|
|
3332
|
+
/**
|
|
3233
3333
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3234
3334
|
*
|
|
3235
3335
|
* @param code - The source code of the builtin file
|
|
@@ -3238,7 +3338,22 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3238
3338
|
* @param options - Optional write file options
|
|
3239
3339
|
*/
|
|
3240
3340
|
async emitBuiltin(code, id, path, options = {}) {
|
|
3241
|
-
return this.
|
|
3341
|
+
return this.emit(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
|
|
3342
|
+
meta: {
|
|
3343
|
+
type: "builtin"
|
|
3344
|
+
}
|
|
3345
|
+
}));
|
|
3346
|
+
}
|
|
3347
|
+
/**
|
|
3348
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3349
|
+
*
|
|
3350
|
+
* @param code - The source code of the builtin file
|
|
3351
|
+
* @param id - The unique identifier of the builtin file
|
|
3352
|
+
* @param path - An optional path to write the builtin file to
|
|
3353
|
+
* @param options - Optional write file options
|
|
3354
|
+
*/
|
|
3355
|
+
emitBuiltinSync(code, id, path, options = {}) {
|
|
3356
|
+
return this.emitSync(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
|
|
3242
3357
|
meta: {
|
|
3243
3358
|
type: "builtin"
|
|
3244
3359
|
}
|
|
@@ -4737,5 +4852,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
|
|
|
4737
4852
|
exports._capnpFileId = _capnpFileId;
|
|
4738
4853
|
exports.createLog = createLog;
|
|
4739
4854
|
exports.extendLog = extendLog;
|
|
4740
|
-
//# sourceMappingURL=chunk-
|
|
4741
|
-
//# sourceMappingURL=chunk-
|
|
4855
|
+
//# sourceMappingURL=chunk-Q2IEO3ZW.cjs.map
|
|
4856
|
+
//# sourceMappingURL=chunk-Q2IEO3ZW.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 chunkZBDGZ7QG_cjs = require('./chunk-ZBDGZ7QG.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(chunkZBDGZ7QG_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-SAVBNMWQ.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-SAVBNMWQ.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQ2IEO3ZW_cjs = require('./chunk-Q2IEO3ZW.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
|
|
|
27
27
|
// src/lib/unplugin/factory.ts
|
|
28
28
|
function createUnpluginFactory(variant, decorate) {
|
|
29
29
|
return (config, meta) => {
|
|
30
|
-
const log =
|
|
30
|
+
const log = chunkQ2IEO3ZW_cjs.createLog("unplugin", config);
|
|
31
31
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
32
32
|
try {
|
|
33
33
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
let api;
|
|
39
39
|
async function buildStart() {
|
|
40
40
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunkQ2IEO3ZW_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
|
|
42
42
|
unplugin.setParseImpl(api.context.parse);
|
|
43
43
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
44
44
|
await api.prepare({
|
|
@@ -132,5 +132,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
132
132
|
|
|
133
133
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
134
134
|
exports.getString = getString;
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
135
|
+
//# sourceMappingURL=chunk-ZBDGZ7QG.cjs.map
|
|
136
|
+
//# sourceMappingURL=chunk-ZBDGZ7QG.cjs.map
|
|
@@ -10,7 +10,7 @@ import { Range } from 'semver';
|
|
|
10
10
|
import { Project } from 'ts-morph';
|
|
11
11
|
import { RequestInfo, Response } from 'undici';
|
|
12
12
|
import { Unimport } from 'unimport';
|
|
13
|
-
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage,
|
|
13
|
+
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
14
14
|
import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
|
|
15
15
|
import { Format } from '@storm-software/build-tools/types';
|
|
16
16
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -1100,10 +1100,18 @@ interface ParseOptions extends ParserOptions {
|
|
|
1100
1100
|
*/
|
|
1101
1101
|
allowReturnOutsideFunction?: boolean;
|
|
1102
1102
|
}
|
|
1103
|
+
interface EmitOptions extends WriteOptions {
|
|
1104
|
+
/**
|
|
1105
|
+
* If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
|
|
1106
|
+
*/
|
|
1107
|
+
emitWithBundler?: boolean;
|
|
1108
|
+
needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
|
|
1109
|
+
originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
|
|
1110
|
+
}
|
|
1103
1111
|
/**
|
|
1104
1112
|
* Options for emitting entry virtual files
|
|
1105
1113
|
*/
|
|
1106
|
-
type EmitEntryOptions =
|
|
1114
|
+
type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
1107
1115
|
/**
|
|
1108
1116
|
* The unresolved Powerlines context.
|
|
1109
1117
|
*
|
|
@@ -1314,6 +1322,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1314
1322
|
* The Powerlines builtin virtual files
|
|
1315
1323
|
*/
|
|
1316
1324
|
getBuiltins: () => Promise<VirtualFile[]>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
1327
|
+
*
|
|
1328
|
+
* @param code - The source code of the file
|
|
1329
|
+
* @param path - The path to write the file to
|
|
1330
|
+
* @param options - Additional options for writing the file
|
|
1331
|
+
*/
|
|
1332
|
+
emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
1335
|
+
*
|
|
1336
|
+
* @param code - The source code of the file
|
|
1337
|
+
* @param path - The path to write the file to
|
|
1338
|
+
* @param options - Additional options for writing the file
|
|
1339
|
+
*/
|
|
1340
|
+
emitSync: (code: string, path: string, options?: EmitOptions) => void;
|
|
1317
1341
|
/**
|
|
1318
1342
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
1319
1343
|
*
|
|
@@ -1322,7 +1346,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1322
1346
|
* @param path - An optional path to write the builtin file to
|
|
1323
1347
|
* @param options - Additional options for writing the builtin file
|
|
1324
1348
|
*/
|
|
1325
|
-
emitBuiltin: (code: string, id: string, path?: string, options?:
|
|
1349
|
+
emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
|
|
1350
|
+
/**
|
|
1351
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
1352
|
+
*
|
|
1353
|
+
* @param code - The source code of the builtin file
|
|
1354
|
+
* @param id - The unique identifier of the builtin file
|
|
1355
|
+
* @param path - An optional path to write the builtin file to
|
|
1356
|
+
* @param options - Additional options for writing the builtin file
|
|
1357
|
+
*/
|
|
1358
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
|
|
1326
1359
|
/**
|
|
1327
1360
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1328
1361
|
*
|
|
@@ -1331,6 +1364,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1331
1364
|
* @param options - Additional options for writing the entry file
|
|
1332
1365
|
*/
|
|
1333
1366
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1369
|
+
*
|
|
1370
|
+
* @param code - The source code of the entry file
|
|
1371
|
+
* @param path - An optional path to write the entry file to
|
|
1372
|
+
* @param options - Additional options for writing the entry file
|
|
1373
|
+
*/
|
|
1374
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
1334
1375
|
/**
|
|
1335
1376
|
* A function to update the context fields using a new user configuration options
|
|
1336
1377
|
*/
|
|
@@ -1497,6 +1538,7 @@ declare type __ΩSelectHooksOptions = any[];
|
|
|
1497
1538
|
declare type __ΩInitContextOptions = any[];
|
|
1498
1539
|
declare type __ΩFetchOptions = any[];
|
|
1499
1540
|
declare type __ΩParseOptions = any[];
|
|
1541
|
+
declare type __ΩEmitOptions = any[];
|
|
1500
1542
|
declare type __ΩEmitEntryOptions = any[];
|
|
1501
1543
|
declare type __ΩUnresolvedContext = any[];
|
|
1502
1544
|
declare type __ΩContext = any[];
|
|
@@ -1507,4 +1549,4 @@ declare type __ΩEnvironmentContext = any[];
|
|
|
1507
1549
|
declare type __ΩPluginContext = any[];
|
|
1508
1550
|
declare type __ΩBuildPluginContext = any[];
|
|
1509
1551
|
|
|
1510
|
-
export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type
|
|
1552
|
+
export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type PluginHookObject as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitOptions as b4, type EmitEntryOptions as b5, type UnresolvedContext as b6, type Context as b7, type APIContext as b8, type EnvironmentContextPlugin as b9, type BaseHookKeys as bA, type ExternalHooks as bB, type ExternalHookKeys as bC, type Hooks as bD, type HookKeys as bE, type BaseHooksListItem as bF, type BaseHooksList as bG, type ExternalHooksListItem as bH, type HooksList as bI, type InferHookHandler as bJ, type InferHookReturnType as bK, type InferHookParameters as bL, type InferHookThisType as bM, type __ΩBaseHooks as bN, type __ΩBaseHookKeys as bO, type __ΩExternalHooks as bP, type __ΩExternalHookKeys as bQ, type __ΩHooks as bR, type __ΩHookKeys as bS, type __ΩBaseHooksListItem as bT, type __ΩBaseHooksList as bU, type __ΩExternalHooksListItem as bV, type __ΩHooksList as bW, type __ΩInferHookHandler as bX, type __ΩInferHookReturnType as bY, type __ΩInferHookParameters as bZ, type __ΩInferHookThisType as b_, type SelectHooksResult as ba, type EnvironmentContext as bb, type PluginContext as bc, type BuildPluginContext as bd, type __ΩLogLevel as be, type __ΩWorkerProcess as bf, type __ΩMetaInfo as bg, type __ΩResolver as bh, type __ΩTransformResult as bi, type __ΩSourceFile as bj, type __ΩUnimportContext as bk, type __ΩSelectHooksOptions as bl, type __ΩInitContextOptions as bm, type __ΩFetchOptions as bn, type __ΩParseOptions as bo, type __ΩEmitOptions as bp, type __ΩEmitEntryOptions as bq, type __ΩUnresolvedContext as br, type __ΩContext as bs, type __ΩAPIContext as bt, type __ΩEnvironmentContextPlugin as bu, type __ΩSelectHooksResult as bv, type __ΩEnvironmentContext as bw, type __ΩPluginContext as bx, type __ΩBuildPluginContext as by, type BaseHooks as bz, type BabelTransformPluginOptions as c, type __ΩUnbuildResolvedConfig as c$, type PluginHook as c0, type TypesResult as c1, type ConfigResult as c2, type BasePluginHookFunctions as c3, type BuildPlugin as c4, type ExternalPluginHookFunctionsVariant as c5, type ExternalPluginHookFunctions as c6, type PluginHookFunctions as c7, type PluginHooks as c8, type PluginBuildPlugins as c9, type OutputResolvedConfig as cA, type ResolvedConfig as cB, type ViteResolvedConfig as cC, type WebpackResolvedConfig as cD, type RspackResolvedConfig as cE, type ESBuildResolvedConfig as cF, type RollupResolvedConfig as cG, type RolldownResolvedConfig as cH, type TsupResolvedConfig as cI, type TsdownResolvedConfig as cJ, type UnbuildResolvedConfig as cK, type FarmResolvedConfig as cL, type InferResolvedConfig as cM, type __ΩResolvedEntryTypeDefinition as cN, type __ΩBabelResolvedConfig as cO, type __ΩEnvironmentResolvedConfig as cP, type __ΩResolvedAssetGlob as cQ, type __ΩOutputResolvedConfig as cR, type __ΩResolvedConfig as cS, type __ΩViteResolvedConfig as cT, type __ΩWebpackResolvedConfig as cU, type __ΩRspackResolvedConfig as cV, type __ΩESBuildResolvedConfig as cW, type __ΩRollupResolvedConfig as cX, type __ΩRolldownResolvedConfig as cY, type __ΩTsupResolvedConfig as cZ, type __ΩTsdownResolvedConfig as c_, type Plugin as ca, PLUGIN_NON_HOOK_FIELDS as cb, type PluginNonHookFields as cc, KNOWN_HOOKS as cd, type KnownHooks as ce, KNOWN_PLUGIN_FIELDS as cf, type KnownPluginFields as cg, type __ΩPluginHookObject as ch, type __ΩPluginHook as ci, type __ΩTypesResult as cj, type __ΩConfigResult as ck, type __ΩBasePluginHookFunctions as cl, type __ΩBuildPlugin as cm, type __ΩExternalPluginHookFunctionsVariant as cn, type __ΩExternalPluginHookFunctions as co, type __ΩPluginHookFunctions as cp, type __ΩPluginHooks as cq, type __ΩPluginBuildPlugins as cr, type __ΩPlugin as cs, type __ΩPluginNonHookFields as ct, type __ΩKnownHooks as cu, type __ΩKnownPluginFields as cv, type ResolvedEntryTypeDefinition as cw, type BabelResolvedConfig as cx, type EnvironmentResolvedConfig as cy, type ResolvedAssetGlob as cz, type BabelTransformInput as d, type __ΩFarmResolvedConfig as d0, type __ΩInferResolvedConfig as d1, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
|
|
@@ -10,7 +10,7 @@ import { Range } from 'semver';
|
|
|
10
10
|
import { Project } from 'ts-morph';
|
|
11
11
|
import { RequestInfo, Response } from 'undici';
|
|
12
12
|
import { Unimport } from 'unimport';
|
|
13
|
-
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage,
|
|
13
|
+
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
14
14
|
import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
|
|
15
15
|
import { Format } from '@storm-software/build-tools/types';
|
|
16
16
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -1100,10 +1100,18 @@ interface ParseOptions extends ParserOptions {
|
|
|
1100
1100
|
*/
|
|
1101
1101
|
allowReturnOutsideFunction?: boolean;
|
|
1102
1102
|
}
|
|
1103
|
+
interface EmitOptions extends WriteOptions {
|
|
1104
|
+
/**
|
|
1105
|
+
* If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
|
|
1106
|
+
*/
|
|
1107
|
+
emitWithBundler?: boolean;
|
|
1108
|
+
needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
|
|
1109
|
+
originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
|
|
1110
|
+
}
|
|
1103
1111
|
/**
|
|
1104
1112
|
* Options for emitting entry virtual files
|
|
1105
1113
|
*/
|
|
1106
|
-
type EmitEntryOptions =
|
|
1114
|
+
type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
1107
1115
|
/**
|
|
1108
1116
|
* The unresolved Powerlines context.
|
|
1109
1117
|
*
|
|
@@ -1314,6 +1322,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1314
1322
|
* The Powerlines builtin virtual files
|
|
1315
1323
|
*/
|
|
1316
1324
|
getBuiltins: () => Promise<VirtualFile[]>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
1327
|
+
*
|
|
1328
|
+
* @param code - The source code of the file
|
|
1329
|
+
* @param path - The path to write the file to
|
|
1330
|
+
* @param options - Additional options for writing the file
|
|
1331
|
+
*/
|
|
1332
|
+
emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
1335
|
+
*
|
|
1336
|
+
* @param code - The source code of the file
|
|
1337
|
+
* @param path - The path to write the file to
|
|
1338
|
+
* @param options - Additional options for writing the file
|
|
1339
|
+
*/
|
|
1340
|
+
emitSync: (code: string, path: string, options?: EmitOptions) => void;
|
|
1317
1341
|
/**
|
|
1318
1342
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
1319
1343
|
*
|
|
@@ -1322,7 +1346,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1322
1346
|
* @param path - An optional path to write the builtin file to
|
|
1323
1347
|
* @param options - Additional options for writing the builtin file
|
|
1324
1348
|
*/
|
|
1325
|
-
emitBuiltin: (code: string, id: string, path?: string, options?:
|
|
1349
|
+
emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
|
|
1350
|
+
/**
|
|
1351
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
1352
|
+
*
|
|
1353
|
+
* @param code - The source code of the builtin file
|
|
1354
|
+
* @param id - The unique identifier of the builtin file
|
|
1355
|
+
* @param path - An optional path to write the builtin file to
|
|
1356
|
+
* @param options - Additional options for writing the builtin file
|
|
1357
|
+
*/
|
|
1358
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
|
|
1326
1359
|
/**
|
|
1327
1360
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1328
1361
|
*
|
|
@@ -1331,6 +1364,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1331
1364
|
* @param options - Additional options for writing the entry file
|
|
1332
1365
|
*/
|
|
1333
1366
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1369
|
+
*
|
|
1370
|
+
* @param code - The source code of the entry file
|
|
1371
|
+
* @param path - An optional path to write the entry file to
|
|
1372
|
+
* @param options - Additional options for writing the entry file
|
|
1373
|
+
*/
|
|
1374
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
1334
1375
|
/**
|
|
1335
1376
|
* A function to update the context fields using a new user configuration options
|
|
1336
1377
|
*/
|
|
@@ -1497,6 +1538,7 @@ declare type __ΩSelectHooksOptions = any[];
|
|
|
1497
1538
|
declare type __ΩInitContextOptions = any[];
|
|
1498
1539
|
declare type __ΩFetchOptions = any[];
|
|
1499
1540
|
declare type __ΩParseOptions = any[];
|
|
1541
|
+
declare type __ΩEmitOptions = any[];
|
|
1500
1542
|
declare type __ΩEmitEntryOptions = any[];
|
|
1501
1543
|
declare type __ΩUnresolvedContext = any[];
|
|
1502
1544
|
declare type __ΩContext = any[];
|
|
@@ -1507,4 +1549,4 @@ declare type __ΩEnvironmentContext = any[];
|
|
|
1507
1549
|
declare type __ΩPluginContext = any[];
|
|
1508
1550
|
declare type __ΩBuildPluginContext = any[];
|
|
1509
1551
|
|
|
1510
|
-
export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type
|
|
1552
|
+
export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type PluginHookObject as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitOptions as b4, type EmitEntryOptions as b5, type UnresolvedContext as b6, type Context as b7, type APIContext as b8, type EnvironmentContextPlugin as b9, type BaseHookKeys as bA, type ExternalHooks as bB, type ExternalHookKeys as bC, type Hooks as bD, type HookKeys as bE, type BaseHooksListItem as bF, type BaseHooksList as bG, type ExternalHooksListItem as bH, type HooksList as bI, type InferHookHandler as bJ, type InferHookReturnType as bK, type InferHookParameters as bL, type InferHookThisType as bM, type __ΩBaseHooks as bN, type __ΩBaseHookKeys as bO, type __ΩExternalHooks as bP, type __ΩExternalHookKeys as bQ, type __ΩHooks as bR, type __ΩHookKeys as bS, type __ΩBaseHooksListItem as bT, type __ΩBaseHooksList as bU, type __ΩExternalHooksListItem as bV, type __ΩHooksList as bW, type __ΩInferHookHandler as bX, type __ΩInferHookReturnType as bY, type __ΩInferHookParameters as bZ, type __ΩInferHookThisType as b_, type SelectHooksResult as ba, type EnvironmentContext as bb, type PluginContext as bc, type BuildPluginContext as bd, type __ΩLogLevel as be, type __ΩWorkerProcess as bf, type __ΩMetaInfo as bg, type __ΩResolver as bh, type __ΩTransformResult as bi, type __ΩSourceFile as bj, type __ΩUnimportContext as bk, type __ΩSelectHooksOptions as bl, type __ΩInitContextOptions as bm, type __ΩFetchOptions as bn, type __ΩParseOptions as bo, type __ΩEmitOptions as bp, type __ΩEmitEntryOptions as bq, type __ΩUnresolvedContext as br, type __ΩContext as bs, type __ΩAPIContext as bt, type __ΩEnvironmentContextPlugin as bu, type __ΩSelectHooksResult as bv, type __ΩEnvironmentContext as bw, type __ΩPluginContext as bx, type __ΩBuildPluginContext as by, type BaseHooks as bz, type BabelTransformPluginOptions as c, type __ΩUnbuildResolvedConfig as c$, type PluginHook as c0, type TypesResult as c1, type ConfigResult as c2, type BasePluginHookFunctions as c3, type BuildPlugin as c4, type ExternalPluginHookFunctionsVariant as c5, type ExternalPluginHookFunctions as c6, type PluginHookFunctions as c7, type PluginHooks as c8, type PluginBuildPlugins as c9, type OutputResolvedConfig as cA, type ResolvedConfig as cB, type ViteResolvedConfig as cC, type WebpackResolvedConfig as cD, type RspackResolvedConfig as cE, type ESBuildResolvedConfig as cF, type RollupResolvedConfig as cG, type RolldownResolvedConfig as cH, type TsupResolvedConfig as cI, type TsdownResolvedConfig as cJ, type UnbuildResolvedConfig as cK, type FarmResolvedConfig as cL, type InferResolvedConfig as cM, type __ΩResolvedEntryTypeDefinition as cN, type __ΩBabelResolvedConfig as cO, type __ΩEnvironmentResolvedConfig as cP, type __ΩResolvedAssetGlob as cQ, type __ΩOutputResolvedConfig as cR, type __ΩResolvedConfig as cS, type __ΩViteResolvedConfig as cT, type __ΩWebpackResolvedConfig as cU, type __ΩRspackResolvedConfig as cV, type __ΩESBuildResolvedConfig as cW, type __ΩRollupResolvedConfig as cX, type __ΩRolldownResolvedConfig as cY, type __ΩTsupResolvedConfig as cZ, type __ΩTsdownResolvedConfig as c_, type Plugin as ca, PLUGIN_NON_HOOK_FIELDS as cb, type PluginNonHookFields as cc, KNOWN_HOOKS as cd, type KnownHooks as ce, KNOWN_PLUGIN_FIELDS as cf, type KnownPluginFields as cg, type __ΩPluginHookObject as ch, type __ΩPluginHook as ci, type __ΩTypesResult as cj, type __ΩConfigResult as ck, type __ΩBasePluginHookFunctions as cl, type __ΩBuildPlugin as cm, type __ΩExternalPluginHookFunctionsVariant as cn, type __ΩExternalPluginHookFunctions as co, type __ΩPluginHookFunctions as cp, type __ΩPluginHooks as cq, type __ΩPluginBuildPlugins as cr, type __ΩPlugin as cs, type __ΩPluginNonHookFields as ct, type __ΩKnownHooks as cu, type __ΩKnownPluginFields as cv, type ResolvedEntryTypeDefinition as cw, type BabelResolvedConfig as cx, type EnvironmentResolvedConfig as cy, type ResolvedAssetGlob as cz, type BabelTransformInput as d, type __ΩFarmResolvedConfig as d0, type __ΩInferResolvedConfig as d1, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
|
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 chunkSAVBNMWQ_cjs = require('./chunk-SAVBNMWQ.cjs');
|
|
6
6
|
require('./chunk-QHEKB7RW.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-ZBDGZ7QG.cjs');
|
|
8
|
+
require('./chunk-Q2IEO3ZW.cjs');
|
|
9
9
|
require('./chunk-ZCMOAOQN.cjs');
|
|
10
10
|
require('./chunk-XOMY3USD.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkSAVBNMWQ_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkSAVBNMWQ_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSAVBNMWQ_cjs.esbuild; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
|
29
29
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import { Z as ESBuildUserConfig } from './context-
|
|
2
|
+
import { Z as ESBuildUserConfig } from './context-bJmSqotS.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/esbuild.d.ts
CHANGED
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-G6FXWWCK.js';
|
|
2
2
|
import './chunk-YJWTNJQF.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-PZ5LJOMU.js';
|
|
4
|
+
import './chunk-MP6EXEZ3.js';
|
|
5
5
|
import './chunk-AJPO5EP7.js';
|
|
6
6
|
import './chunk-U2RJRKLT.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkZBDGZ7QG_cjs = require('./chunk-ZBDGZ7QG.cjs');
|
|
6
|
+
require('./chunk-Q2IEO3ZW.cjs');
|
|
7
7
|
require('./chunk-ZCMOAOQN.cjs');
|
|
8
8
|
require('./chunk-XOMY3USD.cjs');
|
|
9
9
|
require('./chunk-Z6ARQDHR.cjs');
|
|
10
10
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunkZBDGZ7QG_cjs.createUnpluginFactory("farm"));
|
|
14
14
|
var farm_default = farm;
|
|
15
15
|
|
|
16
16
|
exports.default = farm_default;
|
package/dist/farm.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { a2 as FarmUserConfig } from './context-
|
|
2
|
+
import { a2 as FarmUserConfig } from './context-bJmSqotS.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { a2 as FarmUserConfig } from './context-
|
|
2
|
+
import { a2 as FarmUserConfig } from './context-vT1NL0QB.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/farm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-PZ5LJOMU.js';
|
|
2
|
+
import './chunk-MP6EXEZ3.js';
|
|
3
3
|
import './chunk-AJPO5EP7.js';
|
|
4
4
|
import './chunk-U2RJRKLT.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|