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
|
@@ -27,7 +27,7 @@ import { Range } from 'semver';
|
|
|
27
27
|
import { Project } from 'ts-morph';
|
|
28
28
|
import { RequestInfo, Response } from 'undici';
|
|
29
29
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
30
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions,
|
|
30
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions, c as StoragePort, b as StoragePreset } from './fs-DkLcPGg-.js';
|
|
31
31
|
import { ArrayValues } from '@stryke/types/array';
|
|
32
32
|
import { P as ParsedTypeScriptConfig, T as TSConfig } from './tsconfig-Bz-CiFqD.js';
|
|
33
33
|
|
|
@@ -644,10 +644,18 @@ interface ParseOptions extends ParserOptions {
|
|
|
644
644
|
*/
|
|
645
645
|
allowReturnOutsideFunction?: boolean;
|
|
646
646
|
}
|
|
647
|
+
interface EmitOptions extends WriteOptions {
|
|
648
|
+
/**
|
|
649
|
+
* If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
|
|
650
|
+
*/
|
|
651
|
+
emitWithBundler?: boolean;
|
|
652
|
+
needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
|
|
653
|
+
originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
|
|
654
|
+
}
|
|
647
655
|
/**
|
|
648
656
|
* Options for emitting entry virtual files
|
|
649
657
|
*/
|
|
650
|
-
type EmitEntryOptions =
|
|
658
|
+
type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
651
659
|
/**
|
|
652
660
|
* The unresolved Powerlines context.
|
|
653
661
|
*
|
|
@@ -858,6 +866,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
858
866
|
* The Powerlines builtin virtual files
|
|
859
867
|
*/
|
|
860
868
|
getBuiltins: () => Promise<VirtualFile[]>;
|
|
869
|
+
/**
|
|
870
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
871
|
+
*
|
|
872
|
+
* @param code - The source code of the file
|
|
873
|
+
* @param path - The path to write the file to
|
|
874
|
+
* @param options - Additional options for writing the file
|
|
875
|
+
*/
|
|
876
|
+
emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
|
|
877
|
+
/**
|
|
878
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
879
|
+
*
|
|
880
|
+
* @param code - The source code of the file
|
|
881
|
+
* @param path - The path to write the file to
|
|
882
|
+
* @param options - Additional options for writing the file
|
|
883
|
+
*/
|
|
884
|
+
emitSync: (code: string, path: string, options?: EmitOptions) => void;
|
|
861
885
|
/**
|
|
862
886
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
863
887
|
*
|
|
@@ -866,7 +890,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
866
890
|
* @param path - An optional path to write the builtin file to
|
|
867
891
|
* @param options - Additional options for writing the builtin file
|
|
868
892
|
*/
|
|
869
|
-
emitBuiltin: (code: string, id: string, path?: string, options?:
|
|
893
|
+
emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
|
|
894
|
+
/**
|
|
895
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
896
|
+
*
|
|
897
|
+
* @param code - The source code of the builtin file
|
|
898
|
+
* @param id - The unique identifier of the builtin file
|
|
899
|
+
* @param path - An optional path to write the builtin file to
|
|
900
|
+
* @param options - Additional options for writing the builtin file
|
|
901
|
+
*/
|
|
902
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
|
|
870
903
|
/**
|
|
871
904
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
872
905
|
*
|
|
@@ -875,6 +908,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
875
908
|
* @param options - Additional options for writing the entry file
|
|
876
909
|
*/
|
|
877
910
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
911
|
+
/**
|
|
912
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
913
|
+
*
|
|
914
|
+
* @param code - The source code of the entry file
|
|
915
|
+
* @param path - An optional path to write the entry file to
|
|
916
|
+
* @param options - Additional options for writing the entry file
|
|
917
|
+
*/
|
|
918
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
878
919
|
/**
|
|
879
920
|
* A function to update the context fields using a new user configuration options
|
|
880
921
|
*/
|
|
@@ -1452,4 +1493,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineCon
|
|
|
1452
1493
|
command: "deploy";
|
|
1453
1494
|
};
|
|
1454
1495
|
|
|
1455
|
-
export type { APIContext as A, BuildPlugin as B, Context as C,
|
|
1496
|
+
export type { APIContext as A, BuildPlugin as B, Context as C, InferUserConfig as D, ESBuildResolvedBuildConfig as E, FetchOptions as F, SourceFile as G, HooksList as H, InitialUserConfig as I, WorkerProcess as J, PrepareInlineConfig as K, LogFn as L, MetaInfo as M, NewInlineConfig as N, CleanInlineConfig as O, PowerlinesCommand as P, BuildInlineConfig as Q, ResolvedEntryTypeDefinition as R, SelectHooksOptions as S, TsdownResolvedBuildConfig as T, UnbuildBuildConfig as U, ViteResolvedBuildConfig as V, WorkspaceConfig as W, LintInlineConfig as X, DocsInlineConfig as Y, DeployInlineConfig as Z, ParsedUserConfig as a, RolldownResolvedBuildConfig as b, RollupResolvedBuildConfig as c, TsupBuildConfig as d, TsupResolvedBuildConfig as e, UnbuildResolvedBuildConfig as f, ResolvedConfig as g, Plugin as h, PluginContext as i, EnvironmentResolvedConfig as j, InitContextOptions as k, EnvironmentContext as l, EnvironmentContextPlugin as m, HookKeys as n, SelectHooksResult as o, Resolver as p, ParseOptions as q, TransformResult as r, EmitOptions as s, EmitEntryOptions as t, PluginConfig as u, InferHookParameters as v, InferHookReturnType as w, UnpluginBuildVariant as x, InferResolvedConfig as y, InferUnpluginVariant as z };
|
|
@@ -27,7 +27,7 @@ import { Range } from 'semver';
|
|
|
27
27
|
import { Project } from 'ts-morph';
|
|
28
28
|
import { RequestInfo, Response } from 'undici';
|
|
29
29
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
30
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions,
|
|
30
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions, c as StoragePort, b as StoragePreset } from './fs-DkLcPGg-.cjs';
|
|
31
31
|
import { ArrayValues } from '@stryke/types/array';
|
|
32
32
|
import { P as ParsedTypeScriptConfig, T as TSConfig } from './tsconfig-Bz-CiFqD.cjs';
|
|
33
33
|
|
|
@@ -644,10 +644,18 @@ interface ParseOptions extends ParserOptions {
|
|
|
644
644
|
*/
|
|
645
645
|
allowReturnOutsideFunction?: boolean;
|
|
646
646
|
}
|
|
647
|
+
interface EmitOptions extends WriteOptions {
|
|
648
|
+
/**
|
|
649
|
+
* If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
|
|
650
|
+
*/
|
|
651
|
+
emitWithBundler?: boolean;
|
|
652
|
+
needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
|
|
653
|
+
originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
|
|
654
|
+
}
|
|
647
655
|
/**
|
|
648
656
|
* Options for emitting entry virtual files
|
|
649
657
|
*/
|
|
650
|
-
type EmitEntryOptions =
|
|
658
|
+
type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
651
659
|
/**
|
|
652
660
|
* The unresolved Powerlines context.
|
|
653
661
|
*
|
|
@@ -858,6 +866,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
858
866
|
* The Powerlines builtin virtual files
|
|
859
867
|
*/
|
|
860
868
|
getBuiltins: () => Promise<VirtualFile[]>;
|
|
869
|
+
/**
|
|
870
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
871
|
+
*
|
|
872
|
+
* @param code - The source code of the file
|
|
873
|
+
* @param path - The path to write the file to
|
|
874
|
+
* @param options - Additional options for writing the file
|
|
875
|
+
*/
|
|
876
|
+
emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
|
|
877
|
+
/**
|
|
878
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
879
|
+
*
|
|
880
|
+
* @param code - The source code of the file
|
|
881
|
+
* @param path - The path to write the file to
|
|
882
|
+
* @param options - Additional options for writing the file
|
|
883
|
+
*/
|
|
884
|
+
emitSync: (code: string, path: string, options?: EmitOptions) => void;
|
|
861
885
|
/**
|
|
862
886
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
863
887
|
*
|
|
@@ -866,7 +890,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
866
890
|
* @param path - An optional path to write the builtin file to
|
|
867
891
|
* @param options - Additional options for writing the builtin file
|
|
868
892
|
*/
|
|
869
|
-
emitBuiltin: (code: string, id: string, path?: string, options?:
|
|
893
|
+
emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
|
|
894
|
+
/**
|
|
895
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
896
|
+
*
|
|
897
|
+
* @param code - The source code of the builtin file
|
|
898
|
+
* @param id - The unique identifier of the builtin file
|
|
899
|
+
* @param path - An optional path to write the builtin file to
|
|
900
|
+
* @param options - Additional options for writing the builtin file
|
|
901
|
+
*/
|
|
902
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
|
|
870
903
|
/**
|
|
871
904
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
872
905
|
*
|
|
@@ -875,6 +908,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
875
908
|
* @param options - Additional options for writing the entry file
|
|
876
909
|
*/
|
|
877
910
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
911
|
+
/**
|
|
912
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
913
|
+
*
|
|
914
|
+
* @param code - The source code of the entry file
|
|
915
|
+
* @param path - An optional path to write the entry file to
|
|
916
|
+
* @param options - Additional options for writing the entry file
|
|
917
|
+
*/
|
|
918
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
878
919
|
/**
|
|
879
920
|
* A function to update the context fields using a new user configuration options
|
|
880
921
|
*/
|
|
@@ -1452,4 +1493,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineCon
|
|
|
1452
1493
|
command: "deploy";
|
|
1453
1494
|
};
|
|
1454
1495
|
|
|
1455
|
-
export type { APIContext as A, BuildPlugin as B, Context as C,
|
|
1496
|
+
export type { APIContext as A, BuildPlugin as B, Context as C, InferUserConfig as D, ESBuildResolvedBuildConfig as E, FetchOptions as F, SourceFile as G, HooksList as H, InitialUserConfig as I, WorkerProcess as J, PrepareInlineConfig as K, LogFn as L, MetaInfo as M, NewInlineConfig as N, CleanInlineConfig as O, PowerlinesCommand as P, BuildInlineConfig as Q, ResolvedEntryTypeDefinition as R, SelectHooksOptions as S, TsdownResolvedBuildConfig as T, UnbuildBuildConfig as U, ViteResolvedBuildConfig as V, WorkspaceConfig as W, LintInlineConfig as X, DocsInlineConfig as Y, DeployInlineConfig as Z, ParsedUserConfig as a, RolldownResolvedBuildConfig as b, RollupResolvedBuildConfig as c, TsupBuildConfig as d, TsupResolvedBuildConfig as e, UnbuildResolvedBuildConfig as f, ResolvedConfig as g, Plugin as h, PluginContext as i, EnvironmentResolvedConfig as j, InitContextOptions as k, EnvironmentContext as l, EnvironmentContextPlugin as m, HookKeys as n, SelectHooksResult as o, Resolver as p, ParseOptions as q, TransformResult as r, EmitOptions as s, EmitEntryOptions as t, PluginConfig as u, InferHookParameters as v, InferHookReturnType as w, UnpluginBuildVariant as x, InferResolvedConfig as y, InferUnpluginVariant as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-BaPuSNy_.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -28,7 +28,7 @@ import 'semver';
|
|
|
28
28
|
import 'ts-morph';
|
|
29
29
|
import 'undici';
|
|
30
30
|
import 'unplugin';
|
|
31
|
-
import './fs-
|
|
31
|
+
import './fs-DkLcPGg-.cjs';
|
|
32
32
|
import '@stryke/fs/resolve';
|
|
33
33
|
import '@stryke/types/array';
|
|
34
34
|
import './tsconfig-Bz-CiFqD.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-B-3g4vlp.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -28,7 +28,7 @@ import 'semver';
|
|
|
28
28
|
import 'ts-morph';
|
|
29
29
|
import 'undici';
|
|
30
30
|
import 'unplugin';
|
|
31
|
-
import './fs-
|
|
31
|
+
import './fs-DkLcPGg-.js';
|
|
32
32
|
import '@stryke/fs/resolve';
|
|
33
33
|
import '@stryke/types/array';
|
|
34
34
|
import './tsconfig-Bz-CiFqD.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkZ64F7URT_cjs = require('../chunk-Z64F7URT.cjs');
|
|
4
|
+
require('../chunk-IJ5YZSJO.cjs');
|
|
5
5
|
require('../chunk-57WHQU5T.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-HE2IFXW4.cjs');
|
|
7
7
|
require('../chunk-BJGMF356.cjs');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-I4ZNMVU2.cjs');
|
|
9
|
+
require('../chunk-RI3JLIUH.cjs');
|
|
10
|
+
require('../chunk-FO5AJ2PR.cjs');
|
|
11
|
+
require('../chunk-4LHV7MWI.cjs');
|
|
12
12
|
require('../chunk-YYG2XJQN.cjs');
|
|
13
13
|
require('../chunk-ZWLSNYIN.cjs');
|
|
14
14
|
require('../chunk-QHTL2U3L.cjs');
|
|
@@ -22,7 +22,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZ64F7URT_cjs.PowerlinesAPIContext; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=api-context.cjs.map
|
|
28
28
|
//# sourceMappingURL=api-context.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-
|
|
2
|
-
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-
|
|
1
|
+
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-BaPuSNy_.cjs';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-Dvez9bHr.cjs';
|
|
3
3
|
import { PowerlinesContext } from './context.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -30,13 +30,13 @@ import 'semver';
|
|
|
30
30
|
import 'ts-morph';
|
|
31
31
|
import 'undici';
|
|
32
32
|
import 'unplugin';
|
|
33
|
-
import '../fs-
|
|
33
|
+
import '../fs-DkLcPGg-.cjs';
|
|
34
34
|
import '@stryke/fs/resolve';
|
|
35
35
|
import '@stryke/types/array';
|
|
36
36
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
37
37
|
import '@stryke/types/tsconfig';
|
|
38
38
|
import 'typescript';
|
|
39
|
-
import '../api-
|
|
39
|
+
import '../api-DuKKNbVT.cjs';
|
|
40
40
|
import 'flat-cache';
|
|
41
41
|
|
|
42
42
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-
|
|
2
|
-
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-
|
|
1
|
+
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-B-3g4vlp.js';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-8-kuDx9k.js';
|
|
3
3
|
import { PowerlinesContext } from './context.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -30,13 +30,13 @@ import 'semver';
|
|
|
30
30
|
import 'ts-morph';
|
|
31
31
|
import 'undici';
|
|
32
32
|
import 'unplugin';
|
|
33
|
-
import '../fs-
|
|
33
|
+
import '../fs-DkLcPGg-.js';
|
|
34
34
|
import '@stryke/fs/resolve';
|
|
35
35
|
import '@stryke/types/array';
|
|
36
36
|
import '../tsconfig-Bz-CiFqD.js';
|
|
37
37
|
import '@stryke/types/tsconfig';
|
|
38
38
|
import 'typescript';
|
|
39
|
-
import '../api-
|
|
39
|
+
import '../api-BpxWBxyN.js';
|
|
40
40
|
import 'flat-cache';
|
|
41
41
|
|
|
42
42
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPIContext } from '../chunk-RZ4LXAZQ.js';
|
|
2
|
+
import '../chunk-WF65LEKW.js';
|
|
3
3
|
import '../chunk-HEMW2YZA.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-UNJET22R.js';
|
|
5
5
|
import '../chunk-45D4XIOK.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-UOKSPMLS.js';
|
|
7
|
+
import '../chunk-NE26SC53.js';
|
|
8
|
+
import '../chunk-I3GWGYDB.js';
|
|
9
|
+
import '../chunk-QHKZQZJG.js';
|
|
10
10
|
import '../chunk-EBBGE5FN.js';
|
|
11
11
|
import '../chunk-ZLWW2MXD.js';
|
|
12
12
|
import '../chunk-FPFPUYXS.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHE2IFXW4_cjs = require('../chunk-HE2IFXW4.cjs');
|
|
4
4
|
require('../chunk-BJGMF356.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-I4ZNMVU2.cjs');
|
|
6
|
+
require('../chunk-RI3JLIUH.cjs');
|
|
7
|
+
require('../chunk-FO5AJ2PR.cjs');
|
|
8
|
+
require('../chunk-4LHV7MWI.cjs');
|
|
9
9
|
require('../chunk-YYG2XJQN.cjs');
|
|
10
10
|
require('../chunk-ZWLSNYIN.cjs');
|
|
11
11
|
require('../chunk-QHTL2U3L.cjs');
|
|
@@ -19,7 +19,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHE2IFXW4_cjs.PowerlinesContext; }
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=context.cjs.map
|
|
25
25
|
//# sourceMappingURL=context.cjs.map
|
|
@@ -6,9 +6,9 @@ import { Range } from 'semver';
|
|
|
6
6
|
import { Project } from 'ts-morph';
|
|
7
7
|
import { RequestInfo, Response } from 'undici';
|
|
8
8
|
import { ExternalIdResult, UnpluginMessage } from 'unplugin';
|
|
9
|
-
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, s as EmitEntryOptions, k as InitContextOptions } from '../config-
|
|
10
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile
|
|
11
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
9
|
+
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, s as EmitOptions, t as EmitEntryOptions, k as InitContextOptions } from '../config-BaPuSNy_.cjs';
|
|
10
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile } from '../fs-DkLcPGg-.cjs';
|
|
11
|
+
import { a as UNSAFE_ContextInternal } from '../internal-Dvez9bHr.cjs';
|
|
12
12
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.cjs';
|
|
13
13
|
import '@storm-software/build-tools/types';
|
|
14
14
|
import '@storm-software/config-tools/types';
|
|
@@ -34,7 +34,7 @@ import 'jiti';
|
|
|
34
34
|
import 'magic-string';
|
|
35
35
|
import '@stryke/types/array';
|
|
36
36
|
import '@stryke/fs/resolve';
|
|
37
|
-
import '../api-
|
|
37
|
+
import '../api-DuKKNbVT.cjs';
|
|
38
38
|
import '@stryke/types/tsconfig';
|
|
39
39
|
import 'typescript';
|
|
40
40
|
|
|
@@ -265,6 +265,22 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
265
265
|
* Get the builtin virtual files that exist in the Powerlines virtual file system
|
|
266
266
|
*/
|
|
267
267
|
getBuiltins(): Promise<VirtualFile[]>;
|
|
268
|
+
/**
|
|
269
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
270
|
+
*
|
|
271
|
+
* @param code - The source code of the file
|
|
272
|
+
* @param path - The path to write the file to
|
|
273
|
+
* @param options - Additional options for writing the file
|
|
274
|
+
*/
|
|
275
|
+
emit(code: string, path: string, options?: EmitOptions): Promise<void>;
|
|
276
|
+
/**
|
|
277
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
278
|
+
*
|
|
279
|
+
* @param code - The source code of the file
|
|
280
|
+
* @param path - The path to write the file to
|
|
281
|
+
* @param options - Additional options for writing the file
|
|
282
|
+
*/
|
|
283
|
+
emitSync(code: string, path: string, options?: EmitOptions): void;
|
|
268
284
|
/**
|
|
269
285
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
270
286
|
*
|
|
@@ -273,6 +289,14 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
273
289
|
* @param options - Optional write file options
|
|
274
290
|
*/
|
|
275
291
|
emitEntry(code: string, path: string, options?: EmitEntryOptions): Promise<void>;
|
|
292
|
+
/**
|
|
293
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
294
|
+
*
|
|
295
|
+
* @param code - The source code of the entry file
|
|
296
|
+
* @param path - A path to write the entry file to
|
|
297
|
+
* @param options - Optional write file options
|
|
298
|
+
*/
|
|
299
|
+
emitEntrySync(code: string, path: string, options?: EmitEntryOptions): void;
|
|
276
300
|
/**
|
|
277
301
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
278
302
|
*
|
|
@@ -281,7 +305,16 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
281
305
|
* @param path - An optional path to write the builtin file to
|
|
282
306
|
* @param options - Optional write file options
|
|
283
307
|
*/
|
|
284
|
-
emitBuiltin(code: string, id: string, path?: string, options?:
|
|
308
|
+
emitBuiltin(code: string, id: string, path?: string, options?: EmitOptions): Promise<void>;
|
|
309
|
+
/**
|
|
310
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
311
|
+
*
|
|
312
|
+
* @param code - The source code of the builtin file
|
|
313
|
+
* @param id - The unique identifier of the builtin file
|
|
314
|
+
* @param path - An optional path to write the builtin file to
|
|
315
|
+
* @param options - Optional write file options
|
|
316
|
+
*/
|
|
317
|
+
emitBuiltinSync(code: string, id: string, path?: string, options?: EmitOptions): void;
|
|
285
318
|
/**
|
|
286
319
|
* Update the context using a new user configuration options
|
|
287
320
|
*
|
|
@@ -6,9 +6,9 @@ import { Range } from 'semver';
|
|
|
6
6
|
import { Project } from 'ts-morph';
|
|
7
7
|
import { RequestInfo, Response } from 'undici';
|
|
8
8
|
import { ExternalIdResult, UnpluginMessage } from 'unplugin';
|
|
9
|
-
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, s as EmitEntryOptions, k as InitContextOptions } from '../config-
|
|
10
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile
|
|
11
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
9
|
+
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, s as EmitOptions, t as EmitEntryOptions, k as InitContextOptions } from '../config-B-3g4vlp.js';
|
|
10
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile } from '../fs-DkLcPGg-.js';
|
|
11
|
+
import { a as UNSAFE_ContextInternal } from '../internal-8-kuDx9k.js';
|
|
12
12
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.js';
|
|
13
13
|
import '@storm-software/build-tools/types';
|
|
14
14
|
import '@storm-software/config-tools/types';
|
|
@@ -34,7 +34,7 @@ import 'jiti';
|
|
|
34
34
|
import 'magic-string';
|
|
35
35
|
import '@stryke/types/array';
|
|
36
36
|
import '@stryke/fs/resolve';
|
|
37
|
-
import '../api-
|
|
37
|
+
import '../api-BpxWBxyN.js';
|
|
38
38
|
import '@stryke/types/tsconfig';
|
|
39
39
|
import 'typescript';
|
|
40
40
|
|
|
@@ -265,6 +265,22 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
265
265
|
* Get the builtin virtual files that exist in the Powerlines virtual file system
|
|
266
266
|
*/
|
|
267
267
|
getBuiltins(): Promise<VirtualFile[]>;
|
|
268
|
+
/**
|
|
269
|
+
* Resolves a file and writes it to the VFS if it does not already exist
|
|
270
|
+
*
|
|
271
|
+
* @param code - The source code of the file
|
|
272
|
+
* @param path - The path to write the file to
|
|
273
|
+
* @param options - Additional options for writing the file
|
|
274
|
+
*/
|
|
275
|
+
emit(code: string, path: string, options?: EmitOptions): Promise<void>;
|
|
276
|
+
/**
|
|
277
|
+
* Synchronously resolves a file and writes it to the VFS if it does not already exist
|
|
278
|
+
*
|
|
279
|
+
* @param code - The source code of the file
|
|
280
|
+
* @param path - The path to write the file to
|
|
281
|
+
* @param options - Additional options for writing the file
|
|
282
|
+
*/
|
|
283
|
+
emitSync(code: string, path: string, options?: EmitOptions): void;
|
|
268
284
|
/**
|
|
269
285
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
270
286
|
*
|
|
@@ -273,6 +289,14 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
273
289
|
* @param options - Optional write file options
|
|
274
290
|
*/
|
|
275
291
|
emitEntry(code: string, path: string, options?: EmitEntryOptions): Promise<void>;
|
|
292
|
+
/**
|
|
293
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
294
|
+
*
|
|
295
|
+
* @param code - The source code of the entry file
|
|
296
|
+
* @param path - A path to write the entry file to
|
|
297
|
+
* @param options - Optional write file options
|
|
298
|
+
*/
|
|
299
|
+
emitEntrySync(code: string, path: string, options?: EmitEntryOptions): void;
|
|
276
300
|
/**
|
|
277
301
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
278
302
|
*
|
|
@@ -281,7 +305,16 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
281
305
|
* @param path - An optional path to write the builtin file to
|
|
282
306
|
* @param options - Optional write file options
|
|
283
307
|
*/
|
|
284
|
-
emitBuiltin(code: string, id: string, path?: string, options?:
|
|
308
|
+
emitBuiltin(code: string, id: string, path?: string, options?: EmitOptions): Promise<void>;
|
|
309
|
+
/**
|
|
310
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
311
|
+
*
|
|
312
|
+
* @param code - The source code of the builtin file
|
|
313
|
+
* @param id - The unique identifier of the builtin file
|
|
314
|
+
* @param path - An optional path to write the builtin file to
|
|
315
|
+
* @param options - Optional write file options
|
|
316
|
+
*/
|
|
317
|
+
emitBuiltinSync(code: string, id: string, path?: string, options?: EmitOptions): void;
|
|
285
318
|
/**
|
|
286
319
|
* Update the context using a new user configuration options
|
|
287
320
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { PowerlinesContext } from '../chunk-
|
|
1
|
+
export { PowerlinesContext } from '../chunk-UNJET22R.js';
|
|
2
2
|
import '../chunk-45D4XIOK.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-UOKSPMLS.js';
|
|
4
|
+
import '../chunk-NE26SC53.js';
|
|
5
|
+
import '../chunk-I3GWGYDB.js';
|
|
6
|
+
import '../chunk-QHKZQZJG.js';
|
|
7
7
|
import '../chunk-EBBGE5FN.js';
|
|
8
8
|
import '../chunk-ZLWW2MXD.js';
|
|
9
9
|
import '../chunk-FPFPUYXS.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIJ5YZSJO_cjs = require('../chunk-IJ5YZSJO.cjs');
|
|
4
4
|
require('../chunk-57WHQU5T.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-HE2IFXW4.cjs');
|
|
6
6
|
require('../chunk-BJGMF356.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-I4ZNMVU2.cjs');
|
|
8
|
+
require('../chunk-RI3JLIUH.cjs');
|
|
9
|
+
require('../chunk-FO5AJ2PR.cjs');
|
|
10
|
+
require('../chunk-4LHV7MWI.cjs');
|
|
11
11
|
require('../chunk-YYG2XJQN.cjs');
|
|
12
12
|
require('../chunk-ZWLSNYIN.cjs');
|
|
13
13
|
require('../chunk-QHTL2U3L.cjs');
|
|
@@ -21,7 +21,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkIJ5YZSJO_cjs.PowerlinesEnvironmentContext; }
|
|
25
25
|
});
|
|
26
26
|
//# sourceMappingURL=environment-context.cjs.map
|
|
27
27
|
//# sourceMappingURL=environment-context.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-
|
|
1
|
+
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-BaPuSNy_.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -29,15 +29,15 @@ import 'semver';
|
|
|
29
29
|
import 'ts-morph';
|
|
30
30
|
import 'undici';
|
|
31
31
|
import 'unplugin';
|
|
32
|
-
import '../fs-
|
|
32
|
+
import '../fs-DkLcPGg-.cjs';
|
|
33
33
|
import '@stryke/fs/resolve';
|
|
34
34
|
import '@stryke/types/array';
|
|
35
35
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
36
36
|
import '@stryke/types/tsconfig';
|
|
37
37
|
import 'typescript';
|
|
38
38
|
import 'flat-cache';
|
|
39
|
-
import '../internal-
|
|
40
|
-
import '../api-
|
|
39
|
+
import '../internal-Dvez9bHr.cjs';
|
|
40
|
+
import '../api-DuKKNbVT.cjs';
|
|
41
41
|
|
|
42
42
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
43
43
|
#private;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-
|
|
1
|
+
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-B-3g4vlp.js';
|
|
2
2
|
import { PowerlinesContext } from './context.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -29,15 +29,15 @@ import 'semver';
|
|
|
29
29
|
import 'ts-morph';
|
|
30
30
|
import 'undici';
|
|
31
31
|
import 'unplugin';
|
|
32
|
-
import '../fs-
|
|
32
|
+
import '../fs-DkLcPGg-.js';
|
|
33
33
|
import '@stryke/fs/resolve';
|
|
34
34
|
import '@stryke/types/array';
|
|
35
35
|
import '../tsconfig-Bz-CiFqD.js';
|
|
36
36
|
import '@stryke/types/tsconfig';
|
|
37
37
|
import 'typescript';
|
|
38
38
|
import 'flat-cache';
|
|
39
|
-
import '../internal-
|
|
40
|
-
import '../api-
|
|
39
|
+
import '../internal-8-kuDx9k.js';
|
|
40
|
+
import '../api-BpxWBxyN.js';
|
|
41
41
|
|
|
42
42
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
43
43
|
#private;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
1
|
+
export { PowerlinesEnvironmentContext } from '../chunk-WF65LEKW.js';
|
|
2
2
|
import '../chunk-HEMW2YZA.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-UNJET22R.js';
|
|
4
4
|
import '../chunk-45D4XIOK.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-UOKSPMLS.js';
|
|
6
|
+
import '../chunk-NE26SC53.js';
|
|
7
|
+
import '../chunk-I3GWGYDB.js';
|
|
8
|
+
import '../chunk-QHKZQZJG.js';
|
|
9
9
|
import '../chunk-EBBGE5FN.js';
|
|
10
10
|
import '../chunk-ZLWW2MXD.js';
|
|
11
11
|
import '../chunk-FPFPUYXS.js';
|