powerlines 0.36.21 → 0.36.22
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-CKsoNfIi.d.cts} +1 -1
- package/dist/{api-DhwCWSTm.d.cts → api-DF6OX-CP.d.ts} +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-FZIDEHX4.cjs → chunk-2XBYBJR5.cjs} +4 -4
- package/dist/{chunk-Q3EYAAGO.cjs → chunk-A7AUGAHH.cjs} +7 -2
- package/dist/{chunk-NAC3BK64.cjs → chunk-BYE57MON.cjs} +81 -4
- package/dist/{chunk-B6F32B3B.cjs → chunk-CY2P2DU6.cjs} +5 -5
- package/dist/{chunk-CXAAEG5H.js → chunk-GJ2LG4DD.js} +3 -3
- package/dist/chunk-KXRVVFNK.js +11 -0
- package/dist/{chunk-GIOACISS.js → chunk-L2PNHKJM.js} +2 -2
- package/dist/{chunk-C4AK4CRR.cjs → chunk-NCEMQXI7.cjs} +4 -4
- package/dist/{chunk-UZQX7NJH.js → chunk-NIWBFUD2.js} +3 -3
- package/dist/{chunk-6JCE4KHT.js → chunk-O2ASVIMW.js} +3 -3
- package/dist/{chunk-IJXEMXLH.cjs → chunk-PGF6BCY7.cjs} +2 -2
- package/dist/{chunk-HJQ77IG5.js → chunk-PONG5D7V.js} +3 -3
- package/dist/{chunk-HICL77ZC.js → chunk-POZHPFH4.js} +81 -4
- package/dist/{chunk-FGJPJGGC.js → chunk-V3433RRZ.js} +3 -3
- package/dist/chunk-WGXJ6LPR.cjs +12 -0
- package/dist/chunk-ZDOLHPJF.cjs +12 -0
- package/dist/{context-AF63GCTq.d.cts → context-BjkbWSEi.d.cts} +17 -0
- package/dist/{context-BTkUT4s7.d.ts → context-D3mOE_yR.d.ts} +17 -0
- 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-U9jjf5ZI.d.ts} +1 -1
- package/dist/lib/{api-B8z7HzBo.d.cts → api-tl-yvTre.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-67XMKJXQ.js → chunk-5UUCSS3L.js} +4 -4
- package/dist/lib/{chunk-67XMKJXQ.js.map → chunk-5UUCSS3L.js.map} +1 -1
- package/dist/lib/{chunk-WQNUM4K3.js → chunk-7WJ27SD3.js} +3 -3
- package/dist/lib/{chunk-WQNUM4K3.js.map → chunk-7WJ27SD3.js.map} +1 -1
- package/dist/lib/{chunk-WWWGFMAA.js → chunk-AD7VZMXQ.js} +4 -4
- package/dist/lib/{chunk-WWWGFMAA.js.map → chunk-AD7VZMXQ.js.map} +1 -1
- package/dist/lib/{chunk-VF3S2D2V.cjs → chunk-E76ZBTKK.cjs} +50 -5
- package/dist/lib/chunk-E76ZBTKK.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-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-3P36ZLXD.cjs → chunk-I6JH6KU3.cjs} +16 -16
- package/dist/lib/{chunk-3P36ZLXD.cjs.map → chunk-I6JH6KU3.cjs.map} +1 -1
- package/dist/lib/{chunk-QOVSEBZF.js → chunk-INNJR7XT.js} +48 -3
- package/dist/lib/chunk-INNJR7XT.js.map +1 -0
- 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-BT6ROHLM.js → chunk-UOKSPMLS.js} +17 -6
- package/dist/lib/chunk-UOKSPMLS.js.map +1 -0
- package/dist/lib/{chunk-HZ2RLNLV.cjs → chunk-X3KPKVM3.cjs} +6 -6
- package/dist/lib/{chunk-HZ2RLNLV.cjs.map → chunk-X3KPKVM3.cjs.map} +1 -1
- package/dist/lib/{chunk-BZFQYIWK.cjs → chunk-YQHAXICU.cjs} +14 -14
- package/dist/lib/{chunk-BZFQYIWK.cjs.map → chunk-YQHAXICU.cjs.map} +1 -1
- package/dist/lib/{config-Ds6GSd34.d.ts → config-BJy0qydr.d.ts} +18 -1
- package/dist/lib/{config-BbtAp2KJ.d.cts → config-D2hB4lan.d.cts} +18 -1
- 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 +21 -4
- package/dist/lib/contexts/context.d.ts +21 -4
- 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-CksJ16ez.d.ts} +2 -2
- package/dist/lib/{internal-DkOa3QW7.d.cts → internal-V6kgm5vH.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-Z1cKpW1R.d.cts → unplugin-C4u6D9M3.d.cts} +2 -2
- package/dist/lib/{unplugin-ByfVrTII.d.ts → unplugin-I8HmDBMG.d.ts} +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-BLMhhC0A.d.cts} +31 -0
- package/dist/plugin-utils/{context-BoulfuGO.d.ts → context-BLMhhC0A.d.ts} +31 -0
- 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 +2 -2
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BjkbWSEi.cjs';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-D3mOE_yR.js';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBYE57MON_cjs = require('./chunk-BYE57MON.cjs');
|
|
4
4
|
require('./chunk-ZCMOAOQN.cjs');
|
|
5
5
|
require('./chunk-XOMY3USD.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBYE57MON_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-CKsoNfIi.cjs';
|
|
2
|
+
import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BjkbWSEi.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-DF6OX-CP.js';
|
|
2
|
+
import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-D3mOE_yR.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkNCEMQXI7_cjs = require('./chunk-NCEMQXI7.cjs');
|
|
6
6
|
require('./chunk-QHEKB7RW.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-CY2P2DU6.cjs');
|
|
8
|
+
require('./chunk-BYE57MON.cjs');
|
|
9
9
|
require('./chunk-ZCMOAOQN.cjs');
|
|
10
10
|
require('./chunk-XOMY3USD.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkNCEMQXI7_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cA as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cA as ViteResolvedConfig } from './context-BjkbWSEi.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cA as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cA as ViteResolvedConfig } from './context-D3mOE_yR.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-PONG5D7V.js';
|
|
2
2
|
import './chunk-YJWTNJQF.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-O2ASVIMW.js';
|
|
4
|
+
import './chunk-POZHPFH4.js';
|
|
5
5
|
import './chunk-AJPO5EP7.js';
|
|
6
6
|
import './chunk-U2RJRKLT.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.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(chunkCY2P2DU6_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-2XBYBJR5.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-2XBYBJR5.cjs.map
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
// src/types/fs.ts
|
|
4
4
|
var __VFS_PATCH__ = "__VFS_PATCH__";
|
|
5
5
|
var __VFS_REVERT__ = "__VFS_REVERT__";
|
|
6
|
+
var STORAGE_PRESETS = [
|
|
7
|
+
"fs",
|
|
8
|
+
"virtual"
|
|
9
|
+
];
|
|
6
10
|
|
|
11
|
+
exports.STORAGE_PRESETS = STORAGE_PRESETS;
|
|
7
12
|
exports.__VFS_PATCH__ = __VFS_PATCH__;
|
|
8
13
|
exports.__VFS_REVERT__ = __VFS_REVERT__;
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-A7AUGAHH.cjs.map
|
|
15
|
+
//# sourceMappingURL=chunk-A7AUGAHH.cjs.map
|
|
@@ -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] = {
|
|
@@ -3230,6 +3262,36 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3230
3262
|
}));
|
|
3231
3263
|
}
|
|
3232
3264
|
/**
|
|
3265
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
3266
|
+
*
|
|
3267
|
+
* @param code - The source code of the entry file
|
|
3268
|
+
* @param path - A path to write the entry file to
|
|
3269
|
+
* @param options - Optional write file options
|
|
3270
|
+
*/
|
|
3271
|
+
emitEntrySync(code, path, options = {}) {
|
|
3272
|
+
const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
|
|
3273
|
+
this.entry ??= [];
|
|
3274
|
+
this.entry.push({
|
|
3275
|
+
name: options?.name,
|
|
3276
|
+
file: entryPath,
|
|
3277
|
+
input: options?.input,
|
|
3278
|
+
output: options?.output
|
|
3279
|
+
});
|
|
3280
|
+
return this.fs.writeSync(entryPath, code, defu7__default.default(omit.omit(options, [
|
|
3281
|
+
"name"
|
|
3282
|
+
]), {
|
|
3283
|
+
meta: {
|
|
3284
|
+
type: "entry",
|
|
3285
|
+
properties: {
|
|
3286
|
+
name: options?.name,
|
|
3287
|
+
output: options?.output,
|
|
3288
|
+
"input.file": options?.input?.file,
|
|
3289
|
+
"input.name": options?.input?.name
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
}));
|
|
3293
|
+
}
|
|
3294
|
+
/**
|
|
3233
3295
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3234
3296
|
*
|
|
3235
3297
|
* @param code - The source code of the builtin file
|
|
@@ -3245,6 +3307,21 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3245
3307
|
}));
|
|
3246
3308
|
}
|
|
3247
3309
|
/**
|
|
3310
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3311
|
+
*
|
|
3312
|
+
* @param code - The source code of the builtin file
|
|
3313
|
+
* @param id - The unique identifier of the builtin file
|
|
3314
|
+
* @param path - An optional path to write the builtin file to
|
|
3315
|
+
* @param options - Optional write file options
|
|
3316
|
+
*/
|
|
3317
|
+
emitBuiltinSync(code, id, path, options) {
|
|
3318
|
+
return this.fs.writeSync(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
|
|
3319
|
+
meta: {
|
|
3320
|
+
type: "builtin"
|
|
3321
|
+
}
|
|
3322
|
+
}));
|
|
3323
|
+
}
|
|
3324
|
+
/**
|
|
3248
3325
|
* Update the context using a new user configuration options
|
|
3249
3326
|
*
|
|
3250
3327
|
* @param userConfig - The new user configuration options.
|
|
@@ -4737,5 +4814,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
|
|
|
4737
4814
|
exports._capnpFileId = _capnpFileId;
|
|
4738
4815
|
exports.createLog = createLog;
|
|
4739
4816
|
exports.extendLog = extendLog;
|
|
4740
|
-
//# sourceMappingURL=chunk-
|
|
4741
|
-
//# sourceMappingURL=chunk-
|
|
4817
|
+
//# sourceMappingURL=chunk-BYE57MON.cjs.map
|
|
4818
|
+
//# sourceMappingURL=chunk-BYE57MON.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBYE57MON_cjs = require('./chunk-BYE57MON.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 = chunkBYE57MON_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 chunkBYE57MON_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-CY2P2DU6.cjs.map
|
|
136
|
+
//# sourceMappingURL=chunk-CY2P2DU6.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-O2ASVIMW.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-GJ2LG4DD.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-GJ2LG4DD.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/types/fs.ts
|
|
2
|
+
var __VFS_PATCH__ = "__VFS_PATCH__";
|
|
3
|
+
var __VFS_REVERT__ = "__VFS_REVERT__";
|
|
4
|
+
var STORAGE_PRESETS = [
|
|
5
|
+
"fs",
|
|
6
|
+
"virtual"
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ };
|
|
10
|
+
//# sourceMappingURL=chunk-KXRVVFNK.js.map
|
|
11
|
+
//# sourceMappingURL=chunk-KXRVVFNK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.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');
|
|
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
97
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
98
98
|
|
|
99
99
|
// src/vite.ts
|
|
100
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
101
101
|
return {
|
|
102
102
|
...plugin,
|
|
103
103
|
vite: {
|
|
@@ -158,5 +158,5 @@ var vite_default = vite;
|
|
|
158
158
|
|
|
159
159
|
exports.vite = vite;
|
|
160
160
|
exports.vite_default = vite_default;
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-NCEMQXI7.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-NCEMQXI7.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-O2ASVIMW.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-NIWBFUD2.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-NIWBFUD2.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-POZHPFH4.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -129,5 +129,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
129
129
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
130
130
|
|
|
131
131
|
export { createUnpluginFactory, getString };
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
132
|
+
//# sourceMappingURL=chunk-O2ASVIMW.js.map
|
|
133
|
+
//# sourceMappingURL=chunk-O2ASVIMW.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-O2ASVIMW.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';
|
|
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
151
151
|
var vite_default = vite;
|
|
152
152
|
|
|
153
153
|
export { vite, vite_default };
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-PONG5D7V.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-PONG5D7V.js.map
|
|
@@ -1234,6 +1234,13 @@ var BaseStorageAdapter = class {
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
options;
|
|
1236
1236
|
/**
|
|
1237
|
+
* The storage preset for the adapter.
|
|
1238
|
+
*
|
|
1239
|
+
* @remarks
|
|
1240
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
1241
|
+
*/
|
|
1242
|
+
preset = null;
|
|
1243
|
+
/**
|
|
1237
1244
|
* Constructor for the BaseStorageAdapter.
|
|
1238
1245
|
*
|
|
1239
1246
|
* @param options - Configuration options for the storage adapter.
|
|
@@ -1424,6 +1431,13 @@ var FileSystemStorageAdapter = class extends BaseStorageAdapter {
|
|
|
1424
1431
|
*/
|
|
1425
1432
|
name = "file-system";
|
|
1426
1433
|
/**
|
|
1434
|
+
* The storage preset for the adapter.
|
|
1435
|
+
*
|
|
1436
|
+
* @remarks
|
|
1437
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
1438
|
+
*/
|
|
1439
|
+
preset = "fs";
|
|
1440
|
+
/**
|
|
1427
1441
|
* Constructor for the FileSystemStorageAdapter.
|
|
1428
1442
|
*
|
|
1429
1443
|
* @param options - Configuration options for the storage adapter.
|
|
@@ -1583,6 +1597,13 @@ var VirtualStorageAdapter = class extends BaseStorageAdapter {
|
|
|
1583
1597
|
*/
|
|
1584
1598
|
name = "virtual";
|
|
1585
1599
|
/**
|
|
1600
|
+
* The storage preset for the adapter.
|
|
1601
|
+
*
|
|
1602
|
+
* @remarks
|
|
1603
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
1604
|
+
*/
|
|
1605
|
+
preset = "virtual";
|
|
1606
|
+
/**
|
|
1586
1607
|
* In-memory data storage.
|
|
1587
1608
|
*/
|
|
1588
1609
|
data = /* @__PURE__ */ new Map();
|
|
@@ -1731,10 +1752,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1731
1752
|
/**
|
|
1732
1753
|
* Gets the storage adapter and relative key for a given key.
|
|
1733
1754
|
*
|
|
1755
|
+
* @remarks
|
|
1756
|
+
* The `key` can be either a path or a storage adapter name.
|
|
1757
|
+
*
|
|
1734
1758
|
* @param key - The key to get the storage adapter for.
|
|
1735
1759
|
* @returns The storage adapter and relative key for the given key.
|
|
1736
1760
|
*/
|
|
1737
1761
|
#getStorage(key) {
|
|
1762
|
+
const found = Object.entries(this.#storage).find(([, adapter]) => adapter.name === key || adapter.preset && adapter.preset.toLowerCase() === key?.toLowerCase());
|
|
1763
|
+
if (found) {
|
|
1764
|
+
return {
|
|
1765
|
+
base: found[0],
|
|
1766
|
+
relativeKey: "",
|
|
1767
|
+
adapter: found[1]
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1738
1770
|
const path = this.resolveSync(this.#normalizePath(key)) || key;
|
|
1739
1771
|
for (const base of Object.keys(this.#storage).filter(Boolean).sort().reverse()) {
|
|
1740
1772
|
if (isParentPath(path, base)) {
|
|
@@ -2282,7 +2314,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2282
2314
|
});
|
|
2283
2315
|
}
|
|
2284
2316
|
}
|
|
2285
|
-
const { relativeKey, adapter } = this.#getStorage(path);
|
|
2317
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2286
2318
|
this.#log(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(new Blob(toArray(code)).size)})`);
|
|
2287
2319
|
const id = options?.meta?.id || this.#normalizeId(relativeKey);
|
|
2288
2320
|
this.#metadata[id] = {
|
|
@@ -2302,7 +2334,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2302
2334
|
* @param options - Optional parameters for writing the file.
|
|
2303
2335
|
*/
|
|
2304
2336
|
writeSync(path, data = "", options = {}) {
|
|
2305
|
-
const { relativeKey, adapter } = this.#getStorage(path);
|
|
2337
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2306
2338
|
this.#log(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(new Blob(toArray(data)).size)})`);
|
|
2307
2339
|
const id = options?.meta?.id || this.#normalizeId(relativeKey);
|
|
2308
2340
|
this.#metadata[id] = {
|
|
@@ -3201,6 +3233,36 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3201
3233
|
}));
|
|
3202
3234
|
}
|
|
3203
3235
|
/**
|
|
3236
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
3237
|
+
*
|
|
3238
|
+
* @param code - The source code of the entry file
|
|
3239
|
+
* @param path - A path to write the entry file to
|
|
3240
|
+
* @param options - Optional write file options
|
|
3241
|
+
*/
|
|
3242
|
+
emitEntrySync(code, path, options = {}) {
|
|
3243
|
+
const entryPath = isAbsolute(path) ? path : appendPath(path, this.entryPath);
|
|
3244
|
+
this.entry ??= [];
|
|
3245
|
+
this.entry.push({
|
|
3246
|
+
name: options?.name,
|
|
3247
|
+
file: entryPath,
|
|
3248
|
+
input: options?.input,
|
|
3249
|
+
output: options?.output
|
|
3250
|
+
});
|
|
3251
|
+
return this.fs.writeSync(entryPath, code, defu7(omit(options, [
|
|
3252
|
+
"name"
|
|
3253
|
+
]), {
|
|
3254
|
+
meta: {
|
|
3255
|
+
type: "entry",
|
|
3256
|
+
properties: {
|
|
3257
|
+
name: options?.name,
|
|
3258
|
+
output: options?.output,
|
|
3259
|
+
"input.file": options?.input?.file,
|
|
3260
|
+
"input.name": options?.input?.name
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}));
|
|
3264
|
+
}
|
|
3265
|
+
/**
|
|
3204
3266
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3205
3267
|
*
|
|
3206
3268
|
* @param code - The source code of the builtin file
|
|
@@ -3216,6 +3278,21 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3216
3278
|
}));
|
|
3217
3279
|
}
|
|
3218
3280
|
/**
|
|
3281
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3282
|
+
*
|
|
3283
|
+
* @param code - The source code of the builtin file
|
|
3284
|
+
* @param id - The unique identifier of the builtin file
|
|
3285
|
+
* @param path - An optional path to write the builtin file to
|
|
3286
|
+
* @param options - Optional write file options
|
|
3287
|
+
*/
|
|
3288
|
+
emitBuiltinSync(code, id, path, options) {
|
|
3289
|
+
return this.fs.writeSync(path ? isAbsolute(path) ? path : joinPaths(this.builtinsPath, path) : appendPath(id, this.builtinsPath), code, defu7(options, {
|
|
3290
|
+
meta: {
|
|
3291
|
+
type: "builtin"
|
|
3292
|
+
}
|
|
3293
|
+
}));
|
|
3294
|
+
}
|
|
3295
|
+
/**
|
|
3219
3296
|
* Update the context using a new user configuration options
|
|
3220
3297
|
*
|
|
3221
3298
|
* @param userConfig - The new user configuration options.
|
|
@@ -4700,5 +4777,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4700
4777
|
};
|
|
4701
4778
|
|
|
4702
4779
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createLog, extendLog };
|
|
4703
|
-
//# sourceMappingURL=chunk-
|
|
4704
|
-
//# sourceMappingURL=chunk-
|
|
4780
|
+
//# sourceMappingURL=chunk-POZHPFH4.js.map
|
|
4781
|
+
//# sourceMappingURL=chunk-POZHPFH4.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-O2ASVIMW.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-V3433RRZ.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-V3433RRZ.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-WGXJ6LPR.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-WGXJ6LPR.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-ZDOLHPJF.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-ZDOLHPJF.cjs.map
|