powerlines 0.23.2 → 0.23.4
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--9pVSIbm.d.cts +168 -0
- package/dist/api-DxPACGY4.d.ts +168 -0
- package/dist/api.cjs +3 -3
- package/dist/api.d.cts +16 -7
- package/dist/api.d.ts +16 -7
- package/dist/api.js +2 -2
- package/dist/astro.cjs +8 -8
- package/dist/astro.d.cts +3 -5
- package/dist/astro.d.ts +3 -5
- package/dist/astro.js +5 -5
- package/dist/{chunk-ZFO3FUM4.cjs → chunk-2FLICTDF.cjs} +2 -2
- package/dist/{chunk-JAJ4CI2F.cjs → chunk-3OQXZ5MM.cjs} +2 -2
- package/dist/{chunk-KFRKOIP3.js → chunk-5B6P2VUG.js} +1 -1
- package/dist/{chunk-GNNF5SG6.cjs → chunk-6ACGI52O.cjs} +2 -2
- package/dist/{chunk-JZAQW55G.cjs → chunk-AF5VNWZD.cjs} +2 -2
- package/dist/{chunk-J7MZRPLN.cjs → chunk-AIC2EHPW.cjs} +5 -4
- package/dist/{chunk-3WDMXRK6.cjs → chunk-AYKZK666.cjs} +1 -1
- package/dist/chunk-CHNKTBUA.cjs +32 -0
- package/dist/{chunk-M4QJ2474.cjs → chunk-CTSSNO5L.cjs} +4 -4
- package/dist/{chunk-5A7FM72H.cjs → chunk-GP6XGAJ4.cjs} +2 -2
- package/dist/{chunk-DUYZ3TCT.js → chunk-HLQGKQZY.js} +1 -1
- package/dist/{chunk-LKN52AAX.js → chunk-HNJC47JM.js} +1 -1
- package/dist/{chunk-IGWSCIES.js → chunk-ISLX4Z3L.js} +3 -2
- package/dist/{chunk-J5LKLH5Z.js → chunk-KFSVTJMR.js} +1 -1
- package/dist/{chunk-RWVNX2CP.js → chunk-MI3U2GAT.js} +1 -1
- package/dist/{chunk-4ODWTALP.js → chunk-N3F54RFW.js} +2 -2
- package/dist/{chunk-Q7HBETZW.js → chunk-O2WB6QZ6.js} +1 -1
- package/dist/{chunk-DWV5QAGZ.cjs → chunk-OEKSQ22R.cjs} +2997 -2710
- package/dist/{chunk-WSLPUUGZ.js → chunk-PTZB4LWS.js} +1 -1
- package/dist/{chunk-CPRXGMH2.js → chunk-QSNFMINQ.js} +1 -1
- package/dist/{chunk-YQ76DZYD.cjs → chunk-QUZ4T5AX.cjs} +2 -2
- package/dist/chunk-UTAJPBVT.js +29 -0
- package/dist/{chunk-WG55ZHJL.cjs → chunk-UW3MXOWV.cjs} +2 -2
- package/dist/{chunk-F6BDL4HD.js → chunk-VDBKZJV6.js} +1 -1
- package/dist/{chunk-J3LN5HOC.cjs → chunk-VFLCP3SA.cjs} +2 -2
- package/dist/{chunk-FM4ABZQ2.js → chunk-VT7NVLLU.js} +1 -1
- package/dist/{chunk-WDBPA4RQ.cjs → chunk-VXAKPZ3A.cjs} +2 -2
- package/dist/{chunk-WXU3KLBP.cjs → chunk-XOI5CY62.cjs} +2 -2
- package/dist/{chunk-NH7U3PTV.js → chunk-ZQ7PDXYO.js} +1 -1
- package/dist/{chunk-TNYZH6EG.js → chunk-ZYCPZLIG.js} +2982 -2700
- package/dist/config.d.cts +3 -5
- package/dist/config.d.ts +3 -5
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +3 -5
- package/dist/esbuild.d.ts +3 -5
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +3 -5
- package/dist/farm.d.ts +3 -5
- package/dist/farm.js +3 -3
- package/dist/index.cjs +54 -33
- package/dist/index.d.cts +191 -39
- package/dist/index.d.ts +191 -39
- package/dist/index.js +18 -17
- package/dist/lib/api-B6hfFxVS.d.ts +167 -0
- package/dist/lib/api-CD2QlMig.d.cts +167 -0
- package/dist/lib/build/esbuild.d.cts +2 -4
- package/dist/lib/build/esbuild.d.ts +2 -4
- package/dist/lib/build/index.d.cts +4 -5
- package/dist/lib/build/index.d.ts +4 -5
- package/dist/lib/build/rolldown.d.cts +2 -4
- package/dist/lib/build/rolldown.d.ts +2 -4
- package/dist/lib/build/rollup.d.cts +2 -4
- package/dist/lib/build/rollup.d.ts +2 -4
- package/dist/lib/build/rspack.d.cts +2 -4
- package/dist/lib/build/rspack.d.ts +2 -4
- package/dist/lib/build/tsup.d.cts +2 -4
- package/dist/lib/build/tsup.d.ts +2 -4
- package/dist/lib/build/unbuild.d.cts +4 -23
- package/dist/lib/build/unbuild.d.ts +4 -23
- package/dist/lib/build/vite.d.cts +2 -4
- package/dist/lib/build/vite.d.ts +2 -4
- package/dist/lib/build/webpack.d.cts +2 -4
- package/dist/lib/build/webpack.d.ts +2 -4
- package/dist/lib/chunk-32Q2PG5D.js +9 -0
- package/dist/lib/chunk-35FGUJFD.cjs +2 -0
- package/dist/lib/{chunk-LIN4KAV3.js → chunk-52VDUP5J.js} +5 -7
- package/dist/lib/chunk-B3EE3VHZ.cjs +127 -0
- package/dist/lib/{chunk-UWHGJ4JS.js → chunk-BLNW3ZQA.js} +483 -1776
- package/dist/lib/chunk-DX2VAXZB.cjs +11 -0
- package/dist/lib/{chunk-VGSV2BEL.cjs → chunk-EFYMNU53.cjs} +6 -12
- package/dist/lib/chunk-FBQIPNRV.cjs +146 -0
- package/dist/lib/chunk-FFT4PWRM.js +1 -0
- package/dist/lib/{chunk-L4NEN725.js → chunk-G7S5PIAC.js} +1 -1
- package/dist/lib/chunk-KFJCWNVG.js +120 -0
- package/dist/lib/chunk-M2U6XIQ2.js +144 -0
- package/dist/lib/chunk-MVIKYHBX.cjs +2 -0
- package/dist/lib/chunk-NYNHNTHT.js +1 -0
- package/dist/lib/{chunk-A5SB72VO.cjs → chunk-PYQADZVV.cjs} +493 -1779
- package/dist/lib/chunk-QP6WX3Q3.js +1190 -0
- package/dist/lib/chunk-S7LLEDQM.cjs +1218 -0
- package/dist/lib/chunk-UHGGYHSK.cjs +175 -0
- package/dist/lib/chunk-YNKFRPUY.js +168 -0
- package/dist/lib/{chunk-ULJVBW4L.cjs → chunk-ZBDVQVUK.cjs} +1 -1
- package/dist/lib/{config-BoGlIhnH.d.cts → config-DTSdCZsw.d.cts} +650 -633
- package/dist/lib/{config-CTej7RMP.d.ts → config-DeUaQYc_.d.ts} +650 -633
- package/dist/lib/config-file.d.cts +4 -5
- package/dist/lib/config-file.d.ts +4 -5
- package/dist/lib/contexts/api-context.cjs +18 -0
- package/dist/lib/contexts/api-context.d.cts +69 -0
- package/dist/lib/contexts/api-context.d.ts +69 -0
- package/dist/lib/contexts/api-context.js +9 -0
- package/dist/lib/contexts/context.cjs +15 -0
- package/dist/lib/contexts/context.d.cts +255 -0
- package/dist/lib/contexts/context.d.ts +255 -0
- package/dist/lib/contexts/context.js +6 -0
- package/dist/lib/contexts/environment-context.cjs +17 -0
- package/dist/lib/contexts/environment-context.d.cts +65 -0
- package/dist/lib/contexts/environment-context.d.ts +65 -0
- package/dist/lib/contexts/environment-context.js +8 -0
- package/dist/lib/contexts/index.cjs +31 -0
- package/dist/lib/contexts/index.d.cts +35 -0
- package/dist/lib/contexts/index.d.ts +35 -0
- package/dist/lib/contexts/index.js +10 -0
- package/dist/lib/contexts/plugin-context.cjs +11 -0
- package/dist/lib/contexts/plugin-context.d.cts +42 -0
- package/dist/lib/contexts/plugin-context.d.ts +42 -0
- package/dist/lib/contexts/plugin-context.js +2 -0
- package/dist/lib/entry.d.cts +2 -4
- package/dist/lib/entry.d.ts +2 -4
- package/dist/lib/index.cjs +96 -74
- package/dist/lib/index.d.cts +26 -23
- package/dist/lib/index.d.ts +26 -23
- package/dist/lib/index.js +18 -12
- package/dist/lib/internal-CpVMJCaU.d.ts +39 -0
- package/dist/lib/internal-ypnrUNZy.d.cts +39 -0
- package/dist/lib/logger.d.cts +4 -5
- package/dist/lib/logger.d.ts +4 -5
- package/dist/lib/typescript/compiler-host.cjs +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +5 -5
- package/dist/lib/typescript/compiler-host.d.ts +5 -5
- package/dist/lib/typescript/compiler-host.js +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +2 -4
- package/dist/lib/typescript/import-transformer.d.ts +2 -4
- package/dist/lib/typescript/index.cjs +29 -24
- package/dist/lib/typescript/index.d.cts +6 -6
- package/dist/lib/typescript/index.d.ts +6 -6
- package/dist/lib/typescript/index.js +3 -2
- package/dist/lib/typescript/isolated-decl.d.cts +2 -1
- package/dist/lib/typescript/isolated-decl.d.ts +2 -1
- package/dist/lib/typescript/program.d.cts +5 -5
- package/dist/lib/typescript/program.d.ts +5 -5
- package/dist/lib/typescript/ts-morph.cjs +11 -0
- package/dist/lib/{create-program.d.ts → typescript/ts-morph.d.cts} +3 -5
- package/dist/lib/{create-program.d.cts → typescript/ts-morph.d.ts} +3 -5
- package/dist/lib/typescript/ts-morph.js +2 -0
- package/dist/lib/unplugin/factory.cjs +8 -4
- package/dist/lib/unplugin/factory.d.cts +27 -10
- package/dist/lib/unplugin/factory.d.ts +27 -10
- package/dist/lib/unplugin/factory.js +7 -3
- package/dist/lib/unplugin/helpers.cjs +11 -0
- package/dist/lib/unplugin/helpers.d.cts +128 -0
- package/dist/lib/unplugin/helpers.d.ts +128 -0
- package/dist/lib/unplugin/helpers.js +2 -0
- package/dist/lib/unplugin/index.cjs +12 -7
- package/dist/lib/unplugin/index.d.cts +6 -8
- package/dist/lib/unplugin/index.d.ts +6 -8
- package/dist/lib/unplugin/index.js +9 -4
- package/dist/lib/unplugin/plugin.cjs +4 -3
- package/dist/lib/unplugin/plugin.d.cts +4 -5
- package/dist/lib/unplugin/plugin.d.ts +4 -5
- package/dist/lib/unplugin/plugin.js +3 -2
- package/dist/lib/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +5 -5
- package/dist/lib/unplugin/resolve-id.d.ts +5 -5
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/bundle.d.cts +2 -4
- package/dist/lib/utilities/bundle.d.ts +2 -4
- package/dist/lib/utilities/cache.d.cts +2 -4
- package/dist/lib/utilities/cache.d.ts +2 -4
- package/dist/lib/utilities/file-header.d.cts +4 -5
- package/dist/lib/utilities/file-header.d.ts +4 -5
- package/dist/lib/utilities/index.cjs +18 -18
- package/dist/lib/utilities/index.d.cts +5 -7
- package/dist/lib/utilities/index.d.ts +5 -7
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/meta.d.cts +4 -5
- package/dist/lib/utilities/meta.d.ts +4 -5
- package/dist/lib/utilities/resolve-path.d.cts +2 -4
- package/dist/lib/utilities/resolve-path.d.ts +2 -4
- package/dist/lib/utilities/resolve.d.cts +2 -4
- package/dist/lib/utilities/resolve.d.ts +2 -4
- package/dist/lib/utilities/source-file.d.cts +2 -4
- package/dist/lib/utilities/source-file.d.ts +2 -4
- package/dist/lib/utilities/source-map.d.cts +2 -4
- package/dist/lib/utilities/source-map.d.ts +2 -4
- package/dist/lib/utilities/worker.d.cts +4 -5
- package/dist/lib/utilities/worker.d.ts +4 -5
- package/dist/lib/utilities/write-file.d.cts +2 -4
- package/dist/lib/utilities/write-file.d.ts +2 -4
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/plugin-utils/{context-D1I2JQgs.d.cts → context-DRFZE3XI.d.cts} +535 -518
- package/dist/plugin-utils/{context-D1I2JQgs.d.ts → context-DRFZE3XI.d.ts} +535 -518
- package/dist/plugin-utils/context-helpers.d.cts +2 -4
- package/dist/plugin-utils/context-helpers.d.ts +2 -4
- package/dist/plugin-utils/enforce.d.cts +2 -4
- package/dist/plugin-utils/enforce.d.ts +2 -4
- package/dist/plugin-utils/extend.d.cts +2 -4
- package/dist/plugin-utils/extend.d.ts +2 -4
- package/dist/plugin-utils/get-config-path.d.cts +2 -4
- package/dist/plugin-utils/get-config-path.d.ts +2 -4
- package/dist/plugin-utils/helpers.d.cts +2 -4
- package/dist/plugin-utils/helpers.d.ts +2 -4
- package/dist/plugin-utils/index.d.cts +3 -5
- package/dist/plugin-utils/index.d.ts +3 -5
- package/dist/plugin-utils/merge.d.cts +4 -5
- package/dist/plugin-utils/merge.d.ts +4 -5
- package/dist/plugin-utils/paths.d.cts +2 -4
- package/dist/plugin-utils/paths.d.ts +2 -4
- package/dist/{resolved-DYLxPDut.d.cts → resolved-C00CJgsk.d.cts} +128 -9
- package/dist/{resolved-D1ySEdUv.d.ts → resolved-DKFZ11S7.d.ts} +128 -9
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +3 -5
- package/dist/rolldown.d.ts +3 -5
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +3 -5
- package/dist/rollup.d.ts +3 -5
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +3 -5
- package/dist/rspack.d.ts +3 -5
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- package/dist/types/api.cjs +4 -0
- package/dist/types/api.d.cts +36 -0
- package/dist/types/api.d.ts +36 -0
- package/dist/types/api.js +1 -0
- package/dist/types/babel.d.cts +3 -5
- package/dist/types/babel.d.ts +3 -5
- package/dist/types/build.d.cts +26 -1
- package/dist/types/build.d.ts +26 -1
- package/dist/types/commands.d.cts +3 -5
- package/dist/types/commands.d.ts +3 -5
- package/dist/types/config.d.cts +3 -5
- package/dist/types/config.d.ts +3 -5
- package/dist/types/context.d.cts +3 -5
- package/dist/types/context.d.ts +3 -5
- package/dist/types/{vfs.cjs → fs.cjs} +3 -3
- package/dist/types/{vfs.d.cts → fs.d.cts} +54 -35
- package/dist/types/{vfs.d.ts → fs.d.ts} +54 -35
- package/dist/types/fs.js +2 -0
- package/dist/types/hooks.d.cts +3 -5
- package/dist/types/hooks.d.ts +3 -5
- package/dist/types/index.cjs +9 -8
- package/dist/types/index.d.cts +8 -9
- package/dist/types/index.d.ts +8 -9
- package/dist/types/index.js +3 -2
- package/dist/types/internal.d.cts +46 -9
- package/dist/types/internal.d.ts +46 -9
- package/dist/types/plugin.d.cts +3 -5
- package/dist/types/plugin.d.ts +3 -5
- package/dist/types/resolved.d.cts +3 -5
- package/dist/types/resolved.d.ts +3 -5
- package/dist/types/tsconfig.d.cts +8 -1
- package/dist/types/tsconfig.d.ts +8 -1
- package/dist/types/typedoc.d.cts +3 -1
- package/dist/types/typedoc.d.ts +3 -1
- package/dist/types/unplugin.d.cts +22 -11
- package/dist/types/unplugin.d.ts +22 -11
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +12 -14
- package/dist/unloader.d.ts +12 -14
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +6 -9
- package/dist/unplugin.d.ts +6 -9
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +3 -5
- package/dist/vite.d.ts +3 -5
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +3 -5
- package/dist/webpack.d.ts +3 -5
- package/dist/webpack.js +4 -4
- package/package.json +39 -11
- package/schemas/fs.capnp +73 -15
- package/dist/chunk-RODEAGIJ.cjs +0 -32
- package/dist/chunk-SKLSRHBU.js +0 -29
- package/dist/hooks-D2UGCryi.d.ts +0 -28
- package/dist/hooks-DJG3B-Hw.d.cts +0 -28
- package/dist/lib/create-program.cjs +0 -11
- package/dist/lib/create-program.js +0 -2
- package/dist/lib/hooks-CDLPWf7j.d.cts +0 -28
- package/dist/lib/hooks-Cn-IqwYp.d.ts +0 -28
- package/dist/types/vfs.js +0 -2
- /package/dist/{chunk-KIKTWMI3.cjs → chunk-2NCILNCH.cjs} +0 -0
- /package/dist/{chunk-XVLT2RQ2.js → chunk-BLNT5INX.js} +0 -0
- /package/dist/{lib/chunk-RJ4277VZ.cjs → chunk-GRU7B3QM.cjs} +0 -0
- /package/dist/{lib/chunk-ZBLDAREE.js → chunk-T2P533I5.js} +0 -0
- /package/dist/lib/{chunk-CGYAL3S2.cjs → chunk-4EIXDLFP.cjs} +0 -0
- /package/dist/lib/{chunk-CXRSMYEX.js → chunk-RD5AUWXN.js} +0 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { PackageJson } from '@stryke/types/package-json';
|
|
3
|
+
import { Range } from 'semver';
|
|
4
|
+
import { UnpluginMessage } from 'unplugin';
|
|
5
|
+
import { m as ResolvedConfig, C as Context, I as InitialUserConfig, u as MetaInfo, v as Resolver, g as ResolvedEntryTypeDefinition, V as VirtualFileSystemInterface, L as LogFn, e as WorkspaceConfig, w as VirtualFile, x as PowerlinesWriteFileOptions, y as InitContextOptions } from '../config-DeUaQYc_.js';
|
|
6
|
+
import { a as UNSAFE_ContextInternal } from '../internal-CpVMJCaU.js';
|
|
7
|
+
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.js';
|
|
8
|
+
import '@storm-software/build-tools/types';
|
|
9
|
+
import '@storm-software/config-tools/types';
|
|
10
|
+
import '@storm-software/config/types';
|
|
11
|
+
import '@stryke/types/base';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'c12';
|
|
15
|
+
import 'vite';
|
|
16
|
+
import '@farmfe/core';
|
|
17
|
+
import '@rspack/core';
|
|
18
|
+
import '@storm-software/tsup/types';
|
|
19
|
+
import '@storm-software/unbuild/types';
|
|
20
|
+
import 'esbuild';
|
|
21
|
+
import 'rolldown';
|
|
22
|
+
import 'rollup';
|
|
23
|
+
import 'webpack';
|
|
24
|
+
import 'jest-worker';
|
|
25
|
+
import 'jiti';
|
|
26
|
+
import 'magic-string';
|
|
27
|
+
import 'node:fs';
|
|
28
|
+
import '@stryke/types/array';
|
|
29
|
+
import '../api-B6hfFxVS.js';
|
|
30
|
+
import '@stryke/types/tsconfig';
|
|
31
|
+
import 'typescript';
|
|
32
|
+
|
|
33
|
+
declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements Context<TResolvedConfig> {
|
|
34
|
+
#private;
|
|
35
|
+
/**
|
|
36
|
+
* Create a new Storm context from the workspace root and user config.
|
|
37
|
+
*
|
|
38
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
39
|
+
* @param config - The user configuration options.
|
|
40
|
+
* @returns A promise that resolves to the new context.
|
|
41
|
+
*/
|
|
42
|
+
static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<Context>;
|
|
43
|
+
/**
|
|
44
|
+
* An object containing the dependencies that should be installed for the project
|
|
45
|
+
*/
|
|
46
|
+
dependencies: Record<string, string | Range>;
|
|
47
|
+
/**
|
|
48
|
+
* An object containing the development dependencies that should be installed for the project
|
|
49
|
+
*/
|
|
50
|
+
devDependencies: Record<string, string | Range>;
|
|
51
|
+
/**
|
|
52
|
+
* The persisted meta information about the current build
|
|
53
|
+
*/
|
|
54
|
+
persistedMeta: MetaInfo | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The path to the Powerlines package
|
|
57
|
+
*/
|
|
58
|
+
powerlinesPath: string;
|
|
59
|
+
/**
|
|
60
|
+
* The parsed `package.json` file for the project
|
|
61
|
+
*/
|
|
62
|
+
packageJson: PackageJson;
|
|
63
|
+
/**
|
|
64
|
+
* The parsed `project.json` file for the project
|
|
65
|
+
*/
|
|
66
|
+
projectJson: Record<string, any> | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The module resolver for the project
|
|
69
|
+
*/
|
|
70
|
+
resolver: Resolver;
|
|
71
|
+
/**
|
|
72
|
+
* Internal context fields and methods
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
get $$internal(): UNSAFE_ContextInternal<TResolvedConfig>;
|
|
77
|
+
/**
|
|
78
|
+
* The resolved entry type definitions for the project
|
|
79
|
+
*/
|
|
80
|
+
get entry(): ResolvedEntryTypeDefinition[];
|
|
81
|
+
/**
|
|
82
|
+
* The TypeScript configuration parsed from the tsconfig file
|
|
83
|
+
*/
|
|
84
|
+
get tsconfig(): ParsedTypeScriptConfig;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the TypeScript configuration parsed from the tsconfig file
|
|
87
|
+
*/
|
|
88
|
+
set tsconfig(value: ParsedTypeScriptConfig);
|
|
89
|
+
/**
|
|
90
|
+
* The virtual file system interface for the project
|
|
91
|
+
*/
|
|
92
|
+
get fs(): VirtualFileSystemInterface;
|
|
93
|
+
/**
|
|
94
|
+
* Get the checksum of the project's current state
|
|
95
|
+
*/
|
|
96
|
+
get checksum(): string | null;
|
|
97
|
+
/**
|
|
98
|
+
* The meta information about the current build
|
|
99
|
+
*/
|
|
100
|
+
get meta(): MetaInfo;
|
|
101
|
+
/**
|
|
102
|
+
* The resolved configuration options
|
|
103
|
+
*/
|
|
104
|
+
get config(): TResolvedConfig;
|
|
105
|
+
/**
|
|
106
|
+
* The logger function
|
|
107
|
+
*/
|
|
108
|
+
get log(): LogFn;
|
|
109
|
+
/**
|
|
110
|
+
* The workspace configuration
|
|
111
|
+
*/
|
|
112
|
+
get workspaceConfig(): WorkspaceConfig;
|
|
113
|
+
/**
|
|
114
|
+
* The environment paths for the project
|
|
115
|
+
*/
|
|
116
|
+
get envPaths(): EnvPaths;
|
|
117
|
+
/**
|
|
118
|
+
* Get the path to the artifacts directory for the project
|
|
119
|
+
*/
|
|
120
|
+
get artifactsPath(): string;
|
|
121
|
+
/**
|
|
122
|
+
* Get the path to the builtin modules used by the project
|
|
123
|
+
*/
|
|
124
|
+
get builtinsPath(): string;
|
|
125
|
+
/**
|
|
126
|
+
* Get the path to the entry directory for the project
|
|
127
|
+
*/
|
|
128
|
+
get entryPath(): string;
|
|
129
|
+
/**
|
|
130
|
+
* Get the path to the data directory for the project
|
|
131
|
+
*/
|
|
132
|
+
get dataPath(): string;
|
|
133
|
+
/**
|
|
134
|
+
* Get the path to the cache directory for the project
|
|
135
|
+
*/
|
|
136
|
+
get cachePath(): string;
|
|
137
|
+
/**
|
|
138
|
+
* Get the path to the generated declaration file for the project
|
|
139
|
+
*/
|
|
140
|
+
get dtsPath(): string;
|
|
141
|
+
/**
|
|
142
|
+
* Get the project root relative to the workspace root
|
|
143
|
+
*/
|
|
144
|
+
get relativeToWorkspaceRoot(): any;
|
|
145
|
+
/**
|
|
146
|
+
* The builtin module id that exist in the Powerlines virtual file system
|
|
147
|
+
*/
|
|
148
|
+
get builtins(): string[];
|
|
149
|
+
/**
|
|
150
|
+
* Get the builtin virtual files that exist in the Powerlines virtual file system
|
|
151
|
+
*/
|
|
152
|
+
getBuiltins(): Promise<VirtualFile[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
155
|
+
*
|
|
156
|
+
* @param code - The source code of the entry file
|
|
157
|
+
* @param path - A path to write the entry file to
|
|
158
|
+
* @param options - Optional write file options
|
|
159
|
+
*/
|
|
160
|
+
emitEntry(code: string, path: string, options?: PowerlinesWriteFileOptions): Promise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
163
|
+
*
|
|
164
|
+
* @param code - The source code of the builtin file
|
|
165
|
+
* @param id - The unique identifier of the builtin file
|
|
166
|
+
* @param path - An optional path to write the builtin file to
|
|
167
|
+
* @param options - Optional write file options
|
|
168
|
+
*/
|
|
169
|
+
emitBuiltin(code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Update the context using a new user configuration options
|
|
172
|
+
*
|
|
173
|
+
* @param userConfig - The new user configuration options.
|
|
174
|
+
*/
|
|
175
|
+
withUserConfig(userConfig: InitialUserConfig<TResolvedConfig["userConfig"]>, options?: InitContextOptions): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Update the context using a new inline configuration options
|
|
178
|
+
*
|
|
179
|
+
* @param inlineConfig - The new inline configuration options.
|
|
180
|
+
*/
|
|
181
|
+
withInlineConfig(inlineConfig: TResolvedConfig["inlineConfig"], options?: InitContextOptions): Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
* A logging function for fatal messages
|
|
184
|
+
*
|
|
185
|
+
* @param message - The message to log.
|
|
186
|
+
*/
|
|
187
|
+
fatal(message: string | UnpluginMessage): void;
|
|
188
|
+
/**
|
|
189
|
+
* A logging function for error messages
|
|
190
|
+
*
|
|
191
|
+
* @param message - The message to log.
|
|
192
|
+
*/
|
|
193
|
+
error(message: string | UnpluginMessage): void;
|
|
194
|
+
/**
|
|
195
|
+
* A logging function for warning messages
|
|
196
|
+
*
|
|
197
|
+
* @param message - The message to log.
|
|
198
|
+
*/
|
|
199
|
+
warn(message: string | UnpluginMessage): void;
|
|
200
|
+
/**
|
|
201
|
+
* A logging function for informational messages
|
|
202
|
+
*
|
|
203
|
+
* @param message - The message to log.
|
|
204
|
+
*/
|
|
205
|
+
info(message: string | UnpluginMessage): void;
|
|
206
|
+
/**
|
|
207
|
+
* A logging function for debug messages
|
|
208
|
+
*
|
|
209
|
+
* @param message - The message to log.
|
|
210
|
+
*/
|
|
211
|
+
debug(message: string | UnpluginMessage): void;
|
|
212
|
+
/**
|
|
213
|
+
* A logging function for trace messages
|
|
214
|
+
*
|
|
215
|
+
* @param message - The message to log.
|
|
216
|
+
*/
|
|
217
|
+
trace(message: string | UnpluginMessage): void;
|
|
218
|
+
/**
|
|
219
|
+
* Create a new logger instance
|
|
220
|
+
*
|
|
221
|
+
* @param name - The name to use for the logger instance
|
|
222
|
+
* @returns A logger function
|
|
223
|
+
*/
|
|
224
|
+
createLog(name?: string | null): LogFn;
|
|
225
|
+
/**
|
|
226
|
+
* Extend the current logger instance with a new name
|
|
227
|
+
*
|
|
228
|
+
* @param name - The name to use for the extended logger instance
|
|
229
|
+
* @returns A logger function
|
|
230
|
+
*/
|
|
231
|
+
extendLog(name: string): LogFn;
|
|
232
|
+
/**
|
|
233
|
+
* Creates a new StormContext instance.
|
|
234
|
+
*
|
|
235
|
+
* @param workspaceConfig - The workspace configuration.
|
|
236
|
+
*/
|
|
237
|
+
protected constructor(workspaceConfig: WorkspaceConfig);
|
|
238
|
+
/**
|
|
239
|
+
* The resolved configuration for this context
|
|
240
|
+
*/
|
|
241
|
+
protected resolvedConfig: TResolvedConfig;
|
|
242
|
+
/**
|
|
243
|
+
* A logger function specific to this context
|
|
244
|
+
*/
|
|
245
|
+
protected logFn: LogFn;
|
|
246
|
+
/**
|
|
247
|
+
* Initialize the context with the provided configuration options
|
|
248
|
+
*
|
|
249
|
+
* @param config - The partial user configuration to use for initialization.
|
|
250
|
+
*/
|
|
251
|
+
protected init(config?: Partial<TResolvedConfig["userConfig"]>, options?: InitContextOptions): Promise<void>;
|
|
252
|
+
protected mergeUserConfig(from?: Partial<TResolvedConfig["userConfig"]>, into?: Partial<TResolvedConfig["userConfig"]>): void;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { PowerlinesContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkFBQIPNRV_cjs = require('../chunk-FBQIPNRV.cjs');
|
|
4
|
+
require('../chunk-B3EE3VHZ.cjs');
|
|
5
|
+
require('../chunk-PYQADZVV.cjs');
|
|
6
|
+
require('../chunk-7XHBIYIN.cjs');
|
|
7
|
+
require('../chunk-XW5TELHB.cjs');
|
|
8
|
+
require('../chunk-JA4HSQRN.cjs');
|
|
9
|
+
require('../chunk-ISBHXSDH.cjs');
|
|
10
|
+
require('../chunk-USNT2KNT.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkFBQIPNRV_cjs.PowerlinesEnvironmentContext; }
|
|
17
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { m as ResolvedConfig, n as EnvironmentContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig, r as EnvironmentContextPlugin, H as HooksList, p as PluginContext, o as Plugin, s as HookKeys, S as SelectHooksOptions, t as InferHookHandler } from '../config-DTSdCZsw.cjs';
|
|
2
|
+
import { PowerlinesContext } from './context.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'c12';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@farmfe/core';
|
|
12
|
+
import '@rspack/core';
|
|
13
|
+
import '@storm-software/tsup/types';
|
|
14
|
+
import '@storm-software/unbuild/types';
|
|
15
|
+
import 'esbuild';
|
|
16
|
+
import 'rolldown';
|
|
17
|
+
import 'rollup';
|
|
18
|
+
import 'webpack';
|
|
19
|
+
import '@stryke/env/get-env-paths';
|
|
20
|
+
import '@stryke/types/package-json';
|
|
21
|
+
import 'jest-worker';
|
|
22
|
+
import 'jiti';
|
|
23
|
+
import 'magic-string';
|
|
24
|
+
import 'semver';
|
|
25
|
+
import 'unplugin';
|
|
26
|
+
import 'node:fs';
|
|
27
|
+
import '@stryke/types/array';
|
|
28
|
+
import '../tsconfig-Bz-CiFqD.cjs';
|
|
29
|
+
import '@stryke/types/tsconfig';
|
|
30
|
+
import 'typescript';
|
|
31
|
+
import '../internal-ypnrUNZy.cjs';
|
|
32
|
+
import '../api-CD2QlMig.cjs';
|
|
33
|
+
|
|
34
|
+
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
35
|
+
#private;
|
|
36
|
+
/**
|
|
37
|
+
* Create a new Storm context from the workspace root and user config.
|
|
38
|
+
*
|
|
39
|
+
* @param workspaceConfig - The root directory of the workspace.
|
|
40
|
+
* @param config - The user configuration options.
|
|
41
|
+
* @returns A promise that resolves to the new context.
|
|
42
|
+
*/
|
|
43
|
+
static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceConfig: WorkspaceConfig, config: TResolvedConfig): Promise<PowerlinesEnvironmentContext<TResolvedConfig>>;
|
|
44
|
+
/**
|
|
45
|
+
* The resolved environment configuration
|
|
46
|
+
*/
|
|
47
|
+
environment: EnvironmentResolvedConfig;
|
|
48
|
+
/**
|
|
49
|
+
* The list of plugins applied to this environment
|
|
50
|
+
*/
|
|
51
|
+
plugins: EnvironmentContextPlugin<TResolvedConfig>[];
|
|
52
|
+
/**
|
|
53
|
+
* The resolved configuration options
|
|
54
|
+
*/
|
|
55
|
+
get config(): TResolvedConfig;
|
|
56
|
+
get hooks(): HooksList<PluginContext<TResolvedConfig>>;
|
|
57
|
+
addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the hook handlers for a specific hook name
|
|
60
|
+
*/
|
|
61
|
+
selectHooks<TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options?: SelectHooksOptions): InferHookHandler<PluginContext<TResolvedConfig>, TKey>[];
|
|
62
|
+
protected constructor(config: TResolvedConfig, workspaceConfig: WorkspaceConfig);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { PowerlinesEnvironmentContext };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { m as ResolvedConfig, n as EnvironmentContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig, r as EnvironmentContextPlugin, H as HooksList, p as PluginContext, o as Plugin, s as HookKeys, S as SelectHooksOptions, t as InferHookHandler } from '../config-DeUaQYc_.js';
|
|
2
|
+
import { PowerlinesContext } from './context.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'c12';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@farmfe/core';
|
|
12
|
+
import '@rspack/core';
|
|
13
|
+
import '@storm-software/tsup/types';
|
|
14
|
+
import '@storm-software/unbuild/types';
|
|
15
|
+
import 'esbuild';
|
|
16
|
+
import 'rolldown';
|
|
17
|
+
import 'rollup';
|
|
18
|
+
import 'webpack';
|
|
19
|
+
import '@stryke/env/get-env-paths';
|
|
20
|
+
import '@stryke/types/package-json';
|
|
21
|
+
import 'jest-worker';
|
|
22
|
+
import 'jiti';
|
|
23
|
+
import 'magic-string';
|
|
24
|
+
import 'semver';
|
|
25
|
+
import 'unplugin';
|
|
26
|
+
import 'node:fs';
|
|
27
|
+
import '@stryke/types/array';
|
|
28
|
+
import '../tsconfig-Bz-CiFqD.js';
|
|
29
|
+
import '@stryke/types/tsconfig';
|
|
30
|
+
import 'typescript';
|
|
31
|
+
import '../internal-CpVMJCaU.js';
|
|
32
|
+
import '../api-B6hfFxVS.js';
|
|
33
|
+
|
|
34
|
+
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
35
|
+
#private;
|
|
36
|
+
/**
|
|
37
|
+
* Create a new Storm context from the workspace root and user config.
|
|
38
|
+
*
|
|
39
|
+
* @param workspaceConfig - The root directory of the workspace.
|
|
40
|
+
* @param config - The user configuration options.
|
|
41
|
+
* @returns A promise that resolves to the new context.
|
|
42
|
+
*/
|
|
43
|
+
static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceConfig: WorkspaceConfig, config: TResolvedConfig): Promise<PowerlinesEnvironmentContext<TResolvedConfig>>;
|
|
44
|
+
/**
|
|
45
|
+
* The resolved environment configuration
|
|
46
|
+
*/
|
|
47
|
+
environment: EnvironmentResolvedConfig;
|
|
48
|
+
/**
|
|
49
|
+
* The list of plugins applied to this environment
|
|
50
|
+
*/
|
|
51
|
+
plugins: EnvironmentContextPlugin<TResolvedConfig>[];
|
|
52
|
+
/**
|
|
53
|
+
* The resolved configuration options
|
|
54
|
+
*/
|
|
55
|
+
get config(): TResolvedConfig;
|
|
56
|
+
get hooks(): HooksList<PluginContext<TResolvedConfig>>;
|
|
57
|
+
addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the hook handlers for a specific hook name
|
|
60
|
+
*/
|
|
61
|
+
selectHooks<TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options?: SelectHooksOptions): InferHookHandler<PluginContext<TResolvedConfig>, TKey>[];
|
|
62
|
+
protected constructor(config: TResolvedConfig, workspaceConfig: WorkspaceConfig);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { PowerlinesEnvironmentContext };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { PowerlinesEnvironmentContext } from '../chunk-M2U6XIQ2.js';
|
|
2
|
+
import '../chunk-KFJCWNVG.js';
|
|
3
|
+
import '../chunk-BLNW3ZQA.js';
|
|
4
|
+
import '../chunk-YH5GOJS3.js';
|
|
5
|
+
import '../chunk-ZPIKFR7Z.js';
|
|
6
|
+
import '../chunk-ENRLU4UR.js';
|
|
7
|
+
import '../chunk-XZFEHPYE.js';
|
|
8
|
+
import '../chunk-SHUYVCID.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../chunk-35FGUJFD.cjs');
|
|
4
|
+
var chunkUHGGYHSK_cjs = require('../chunk-UHGGYHSK.cjs');
|
|
5
|
+
var chunkFBQIPNRV_cjs = require('../chunk-FBQIPNRV.cjs');
|
|
6
|
+
var chunkB3EE3VHZ_cjs = require('../chunk-B3EE3VHZ.cjs');
|
|
7
|
+
var chunkPYQADZVV_cjs = require('../chunk-PYQADZVV.cjs');
|
|
8
|
+
require('../chunk-7XHBIYIN.cjs');
|
|
9
|
+
require('../chunk-XW5TELHB.cjs');
|
|
10
|
+
require('../chunk-JA4HSQRN.cjs');
|
|
11
|
+
require('../chunk-ISBHXSDH.cjs');
|
|
12
|
+
require('../chunk-USNT2KNT.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkUHGGYHSK_cjs.PowerlinesAPIContext; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkFBQIPNRV_cjs.PowerlinesEnvironmentContext; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "createPluginContext", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkB3EE3VHZ_cjs.createPluginContext; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "PowerlinesContext", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkPYQADZVV_cjs.PowerlinesContext; }
|
|
31
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { PowerlinesAPIContext } from './api-context.cjs';
|
|
2
|
+
export { PowerlinesContext } from './context.cjs';
|
|
3
|
+
export { PowerlinesEnvironmentContext } from './environment-context.cjs';
|
|
4
|
+
export { createPluginContext } from './plugin-context.cjs';
|
|
5
|
+
import '../config-DTSdCZsw.cjs';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'c12';
|
|
13
|
+
import 'vite';
|
|
14
|
+
import '@farmfe/core';
|
|
15
|
+
import '@rspack/core';
|
|
16
|
+
import '@storm-software/tsup/types';
|
|
17
|
+
import '@storm-software/unbuild/types';
|
|
18
|
+
import 'esbuild';
|
|
19
|
+
import 'rolldown';
|
|
20
|
+
import 'rollup';
|
|
21
|
+
import 'webpack';
|
|
22
|
+
import '@stryke/env/get-env-paths';
|
|
23
|
+
import '@stryke/types/package-json';
|
|
24
|
+
import 'jest-worker';
|
|
25
|
+
import 'jiti';
|
|
26
|
+
import 'magic-string';
|
|
27
|
+
import 'semver';
|
|
28
|
+
import 'unplugin';
|
|
29
|
+
import 'node:fs';
|
|
30
|
+
import '@stryke/types/array';
|
|
31
|
+
import '../tsconfig-Bz-CiFqD.cjs';
|
|
32
|
+
import '@stryke/types/tsconfig';
|
|
33
|
+
import 'typescript';
|
|
34
|
+
import '../internal-ypnrUNZy.cjs';
|
|
35
|
+
import '../api-CD2QlMig.cjs';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { PowerlinesAPIContext } from './api-context.js';
|
|
2
|
+
export { PowerlinesContext } from './context.js';
|
|
3
|
+
export { PowerlinesEnvironmentContext } from './environment-context.js';
|
|
4
|
+
export { createPluginContext } from './plugin-context.js';
|
|
5
|
+
import '../config-DeUaQYc_.js';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'c12';
|
|
13
|
+
import 'vite';
|
|
14
|
+
import '@farmfe/core';
|
|
15
|
+
import '@rspack/core';
|
|
16
|
+
import '@storm-software/tsup/types';
|
|
17
|
+
import '@storm-software/unbuild/types';
|
|
18
|
+
import 'esbuild';
|
|
19
|
+
import 'rolldown';
|
|
20
|
+
import 'rollup';
|
|
21
|
+
import 'webpack';
|
|
22
|
+
import '@stryke/env/get-env-paths';
|
|
23
|
+
import '@stryke/types/package-json';
|
|
24
|
+
import 'jest-worker';
|
|
25
|
+
import 'jiti';
|
|
26
|
+
import 'magic-string';
|
|
27
|
+
import 'semver';
|
|
28
|
+
import 'unplugin';
|
|
29
|
+
import 'node:fs';
|
|
30
|
+
import '@stryke/types/array';
|
|
31
|
+
import '../tsconfig-Bz-CiFqD.js';
|
|
32
|
+
import '@stryke/types/tsconfig';
|
|
33
|
+
import 'typescript';
|
|
34
|
+
import '../internal-CpVMJCaU.js';
|
|
35
|
+
import '../api-B6hfFxVS.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../chunk-NYNHNTHT.js';
|
|
2
|
+
export { PowerlinesAPIContext } from '../chunk-YNKFRPUY.js';
|
|
3
|
+
export { PowerlinesEnvironmentContext } from '../chunk-M2U6XIQ2.js';
|
|
4
|
+
export { createPluginContext } from '../chunk-KFJCWNVG.js';
|
|
5
|
+
export { PowerlinesContext } from '../chunk-BLNW3ZQA.js';
|
|
6
|
+
import '../chunk-YH5GOJS3.js';
|
|
7
|
+
import '../chunk-ZPIKFR7Z.js';
|
|
8
|
+
import '../chunk-ENRLU4UR.js';
|
|
9
|
+
import '../chunk-XZFEHPYE.js';
|
|
10
|
+
import '../chunk-SHUYVCID.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkB3EE3VHZ_cjs = require('../chunk-B3EE3VHZ.cjs');
|
|
4
|
+
require('../chunk-USNT2KNT.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "createPluginContext", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkB3EE3VHZ_cjs.createPluginContext; }
|
|
11
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { m as ResolvedConfig, o as Plugin, p as PluginContext } from '../config-DTSdCZsw.cjs';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-ypnrUNZy.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'c12';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@farmfe/core';
|
|
12
|
+
import '@rspack/core';
|
|
13
|
+
import '@storm-software/tsup/types';
|
|
14
|
+
import '@storm-software/unbuild/types';
|
|
15
|
+
import 'esbuild';
|
|
16
|
+
import 'rolldown';
|
|
17
|
+
import 'rollup';
|
|
18
|
+
import 'webpack';
|
|
19
|
+
import '@stryke/env/get-env-paths';
|
|
20
|
+
import '@stryke/types/package-json';
|
|
21
|
+
import 'jest-worker';
|
|
22
|
+
import 'jiti';
|
|
23
|
+
import 'magic-string';
|
|
24
|
+
import 'semver';
|
|
25
|
+
import 'unplugin';
|
|
26
|
+
import 'node:fs';
|
|
27
|
+
import '@stryke/types/array';
|
|
28
|
+
import '../tsconfig-Bz-CiFqD.cjs';
|
|
29
|
+
import '@stryke/types/tsconfig';
|
|
30
|
+
import 'typescript';
|
|
31
|
+
import '../api-CD2QlMig.cjs';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a Proxy-based PluginContext
|
|
35
|
+
*
|
|
36
|
+
* @param plugin - The plugin instance
|
|
37
|
+
* @param environment - The environment context
|
|
38
|
+
* @returns The proxied plugin context
|
|
39
|
+
*/
|
|
40
|
+
declare function createPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(plugin: Plugin<PluginContext<TResolvedConfig>>, environment: UNSAFE_EnvironmentContext<TResolvedConfig>): UNSAFE_PluginContext<TResolvedConfig>;
|
|
41
|
+
|
|
42
|
+
export { createPluginContext };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { m as ResolvedConfig, o as Plugin, p as PluginContext } from '../config-DeUaQYc_.js';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-CpVMJCaU.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'c12';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@farmfe/core';
|
|
12
|
+
import '@rspack/core';
|
|
13
|
+
import '@storm-software/tsup/types';
|
|
14
|
+
import '@storm-software/unbuild/types';
|
|
15
|
+
import 'esbuild';
|
|
16
|
+
import 'rolldown';
|
|
17
|
+
import 'rollup';
|
|
18
|
+
import 'webpack';
|
|
19
|
+
import '@stryke/env/get-env-paths';
|
|
20
|
+
import '@stryke/types/package-json';
|
|
21
|
+
import 'jest-worker';
|
|
22
|
+
import 'jiti';
|
|
23
|
+
import 'magic-string';
|
|
24
|
+
import 'semver';
|
|
25
|
+
import 'unplugin';
|
|
26
|
+
import 'node:fs';
|
|
27
|
+
import '@stryke/types/array';
|
|
28
|
+
import '../tsconfig-Bz-CiFqD.js';
|
|
29
|
+
import '@stryke/types/tsconfig';
|
|
30
|
+
import 'typescript';
|
|
31
|
+
import '../api-B6hfFxVS.js';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a Proxy-based PluginContext
|
|
35
|
+
*
|
|
36
|
+
* @param plugin - The plugin instance
|
|
37
|
+
* @param environment - The environment context
|
|
38
|
+
* @returns The proxied plugin context
|
|
39
|
+
*/
|
|
40
|
+
declare function createPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(plugin: Plugin<PluginContext<TResolvedConfig>>, environment: UNSAFE_EnvironmentContext<TResolvedConfig>): UNSAFE_PluginContext<TResolvedConfig>;
|
|
41
|
+
|
|
42
|
+
export { createPluginContext };
|
package/dist/lib/entry.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
-
import { C as Context, g as ResolvedEntryTypeDefinition } from './config-
|
|
2
|
+
import { C as Context, g as ResolvedEntryTypeDefinition } from './config-DTSdCZsw.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -20,15 +20,13 @@ import '@stryke/types/package-json';
|
|
|
20
20
|
import 'jest-worker';
|
|
21
21
|
import 'jiti';
|
|
22
22
|
import 'magic-string';
|
|
23
|
-
import 'oxc-parser';
|
|
24
23
|
import 'semver';
|
|
25
24
|
import 'unplugin';
|
|
25
|
+
import 'node:fs';
|
|
26
26
|
import '@stryke/types/array';
|
|
27
27
|
import './tsconfig-Bz-CiFqD.cjs';
|
|
28
28
|
import '@stryke/types/tsconfig';
|
|
29
29
|
import 'typescript';
|
|
30
|
-
import '@stryke/json/types';
|
|
31
|
-
import 'node:fs';
|
|
32
30
|
|
|
33
31
|
declare function resolveEntryInputFile(context: Context, typeDefinition: TypeDefinition): string;
|
|
34
32
|
declare function resolveEntryInput(context: Context, typeDefinition: TypeDefinition): TypeDefinition;
|