powerlines 0.10.2 → 0.11.0
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/astro.cjs +8 -8
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +5 -5
- package/dist/{chunk-5XYGZ3DC.cjs → chunk-22K72CJ5.cjs} +2 -2
- package/dist/{chunk-GPPJ2CRE.js → chunk-4HGQJ4KR.js} +2 -2
- package/dist/chunk-7MTW3KR2.cjs +12 -0
- package/dist/{chunk-VIRKTIPK.js → chunk-7UIYU6SC.js} +3 -3
- package/dist/chunk-7WMWRX2S.cjs +12 -0
- package/dist/{chunk-HVT7PBFF.js → chunk-A3BBPLTY.js} +3 -3
- package/dist/{chunk-S746E63M.js → chunk-BHP6KBGK.js} +3 -3
- package/dist/{chunk-ZU4IRZSQ.js → chunk-BOIEJ5I6.js} +3 -3
- package/dist/chunk-DELRP3WY.js +31 -0
- package/dist/{chunk-ZBDP43LG.cjs → chunk-ELHJY5WG.cjs} +4 -4
- package/dist/{chunk-UHCRNFFC.cjs → chunk-FANQC345.cjs} +4 -4
- package/dist/chunk-GV3S7ZR3.cjs +34 -0
- package/dist/{chunk-WCPY7HPU.js → chunk-L3DAMAEC.js} +4 -4
- package/dist/chunk-LC6FLEJS.cjs +12 -0
- package/dist/{chunk-N7NE3VOU.js → chunk-MAEKW52U.js} +3 -3
- package/dist/chunk-MXJWCZDP.cjs +12 -0
- package/dist/{chunk-EGSEJQCE.js → chunk-NGKWITCO.js} +3 -3
- package/dist/{chunk-L2SAK2JC.cjs → chunk-OC7CCD5M.cjs} +4 -4
- package/dist/{chunk-OYIM2M74.js → chunk-P4BOYWXT.js} +195 -6
- package/dist/{chunk-UTVZVGM3.cjs → chunk-PJRHRDLS.cjs} +204 -15
- package/dist/{chunk-5Y4JYQ66.js → chunk-RBRFT2R6.js} +3 -3
- package/dist/{chunk-66GXB2UY.cjs → chunk-RU6BHTIP.cjs} +4 -4
- package/dist/{chunk-WPVIF35O.js → chunk-SIZKRND7.js} +2 -2
- package/dist/chunk-SNARILEC.cjs +24 -0
- package/dist/{chunk-6UDHGAAI.js → chunk-SY7N6FC3.js} +3 -3
- package/dist/{chunk-QHGPZK2H.cjs → chunk-V5D5NVV7.cjs} +4 -4
- package/dist/{chunk-SDEBJQDT.js → chunk-V7LXFIGK.js} +3 -3
- package/dist/{chunk-2RHPFVYT.cjs → chunk-WCTOTE3T.cjs} +8 -8
- package/dist/chunk-WD4363UW.cjs +12 -0
- package/dist/{chunk-7IWH37DY.cjs → chunk-YIWHO6SW.cjs} +2 -2
- package/dist/{chunk-3Y5CCIJR.js → chunk-ZP5QLZQ2.js} +3 -3
- package/dist/{chunk-KYGEWAEG.js → chunk-ZQ7U35QZ.js} +3 -3
- package/dist/define-config.d.cts +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +4 -4
- package/dist/extend-plugin.d.cts +1 -1
- package/dist/extend-plugin.d.ts +1 -1
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +3 -3
- package/dist/{hooks-gk8S8LFP.d.cts → hooks-H3i0YxVa.d.cts} +1 -1
- package/dist/{hooks-BGYnc61f.d.ts → hooks-QG1Q6zBM.d.ts} +1 -1
- package/dist/index.cjs +26 -26
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -17
- package/dist/internal/api.cjs +3 -3
- package/dist/internal/api.d.cts +2 -2
- package/dist/internal/api.d.ts +2 -2
- package/dist/internal/api.js +2 -2
- package/dist/lib/build/esbuild.d.cts +12 -12
- package/dist/lib/build/esbuild.d.ts +12 -12
- package/dist/lib/build/index.cjs +18 -18
- package/dist/lib/build/index.d.cts +13 -13
- package/dist/lib/build/index.d.ts +13 -13
- package/dist/lib/build/index.js +3 -3
- package/dist/lib/build/rolldown.d.cts +12 -12
- package/dist/lib/build/rolldown.d.ts +12 -12
- package/dist/lib/build/rollup.d.cts +12 -12
- package/dist/lib/build/rollup.d.ts +12 -12
- package/dist/lib/build/rspack.d.cts +12 -12
- package/dist/lib/build/rspack.d.ts +12 -12
- package/dist/lib/build/tsup.d.cts +11 -11
- package/dist/lib/build/tsup.d.ts +11 -11
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +13 -13
- package/dist/lib/build/unbuild.d.ts +13 -13
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.d.cts +12 -12
- package/dist/lib/build/vite.d.ts +12 -12
- package/dist/lib/build/webpack.d.cts +12 -12
- package/dist/lib/build/webpack.d.ts +12 -12
- package/dist/lib/bundle.cjs +16 -0
- package/dist/lib/bundle.cjs.map +1 -0
- package/dist/lib/bundle.d.cts +44 -0
- package/dist/lib/bundle.d.ts +44 -0
- package/dist/lib/bundle.js +7 -0
- package/dist/lib/bundle.js.map +1 -0
- package/dist/lib/chunk-2625RJNJ.cjs +41 -0
- package/dist/lib/chunk-2625RJNJ.cjs.map +1 -0
- package/dist/lib/{chunk-PIFE7MUZ.js → chunk-6BRTJXZ2.js} +195 -6
- package/dist/lib/chunk-6BRTJXZ2.js.map +1 -0
- package/dist/lib/chunk-6IJTWIVJ.cjs +107 -0
- package/dist/lib/chunk-6IJTWIVJ.cjs.map +1 -0
- package/dist/lib/{chunk-YVDJCVE5.cjs → chunk-BAC4AJEP.cjs} +3 -3
- package/dist/lib/{chunk-YVDJCVE5.cjs.map → chunk-BAC4AJEP.cjs.map} +1 -1
- package/dist/lib/{chunk-Q2RUDKWY.cjs → chunk-BW3VFCTS.cjs} +2 -2
- package/dist/lib/chunk-BW3VFCTS.cjs.map +1 -0
- package/dist/lib/chunk-ESYYL5UH.js +105 -0
- package/dist/lib/chunk-ESYYL5UH.js.map +1 -0
- package/dist/lib/chunk-GTQZYDA7.js +39 -0
- package/dist/lib/chunk-GTQZYDA7.js.map +1 -0
- package/dist/lib/{chunk-M7U5RMK7.js → chunk-KOCDKJDJ.js} +2 -2
- package/dist/lib/chunk-KOCDKJDJ.js.map +1 -0
- package/dist/lib/{chunk-M7WHFUKR.cjs → chunk-LYD5OTBI.cjs} +210 -21
- package/dist/lib/chunk-LYD5OTBI.cjs.map +1 -0
- package/dist/lib/{chunk-6U2UX2PX.cjs → chunk-RLMEYZ5I.cjs} +11 -15
- package/dist/lib/chunk-RLMEYZ5I.cjs.map +1 -0
- package/dist/lib/{chunk-CAPN4FSS.js → chunk-S4TGQD45.js} +3 -3
- package/dist/lib/{chunk-CAPN4FSS.js.map → chunk-S4TGQD45.js.map} +1 -1
- package/dist/lib/{chunk-KFE2IR3Y.js → chunk-V2T4H24I.js} +11 -15
- package/dist/lib/chunk-V2T4H24I.js.map +1 -0
- package/dist/lib/config-file.d.cts +11 -11
- package/dist/lib/config-file.d.ts +11 -11
- package/dist/lib/{config-AuIGsUck.d.cts → context-B481RQbf.d.cts} +615 -559
- package/dist/lib/{config-B_WTwd49.d.ts → context-efHKG-wc.d.ts} +615 -559
- package/dist/lib/create-program.cjs +13 -0
- package/dist/lib/create-program.cjs.map +1 -0
- package/dist/lib/create-program.d.cts +42 -0
- package/dist/lib/create-program.d.ts +42 -0
- package/dist/lib/create-program.js +4 -0
- package/dist/lib/create-program.js.map +1 -0
- package/dist/lib/entry.d.cts +12 -12
- package/dist/lib/entry.d.ts +12 -12
- package/dist/lib/{hooks-DErK4Fv4.d.ts → hooks-CdvPHbFZ.d.cts} +1 -1
- package/dist/lib/{hooks-4KkL9GD2.d.cts → hooks-JhMVguVh.d.ts} +1 -1
- package/dist/lib/index.cjs +47 -36
- package/dist/lib/index.d.cts +16 -13
- package/dist/lib/index.d.ts +16 -13
- package/dist/lib/index.js +10 -7
- package/dist/lib/logger.d.cts +12 -12
- package/dist/lib/logger.d.ts +12 -12
- package/dist/lib/typescript/compiler-host.cjs +46 -2
- package/dist/lib/typescript/compiler-host.cjs.map +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +18 -13
- package/dist/lib/typescript/compiler-host.d.ts +18 -13
- package/dist/lib/typescript/compiler-host.js +45 -2
- package/dist/lib/typescript/compiler-host.js.map +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +12 -12
- package/dist/lib/typescript/import-transformer.d.ts +12 -12
- package/dist/lib/typescript/index.cjs +6 -6
- package/dist/lib/typescript/index.d.cts +12 -12
- package/dist/lib/typescript/index.d.ts +12 -12
- package/dist/lib/typescript/index.js +1 -1
- package/dist/lib/typescript/program.cjs +6 -6
- package/dist/lib/typescript/program.d.cts +13 -13
- package/dist/lib/typescript/program.d.ts +13 -13
- package/dist/lib/typescript/program.js +1 -1
- package/dist/lib/unplugin/factory.cjs +3 -3
- package/dist/lib/unplugin/factory.d.cts +12 -12
- package/dist/lib/unplugin/factory.d.ts +12 -12
- package/dist/lib/unplugin/factory.js +2 -2
- package/dist/lib/unplugin/index.cjs +3 -3
- package/dist/lib/unplugin/index.d.cts +12 -12
- package/dist/lib/unplugin/index.d.ts +12 -12
- package/dist/lib/unplugin/index.js +2 -2
- package/dist/lib/unplugin/plugin.d.cts +11 -11
- package/dist/lib/unplugin/plugin.d.ts +11 -11
- package/dist/lib/unplugin/resolve-id.d.cts +11 -11
- package/dist/lib/unplugin/resolve-id.d.ts +11 -11
- package/dist/lib/utilities/file-header.d.cts +12 -12
- package/dist/lib/utilities/file-header.d.ts +12 -12
- package/dist/lib/utilities/index.cjs +20 -20
- package/dist/lib/utilities/index.d.cts +12 -12
- package/dist/lib/utilities/index.d.ts +12 -12
- package/dist/lib/utilities/index.js +3 -3
- package/dist/lib/utilities/meta.cjs +8 -8
- package/dist/lib/utilities/meta.d.cts +12 -12
- package/dist/lib/utilities/meta.d.ts +12 -12
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/plugin-helpers.d.cts +11 -11
- package/dist/lib/utilities/plugin-helpers.d.ts +11 -11
- package/dist/lib/utilities/resolve-path.d.cts +12 -12
- package/dist/lib/utilities/resolve-path.d.ts +12 -12
- package/dist/lib/utilities/worker.d.cts +11 -11
- package/dist/lib/utilities/worker.d.ts +11 -11
- package/dist/lib/utilities/write-file.d.cts +12 -12
- package/dist/lib/utilities/write-file.d.ts +12 -12
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- 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/compiler.d.cts +1 -1
- package/dist/types/compiler.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/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.cjs +9 -9
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- 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 +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/types/vfs.cjs +7 -7
- package/dist/types/vfs.d.cts +61 -5
- package/dist/types/vfs.d.ts +61 -5
- package/dist/types/vfs.js +1 -1
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +4 -4
- package/package.json +9 -7
- package/dist/chunk-IJBH5OUN.cjs +0 -12
- package/dist/chunk-JBTSAOIQ.js +0 -31
- package/dist/chunk-LXMNDUPG.cjs +0 -12
- package/dist/chunk-RQ4CHMPO.cjs +0 -12
- package/dist/chunk-S5QFX2GM.cjs +0 -12
- package/dist/chunk-SL3CXJWD.cjs +0 -34
- package/dist/chunk-YG7U2GIR.cjs +0 -24
- package/dist/chunk-ZFATNDSY.cjs +0 -12
- package/dist/lib/chunk-6U2UX2PX.cjs.map +0 -1
- package/dist/lib/chunk-KFE2IR3Y.js.map +0 -1
- package/dist/lib/chunk-M7U5RMK7.js.map +0 -1
- package/dist/lib/chunk-M7WHFUKR.cjs.map +0 -1
- package/dist/lib/chunk-PIFE7MUZ.js.map +0 -1
- package/dist/lib/chunk-Q2RUDKWY.cjs.map +0 -1
- package/dist/{resolved-CcuVqMqc.d.cts → resolved-3RFshyDy.d.cts} +16 -16
- package/dist/{resolved-Dhscmo3z.d.ts → resolved-BzyBMgQG.d.ts} +16 -16
package/dist/astro.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkOC7CCD5M_cjs = require('./chunk-OC7CCD5M.cjs');
|
|
6
|
+
require('./chunk-FANQC345.cjs');
|
|
7
7
|
require('./chunk-UZQYBO6Z.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-WCTOTE3T.cjs');
|
|
9
|
+
require('./chunk-PJRHRDLS.cjs');
|
|
10
10
|
require('./chunk-APVMN2H7.cjs');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-22K72CJ5.cjs');
|
|
12
12
|
require('./chunk-5VPVJHJO.cjs');
|
|
13
13
|
require('./chunk-PK6SKIKE.cjs');
|
|
14
14
|
|
|
@@ -16,15 +16,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "astro", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkOC7CCD5M_cjs.astro; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "default", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkOC7CCD5M_cjs.astro_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "module.exports", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkOC7CCD5M_cjs.astro; }
|
|
28
28
|
});
|
|
29
29
|
//# sourceMappingURL=astro.cjs.map
|
|
30
30
|
//# sourceMappingURL=astro.cjs.map
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { co as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { co as ViteResolvedConfig } from './resolved-3RFshyDy.cjs';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { co as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { co as ViteResolvedConfig } from './resolved-BzyBMgQG.js';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
package/dist/astro.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { astro, astro_default as default, astro as "module.exports" } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { astro, astro_default as default, astro as "module.exports" } from './chunk-BHP6KBGK.js';
|
|
2
|
+
import './chunk-BOIEJ5I6.js';
|
|
3
3
|
import './chunk-6TJGZR5X.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-V7LXFIGK.js';
|
|
5
|
+
import './chunk-P4BOYWXT.js';
|
|
6
6
|
import './chunk-EBMELFCF.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-4HGQJ4KR.js';
|
|
8
8
|
import './chunk-LO77RPRV.js';
|
|
9
9
|
import './chunk-7QVYU63E.js';
|
|
10
10
|
//# sourceMappingURL=astro.js.map
|
|
@@ -14,5 +14,5 @@ exports.__VFS_RESOLVER__ = __VFS_RESOLVER__;
|
|
|
14
14
|
exports.__VFS_REVERT__ = __VFS_REVERT__;
|
|
15
15
|
exports.__VFS_UNIFIED__ = __VFS_UNIFIED__;
|
|
16
16
|
exports.__VFS_VIRTUAL__ = __VFS_VIRTUAL__;
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-22K72CJ5.cjs.map
|
|
18
|
+
//# sourceMappingURL=chunk-22K72CJ5.cjs.map
|
|
@@ -7,5 +7,5 @@ var __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
|
|
|
7
7
|
var __VFS_UNIFIED__ = "__VFS_UNIFIED__";
|
|
8
8
|
|
|
9
9
|
export { __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ };
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
10
|
+
//# sourceMappingURL=chunk-4HGQJ4KR.js.map
|
|
11
|
+
//# sourceMappingURL=chunk-4HGQJ4KR.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWCTOTE3T_cjs = require('./chunk-WCTOTE3T.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkWCTOTE3T_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-7MTW3KR2.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-7MTW3KR2.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { esbuild_default } from './chunk-
|
|
1
|
+
import { esbuild_default } from './chunk-MAEKW52U.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { omit } from '@stryke/helpers/omit';
|
|
4
4
|
|
|
@@ -35,5 +35,5 @@ __name(tsup, "tsup");
|
|
|
35
35
|
var tsup_default = tsup;
|
|
36
36
|
|
|
37
37
|
export { tsup, tsup_default };
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-7UIYU6SC.js.map
|
|
39
|
+
//# sourceMappingURL=chunk-7UIYU6SC.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWCTOTE3T_cjs = require('./chunk-WCTOTE3T.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rspack = unplugin.createRspackPlugin(chunkWCTOTE3T_cjs.createUnpluginFactory("rspack"));
|
|
7
|
+
var rspack_default = rspack;
|
|
8
|
+
|
|
9
|
+
exports.rspack = rspack;
|
|
10
|
+
exports.rspack_default = rspack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-7WMWRX2S.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-7WMWRX2S.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-V7LXFIGK.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-A3BBPLTY.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-A3BBPLTY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-BOIEJ5I6.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
|
|
4
4
|
// src/astro.ts
|
|
@@ -12,5 +12,5 @@ var astro = /* @__PURE__ */ __name((config) => ({
|
|
|
12
12
|
var astro_default = astro;
|
|
13
13
|
|
|
14
14
|
export { astro, astro_default };
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-BHP6KBGK.js.map
|
|
16
|
+
//# sourceMappingURL=chunk-BHP6KBGK.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-6TJGZR5X.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-V7LXFIGK.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -105,5 +105,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
105
105
|
var vite_default = vite;
|
|
106
106
|
|
|
107
107
|
export { vite, vite_default };
|
|
108
|
-
//# sourceMappingURL=chunk-
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
108
|
+
//# sourceMappingURL=chunk-BOIEJ5I6.js.map
|
|
109
|
+
//# sourceMappingURL=chunk-BOIEJ5I6.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { rolldown_default } from './chunk-A3BBPLTY.js';
|
|
2
|
+
import { rollup_default } from './chunk-ZQ7U35QZ.js';
|
|
3
|
+
import { rspack_default } from './chunk-SY7N6FC3.js';
|
|
4
|
+
import { tsup_default } from './chunk-7UIYU6SC.js';
|
|
5
|
+
import { unloader_default } from './chunk-RBRFT2R6.js';
|
|
6
|
+
import { astro_default } from './chunk-BHP6KBGK.js';
|
|
7
|
+
import { esbuild_default } from './chunk-MAEKW52U.js';
|
|
8
|
+
import { next_default } from './chunk-ZP5QLZQ2.js';
|
|
9
|
+
import { nuxt_default } from './chunk-L3DAMAEC.js';
|
|
10
|
+
import { vite_default } from './chunk-BOIEJ5I6.js';
|
|
11
|
+
import { webpack_default } from './chunk-NGKWITCO.js';
|
|
12
|
+
|
|
13
|
+
// src/unplugin.ts
|
|
14
|
+
var plugins = {
|
|
15
|
+
astro: astro_default,
|
|
16
|
+
esbuild: esbuild_default,
|
|
17
|
+
next: next_default,
|
|
18
|
+
nuxt: nuxt_default,
|
|
19
|
+
rolldown: rolldown_default,
|
|
20
|
+
rollup: rollup_default,
|
|
21
|
+
rspack: rspack_default,
|
|
22
|
+
tsup: tsup_default,
|
|
23
|
+
unloader: unloader_default,
|
|
24
|
+
vite: vite_default,
|
|
25
|
+
webpack: webpack_default
|
|
26
|
+
};
|
|
27
|
+
var unplugin_default = plugins;
|
|
28
|
+
|
|
29
|
+
export { plugins, unplugin_default };
|
|
30
|
+
//# sourceMappingURL=chunk-DELRP3WY.js.map
|
|
31
|
+
//# sourceMappingURL=chunk-DELRP3WY.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUZQYBO6Z_cjs = require('./chunk-UZQYBO6Z.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWCTOTE3T_cjs = require('./chunk-WCTOTE3T.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(chunkWCTOTE3T_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -30,5 +30,5 @@ var esbuild_default = esbuild;
|
|
|
30
30
|
|
|
31
31
|
exports.esbuild = esbuild;
|
|
32
32
|
exports.esbuild_default = esbuild_default;
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-ELHJY5WG.cjs.map
|
|
34
|
+
//# sourceMappingURL=chunk-ELHJY5WG.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUZQYBO6Z_cjs = require('./chunk-UZQYBO6Z.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWCTOTE3T_cjs = require('./chunk-WCTOTE3T.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -70,7 +70,7 @@ function extractViteConfig(context) {
|
|
|
70
70
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
71
71
|
|
|
72
72
|
// src/vite.ts
|
|
73
|
-
var vite = unplugin.createVitePlugin(
|
|
73
|
+
var vite = unplugin.createVitePlugin(chunkWCTOTE3T_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
74
74
|
return {
|
|
75
75
|
...plugin,
|
|
76
76
|
vite: {
|
|
@@ -112,5 +112,5 @@ var vite_default = vite;
|
|
|
112
112
|
|
|
113
113
|
exports.vite = vite;
|
|
114
114
|
exports.vite_default = vite_default;
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-FANQC345.cjs.map
|
|
116
|
+
//# sourceMappingURL=chunk-FANQC345.cjs.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7MTW3KR2_cjs = require('./chunk-7MTW3KR2.cjs');
|
|
4
|
+
var chunkMXJWCZDP_cjs = require('./chunk-MXJWCZDP.cjs');
|
|
5
|
+
var chunk7WMWRX2S_cjs = require('./chunk-7WMWRX2S.cjs');
|
|
6
|
+
var chunkV5D5NVV7_cjs = require('./chunk-V5D5NVV7.cjs');
|
|
7
|
+
var chunkWD4363UW_cjs = require('./chunk-WD4363UW.cjs');
|
|
8
|
+
var chunkOC7CCD5M_cjs = require('./chunk-OC7CCD5M.cjs');
|
|
9
|
+
var chunkELHJY5WG_cjs = require('./chunk-ELHJY5WG.cjs');
|
|
10
|
+
var chunkRU6BHTIP_cjs = require('./chunk-RU6BHTIP.cjs');
|
|
11
|
+
var chunkSNARILEC_cjs = require('./chunk-SNARILEC.cjs');
|
|
12
|
+
var chunkFANQC345_cjs = require('./chunk-FANQC345.cjs');
|
|
13
|
+
var chunkLC6FLEJS_cjs = require('./chunk-LC6FLEJS.cjs');
|
|
14
|
+
|
|
15
|
+
// src/unplugin.ts
|
|
16
|
+
var plugins = {
|
|
17
|
+
astro: chunkOC7CCD5M_cjs.astro_default,
|
|
18
|
+
esbuild: chunkELHJY5WG_cjs.esbuild_default,
|
|
19
|
+
next: chunkRU6BHTIP_cjs.next_default,
|
|
20
|
+
nuxt: chunkSNARILEC_cjs.nuxt_default,
|
|
21
|
+
rolldown: chunk7MTW3KR2_cjs.rolldown_default,
|
|
22
|
+
rollup: chunkMXJWCZDP_cjs.rollup_default,
|
|
23
|
+
rspack: chunk7WMWRX2S_cjs.rspack_default,
|
|
24
|
+
tsup: chunkV5D5NVV7_cjs.tsup_default,
|
|
25
|
+
unloader: chunkWD4363UW_cjs.unloader_default,
|
|
26
|
+
vite: chunkFANQC345_cjs.vite_default,
|
|
27
|
+
webpack: chunkLC6FLEJS_cjs.webpack_default
|
|
28
|
+
};
|
|
29
|
+
var unplugin_default = plugins;
|
|
30
|
+
|
|
31
|
+
exports.plugins = plugins;
|
|
32
|
+
exports.unplugin_default = unplugin_default;
|
|
33
|
+
//# sourceMappingURL=chunk-GV3S7ZR3.cjs.map
|
|
34
|
+
//# sourceMappingURL=chunk-GV3S7ZR3.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
2
|
-
import { webpack_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-BOIEJ5I6.js';
|
|
2
|
+
import { webpack_default } from './chunk-NGKWITCO.js';
|
|
3
3
|
import { defineNuxtModule, addVitePlugin, addWebpackPlugin } from '@nuxt/kit';
|
|
4
4
|
import '@nuxt/schema';
|
|
5
5
|
|
|
@@ -17,5 +17,5 @@ var nuxt = defineNuxtModule({
|
|
|
17
17
|
var nuxt_default = nuxt;
|
|
18
18
|
|
|
19
19
|
export { nuxt, nuxt_default };
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-L3DAMAEC.js.map
|
|
21
|
+
//# sourceMappingURL=chunk-L3DAMAEC.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWCTOTE3T_cjs = require('./chunk-WCTOTE3T.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkWCTOTE3T_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-LC6FLEJS.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-LC6FLEJS.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-6TJGZR5X.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-V7LXFIGK.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -27,5 +27,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
27
27
|
var esbuild_default = esbuild;
|
|
28
28
|
|
|
29
29
|
export { esbuild, esbuild_default };
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-MAEKW52U.js.map
|
|
31
|
+
//# sourceMappingURL=chunk-MAEKW52U.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWCTOTE3T_cjs = require('./chunk-WCTOTE3T.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rollup = unplugin.createRollupPlugin(chunkWCTOTE3T_cjs.createUnpluginFactory("rollup"));
|
|
7
|
+
var rollup_default = rollup;
|
|
8
|
+
|
|
9
|
+
exports.rollup = rollup;
|
|
10
|
+
exports.rollup_default = rollup_default;
|
|
11
|
+
//# sourceMappingURL=chunk-MXJWCZDP.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-MXJWCZDP.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-V7LXFIGK.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-NGKWITCO.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-NGKWITCO.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFANQC345_cjs = require('./chunk-FANQC345.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
|
|
6
6
|
// src/astro.ts
|
|
7
7
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
8
8
|
vite: {
|
|
9
9
|
plugins: [
|
|
10
|
-
|
|
10
|
+
chunkFANQC345_cjs.vite_default(config)
|
|
11
11
|
]
|
|
12
12
|
}
|
|
13
13
|
}), "astro");
|
|
@@ -15,5 +15,5 @@ var astro_default = astro;
|
|
|
15
15
|
|
|
16
16
|
exports.astro = astro;
|
|
17
17
|
exports.astro_default = astro_default;
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-OC7CCD5M.cjs.map
|
|
19
|
+
//# sourceMappingURL=chunk-OC7CCD5M.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PLUGIN_NON_HOOK_FIELDS } from './chunk-EBMELFCF.js';
|
|
2
|
-
import { __VFS_CACHE__, __VFS_RESOLVER__, __VFS_VIRTUAL__, __VFS_UNIFIED__, __VFS_INIT__, __VFS_REVERT__ } from './chunk-
|
|
2
|
+
import { __VFS_CACHE__, __VFS_RESOLVER__, __VFS_VIRTUAL__, __VFS_UNIFIED__, __VFS_INIT__, __VFS_REVERT__ } from './chunk-4HGQJ4KR.js';
|
|
3
3
|
import { SUPPORTED_COMMANDS } from './chunk-LO77RPRV.js';
|
|
4
4
|
import { __name } from './chunk-7QVYU63E.js';
|
|
5
5
|
import { formatLogMessage } from '@storm-software/config-tools/logger/console';
|
|
@@ -29,7 +29,7 @@ import ts2, { createProgram, createCompilerHost, getPreEmitDiagnostics, getLineA
|
|
|
29
29
|
import '@stryke/fs/remove-file';
|
|
30
30
|
import { hashDirectory } from '@stryke/hash/hash-files';
|
|
31
31
|
import { getUnique, getUniqueBy } from '@stryke/helpers/get-unique';
|
|
32
|
-
import { findFilePath,
|
|
32
|
+
import { findFilePath, findFileDotExtensionSafe, hasFileExtension, findFileExtensionSafe, relativePath, findFileName } from '@stryke/path/file-path-fns';
|
|
33
33
|
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
34
34
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
35
35
|
import { writeFile as writeFile$1 } from '@stryke/fs/write-file';
|
|
@@ -967,6 +967,19 @@ var VirtualFileSystem = class {
|
|
|
967
967
|
return this.unlink(path, options);
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
970
|
+
* Synchronously removes a file or directory in the virtual file system (VFS).
|
|
971
|
+
*
|
|
972
|
+
* @param path - The path to the file or directory to remove.
|
|
973
|
+
* @param options - Options for removing the file or directory.
|
|
974
|
+
*/
|
|
975
|
+
rmSync(path, options = {}) {
|
|
976
|
+
this.#log(LogLevelLabel.TRACE, `Removing: ${toFilePath(path)}`);
|
|
977
|
+
if (this.isDirectory(path)) {
|
|
978
|
+
return this.rmdirSync(path, options);
|
|
979
|
+
}
|
|
980
|
+
return this.unlinkSync(path, options);
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
970
983
|
* Creates a directory in the virtual file system (VFS).
|
|
971
984
|
*
|
|
972
985
|
* @param path - The path to create the directory at.
|
|
@@ -1003,6 +1016,166 @@ var VirtualFileSystem = class {
|
|
|
1003
1016
|
return result;
|
|
1004
1017
|
}
|
|
1005
1018
|
/**
|
|
1019
|
+
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
1020
|
+
*
|
|
1021
|
+
* @param patterns - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
1022
|
+
* @returns An array of file paths matching the provided pattern(s)
|
|
1023
|
+
*/
|
|
1024
|
+
async glob(patterns) {
|
|
1025
|
+
const results = [];
|
|
1026
|
+
for (const pattern of toArray(patterns)) {
|
|
1027
|
+
const normalized = this.formatPath(pattern);
|
|
1028
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("**")) {
|
|
1029
|
+
const resolved = this.resolve(normalized, {
|
|
1030
|
+
type: "file"
|
|
1031
|
+
});
|
|
1032
|
+
if (resolved && !results.includes(resolved)) {
|
|
1033
|
+
results.push(resolved);
|
|
1034
|
+
}
|
|
1035
|
+
continue;
|
|
1036
|
+
}
|
|
1037
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.formatPath(joinPaths(this.#context.workspaceConfig.workspaceRoot, normalized));
|
|
1038
|
+
const firstGlobIdx = absPattern.search(/[*?[\]{}]/);
|
|
1039
|
+
const baseDir = firstGlobIdx === -1 ? findFilePath(absPattern) : absPattern.slice(0, Math.max(0, absPattern.lastIndexOf("/", firstGlobIdx)));
|
|
1040
|
+
const stack = [
|
|
1041
|
+
baseDir && isAbsolutePath(baseDir) ? baseDir : this.#context.workspaceConfig.workspaceRoot
|
|
1042
|
+
];
|
|
1043
|
+
while (stack.length) {
|
|
1044
|
+
const dir = stack.pop();
|
|
1045
|
+
let entries = [];
|
|
1046
|
+
try {
|
|
1047
|
+
entries = await this.readdir(dir);
|
|
1048
|
+
} catch {
|
|
1049
|
+
continue;
|
|
1050
|
+
}
|
|
1051
|
+
for (const entry of entries) {
|
|
1052
|
+
const full = this.formatPath(joinPaths(dir, entry));
|
|
1053
|
+
let stats;
|
|
1054
|
+
try {
|
|
1055
|
+
stats = this.#unifiedFS.lstatSync(full);
|
|
1056
|
+
} catch {
|
|
1057
|
+
stats = void 0;
|
|
1058
|
+
}
|
|
1059
|
+
if (!stats) continue;
|
|
1060
|
+
if (stats.isDirectory()) {
|
|
1061
|
+
stack.push(full);
|
|
1062
|
+
} else if (stats.isFile()) {
|
|
1063
|
+
if (this.buildRegex(absPattern).test(full)) {
|
|
1064
|
+
const resolved = this.resolve(full, {
|
|
1065
|
+
type: "file"
|
|
1066
|
+
});
|
|
1067
|
+
if (resolved && !results.includes(resolved)) {
|
|
1068
|
+
results.push(resolved);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
return results;
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
1079
|
+
*
|
|
1080
|
+
* @param patterns - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
1081
|
+
* @returns An array of file paths matching the provided pattern(s)
|
|
1082
|
+
*/
|
|
1083
|
+
globSync(patterns) {
|
|
1084
|
+
const results = [];
|
|
1085
|
+
for (const pattern of toArray(patterns)) {
|
|
1086
|
+
const normalized = this.formatPath(pattern);
|
|
1087
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("**")) {
|
|
1088
|
+
const resolved = this.resolve(normalized, {
|
|
1089
|
+
type: "file"
|
|
1090
|
+
});
|
|
1091
|
+
if (resolved && !results.includes(resolved)) {
|
|
1092
|
+
results.push(resolved);
|
|
1093
|
+
}
|
|
1094
|
+
continue;
|
|
1095
|
+
}
|
|
1096
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.formatPath(joinPaths(this.#context.workspaceConfig.workspaceRoot, normalized));
|
|
1097
|
+
const firstGlobIdx = absPattern.search(/[*?[\]{}]/);
|
|
1098
|
+
const baseDir = firstGlobIdx === -1 ? findFilePath(absPattern) : absPattern.slice(0, Math.max(0, absPattern.lastIndexOf("/", firstGlobIdx)));
|
|
1099
|
+
const stack = [
|
|
1100
|
+
baseDir && isAbsolutePath(baseDir) ? baseDir : this.#context.workspaceConfig.workspaceRoot
|
|
1101
|
+
];
|
|
1102
|
+
while (stack.length) {
|
|
1103
|
+
const dir = stack.pop();
|
|
1104
|
+
let entries = [];
|
|
1105
|
+
try {
|
|
1106
|
+
entries = this.readdirSync(dir);
|
|
1107
|
+
} catch {
|
|
1108
|
+
continue;
|
|
1109
|
+
}
|
|
1110
|
+
for (const entry of entries) {
|
|
1111
|
+
const full = this.formatPath(joinPaths(dir, entry));
|
|
1112
|
+
let stats;
|
|
1113
|
+
try {
|
|
1114
|
+
stats = this.#unifiedFS.lstatSync(full);
|
|
1115
|
+
} catch {
|
|
1116
|
+
stats = void 0;
|
|
1117
|
+
}
|
|
1118
|
+
if (!stats) continue;
|
|
1119
|
+
if (stats.isDirectory()) {
|
|
1120
|
+
stack.push(full);
|
|
1121
|
+
} else if (stats.isFile()) {
|
|
1122
|
+
if (this.buildRegex(absPattern).test(full)) {
|
|
1123
|
+
const resolved = this.resolve(full, {
|
|
1124
|
+
type: "file"
|
|
1125
|
+
});
|
|
1126
|
+
if (resolved && !results.includes(resolved)) {
|
|
1127
|
+
results.push(resolved);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
return results;
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Moves a file from one path to another in the virtual file system (VFS).
|
|
1138
|
+
*
|
|
1139
|
+
* @param srcPath - The source path to move
|
|
1140
|
+
* @param destPath - The destination path to move to
|
|
1141
|
+
*/
|
|
1142
|
+
async move(srcPath, destPath) {
|
|
1143
|
+
const content = await this.readFile(srcPath);
|
|
1144
|
+
await this.writeFile(destPath, content);
|
|
1145
|
+
await this.rm(srcPath);
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Synchronously moves a file from one path to another in the virtual file system (VFS).
|
|
1149
|
+
*
|
|
1150
|
+
* @param srcPath - The source path to move
|
|
1151
|
+
* @param destPath - The destination path to move to
|
|
1152
|
+
*/
|
|
1153
|
+
moveSync(srcPath, destPath) {
|
|
1154
|
+
const content = this.readFileSync(srcPath);
|
|
1155
|
+
this.writeFileSync(destPath, content);
|
|
1156
|
+
this.rmSync(srcPath);
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Copies a file from one path to another in the virtual file system (VFS).
|
|
1160
|
+
*
|
|
1161
|
+
* @param srcPath - The source path to copy
|
|
1162
|
+
* @param destPath - The destination path to copy to
|
|
1163
|
+
*/
|
|
1164
|
+
async copy(srcPath, destPath) {
|
|
1165
|
+
const content = await this.readFile(srcPath);
|
|
1166
|
+
await this.writeFile(destPath, content);
|
|
1167
|
+
}
|
|
1168
|
+
/**
|
|
1169
|
+
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
1170
|
+
*
|
|
1171
|
+
* @param srcPath - The source path to copy
|
|
1172
|
+
* @param destPath - The destination path to copy to
|
|
1173
|
+
*/
|
|
1174
|
+
copySync(srcPath, destPath) {
|
|
1175
|
+
const content = this.readFileSync(srcPath);
|
|
1176
|
+
this.writeFileSync(destPath, content);
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1006
1179
|
* Lists files in a given path.
|
|
1007
1180
|
*
|
|
1008
1181
|
* @param pathOrId - The path to list files from.
|
|
@@ -1144,6 +1317,19 @@ var VirtualFileSystem = class {
|
|
|
1144
1317
|
return this.resolve(pathOrId) !== false;
|
|
1145
1318
|
}
|
|
1146
1319
|
/**
|
|
1320
|
+
* Retrieves the metadata of a file in the virtual file system (VFS).
|
|
1321
|
+
*
|
|
1322
|
+
* @param pathOrId - The path or ID of the file to retrieve metadata for.
|
|
1323
|
+
* @returns The metadata of the file, or undefined if the file does not exist.
|
|
1324
|
+
*/
|
|
1325
|
+
getMetadata(pathOrId) {
|
|
1326
|
+
const resolved = this.resolve(pathOrId);
|
|
1327
|
+
if (resolved && this.meta[resolved]) {
|
|
1328
|
+
return this.meta[resolved];
|
|
1329
|
+
}
|
|
1330
|
+
return void 0;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1147
1333
|
* Checks if a file exists in the virtual file system (VFS).
|
|
1148
1334
|
*
|
|
1149
1335
|
* @remarks
|
|
@@ -1285,6 +1471,10 @@ var VirtualFileSystem = class {
|
|
|
1285
1471
|
getPartialMeta() {
|
|
1286
1472
|
return Object.fromEntries(Object.entries(this.#meta).filter(([_, data]) => isSetObject(data)));
|
|
1287
1473
|
}
|
|
1474
|
+
buildRegex(strPattern) {
|
|
1475
|
+
const token = "::GLOBSTAR::";
|
|
1476
|
+
return new RegExp(`^${this.formatPath(strPattern).replace(/\*\*/g, token).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]").replace(new RegExp(token, "g"), ".*")}$`);
|
|
1477
|
+
}
|
|
1288
1478
|
/**
|
|
1289
1479
|
* Converts a relative path to an absolute path based on the workspace and project root.
|
|
1290
1480
|
*
|
|
@@ -1308,7 +1498,7 @@ var VirtualFileSystem = class {
|
|
|
1308
1498
|
*/
|
|
1309
1499
|
formatId(id) {
|
|
1310
1500
|
const formattedId = toFilePath(id);
|
|
1311
|
-
return `${this.#context.config.output.builtinPrefix}:${formattedId.replace(new RegExp(`^${this.#context.config.output.builtinPrefix}:`), "").replace(/^\\0/, "").replace(
|
|
1501
|
+
return `${this.#context.config.output.builtinPrefix}:${formattedId.replace(new RegExp(`^${this.#context.config.output.builtinPrefix}:`), "").replace(/^\\0/, "").replace(findFileDotExtensionSafe(formattedId), "")}`;
|
|
1312
1502
|
}
|
|
1313
1503
|
/**
|
|
1314
1504
|
* Resolves an id parameter to a corresponding virtual file path in the virtual file system (VFS).
|
|
@@ -1518,7 +1708,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1518
1708
|
#envPaths;
|
|
1519
1709
|
#fs;
|
|
1520
1710
|
#tsconfig;
|
|
1521
|
-
// #entry: ResolvedEntryTypeDefinition[] = [] as ResolvedEntryTypeDefinition[];
|
|
1522
1711
|
#getConfigProps(config = {}) {
|
|
1523
1712
|
return {
|
|
1524
1713
|
variant: config.build?.variant,
|
|
@@ -3377,5 +3566,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
3377
3566
|
};
|
|
3378
3567
|
|
|
3379
3568
|
export { PowerlinesAPI, createLog, getString };
|
|
3380
|
-
//# sourceMappingURL=chunk-
|
|
3381
|
-
//# sourceMappingURL=chunk-
|
|
3569
|
+
//# sourceMappingURL=chunk-P4BOYWXT.js.map
|
|
3570
|
+
//# sourceMappingURL=chunk-P4BOYWXT.js.map
|