powerlines 0.23.3 → 0.23.5
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/babel-types.d.ts +292 -0
- package/dist/{chunk-CPRXGMH2.js → chunk-33BDG6M5.js} +1 -1
- package/dist/{chunk-KFRKOIP3.js → chunk-3HOOIAF4.js} +1 -1
- package/dist/{chunk-JZAQW55G.cjs → chunk-4OAW547A.cjs} +2 -2
- package/dist/{chunk-Q7HBETZW.js → chunk-5CCEQUAZ.js} +1 -1
- package/dist/{chunk-DWV5QAGZ.cjs → chunk-62BQYRPM.cjs} +2999 -2712
- package/dist/{chunk-F6BDL4HD.js → chunk-AK5B45AH.js} +1 -1
- package/dist/{chunk-3WDMXRK6.cjs → chunk-AYKZK666.cjs} +1 -1
- package/dist/{chunk-TNYZH6EG.js → chunk-E4M4KEL3.js} +2983 -2701
- package/dist/{chunk-WSLPUUGZ.js → chunk-GHHMURR4.js} +1 -1
- package/dist/{chunk-5A7FM72H.cjs → chunk-GXJ5L37C.cjs} +2 -2
- package/dist/{chunk-IGWSCIES.js → chunk-GZNJUK7U.js} +3 -2
- package/dist/{chunk-J7MZRPLN.cjs → chunk-I3EUY74Q.cjs} +5 -4
- package/dist/chunk-IVABRCNA.js +29 -0
- package/dist/{chunk-M4QJ2474.cjs → chunk-JJXDDTSL.cjs} +4 -4
- package/dist/{chunk-WDBPA4RQ.cjs → chunk-K5TOHSUD.cjs} +2 -2
- package/dist/{chunk-4ODWTALP.js → chunk-M7N6RX2H.js} +2 -2
- package/dist/{chunk-J3LN5HOC.cjs → chunk-MAOXZVDE.cjs} +2 -2
- package/dist/{chunk-YQ76DZYD.cjs → chunk-NWZXH2HK.cjs} +2 -2
- package/dist/{chunk-ZFO3FUM4.cjs → chunk-PFECSHR6.cjs} +2 -2
- package/dist/{chunk-JAJ4CI2F.cjs → chunk-Q3ZFML4W.cjs} +2 -2
- package/dist/chunk-RM37JA3L.cjs +32 -0
- package/dist/{chunk-GNNF5SG6.cjs → chunk-RVO5GC2H.cjs} +2 -2
- package/dist/{chunk-J5LKLH5Z.js → chunk-TSKJTJ2P.js} +1 -1
- package/dist/{chunk-WG55ZHJL.cjs → chunk-VRFJDHDN.cjs} +2 -2
- package/dist/{chunk-FM4ABZQ2.js → chunk-VT7NVLLU.js} +1 -1
- package/dist/{chunk-LKN52AAX.js → chunk-W36NC3B7.js} +1 -1
- package/dist/{chunk-RWVNX2CP.js → chunk-XDNNFAQR.js} +1 -1
- package/dist/{chunk-DUYZ3TCT.js → chunk-XWBVMNBI.js} +1 -1
- package/dist/{chunk-WXU3KLBP.cjs → chunk-YBOJFFO2.cjs} +2 -2
- package/dist/{chunk-NH7U3PTV.js → chunk-ZOMJH52N.js} +1 -1
- 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 +188 -36
- package/dist/index.d.ts +188 -36
- 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-27RAXIPT.cjs +175 -0
- 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-UWHGJ4JS.js → chunk-764HUXP3.js} +484 -1777
- package/dist/lib/chunk-B3EE3VHZ.cjs +127 -0
- package/dist/lib/chunk-CCGA6ZHZ.cjs +1218 -0
- package/dist/lib/chunk-DX2VAXZB.cjs +11 -0
- package/dist/lib/{chunk-VGSV2BEL.cjs → chunk-EFYMNU53.cjs} +6 -12
- package/dist/lib/chunk-EJTGOYSI.cjs +146 -0
- package/dist/lib/chunk-EN4XP4D5.js +144 -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-MVIKYHBX.cjs +2 -0
- package/dist/lib/chunk-NDKPSA3I.js +1190 -0
- package/dist/lib/{chunk-A5SB72VO.cjs → chunk-NVUXGMU5.cjs} +495 -1781
- package/dist/lib/chunk-NYNHNTHT.js +1 -0
- package/dist/lib/chunk-SZH2DJOG.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 +2 -4
- package/dist/lib/config-file.d.ts +2 -4
- 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 +17 -14
- package/dist/lib/index.d.ts +17 -14
- 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 +2 -4
- package/dist/lib/logger.d.ts +2 -4
- package/dist/lib/typescript/compiler-host.cjs +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +2 -4
- package/dist/lib/typescript/compiler-host.d.ts +2 -4
- 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 +4 -4
- package/dist/lib/typescript/index.d.ts +4 -4
- package/dist/lib/typescript/index.js +3 -2
- package/dist/lib/typescript/program.d.cts +2 -4
- package/dist/lib/typescript/program.d.ts +2 -4
- 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 +4 -6
- package/dist/lib/unplugin/index.d.ts +4 -6
- package/dist/lib/unplugin/index.js +9 -4
- package/dist/lib/unplugin/plugin.cjs +4 -3
- package/dist/lib/unplugin/plugin.d.cts +2 -4
- package/dist/lib/unplugin/plugin.d.ts +2 -4
- 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 +2 -4
- package/dist/lib/unplugin/resolve-id.d.ts +2 -4
- 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 +2 -4
- package/dist/lib/utilities/file-header.d.ts +2 -4
- package/dist/lib/utilities/index.cjs +18 -18
- package/dist/lib/utilities/index.d.cts +2 -4
- package/dist/lib/utilities/index.d.ts +2 -4
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/meta.d.cts +2 -4
- package/dist/lib/utilities/meta.d.ts +2 -4
- 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 +2 -4
- package/dist/lib/utilities/worker.d.ts +2 -4
- 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 +2 -4
- package/dist/plugin-utils/index.d.ts +2 -4
- package/dist/plugin-utils/merge.d.cts +2 -4
- package/dist/plugin-utils/merge.d.ts +2 -4
- package/dist/plugin-utils/paths.d.cts +2 -4
- package/dist/plugin-utils/paths.d.ts +2 -4
- package/dist/{resolved-Dem-rX6I.d.cts → resolved-C00CJgsk.d.cts} +9 -8
- package/dist/{resolved-BVakEeek.d.ts → resolved-DKFZ11S7.d.ts} +9 -8
- 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/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} +43 -38
- package/dist/types/{vfs.d.ts → fs.d.ts} +43 -38
- 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 +5 -6
- package/dist/types/index.d.ts +5 -6
- package/dist/types/index.js +3 -2
- package/dist/types/internal.d.cts +44 -9
- package/dist/types/internal.d.ts +44 -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/unplugin.d.cts +20 -12
- package/dist/types/unplugin.d.ts +20 -12
- 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 +38 -10
- package/schemas/fs.capnp +73 -15
- package/dist/chunk-RODEAGIJ.cjs +0 -32
- package/dist/chunk-SKLSRHBU.js +0 -29
- package/dist/hooks-B3vzw6La.d.ts +0 -28
- package/dist/hooks-YACA4jMY.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,168 @@
|
|
|
1
|
+
import { b4 as SelectHooksOptions, cr as ResolvedConfig, b8 as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-C00CJgsk.cjs';
|
|
2
|
+
|
|
3
|
+
type CallHookOptions = SelectHooksOptions & ({
|
|
4
|
+
/**
|
|
5
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue true
|
|
8
|
+
*/
|
|
9
|
+
sequential?: true;
|
|
10
|
+
/**
|
|
11
|
+
* How to handle multiple return values from hooks.
|
|
12
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
13
|
+
* - "first": Return the first non-undefined value.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Merging only works if the return values are objects.
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue "merge"
|
|
19
|
+
*/
|
|
20
|
+
result?: "merge" | "first";
|
|
21
|
+
} | {
|
|
22
|
+
/**
|
|
23
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
24
|
+
*/
|
|
25
|
+
sequential: false;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Powerlines API Interface
|
|
30
|
+
*/
|
|
31
|
+
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
32
|
+
/**
|
|
33
|
+
* The Powerlines shared API context
|
|
34
|
+
*/
|
|
35
|
+
context: APIContext<TResolvedConfig>;
|
|
36
|
+
/**
|
|
37
|
+
* Prepare the Powerlines API
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
41
|
+
*
|
|
42
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
43
|
+
*/
|
|
44
|
+
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new Powerlines project
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* This method will create a new Powerlines project in the current directory.
|
|
50
|
+
*
|
|
51
|
+
* @param inlineConfig - The inline configuration for the new command
|
|
52
|
+
* @returns A promise that resolves when the project has been created
|
|
53
|
+
*/
|
|
54
|
+
new: (inlineConfig: NewInlineConfig) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Clean any previously prepared artifacts
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This method will remove the previous Powerlines artifacts from the project.
|
|
60
|
+
*
|
|
61
|
+
* @param inlineConfig - The inline configuration for the clean command
|
|
62
|
+
* @returns A promise that resolves when the clean command has completed
|
|
63
|
+
*/
|
|
64
|
+
clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Lint the project source code
|
|
67
|
+
*
|
|
68
|
+
* @param inlineConfig - The inline configuration for the lint command
|
|
69
|
+
* @returns A promise that resolves when the lint command has completed
|
|
70
|
+
*/
|
|
71
|
+
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Build the project
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
77
|
+
*
|
|
78
|
+
* @param inlineConfig - The inline configuration for the build command
|
|
79
|
+
* @returns A promise that resolves when the build command has completed
|
|
80
|
+
*/
|
|
81
|
+
build: (inlineConfig: BuildInlineConfig) => Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Prepare the documentation for the project
|
|
84
|
+
*
|
|
85
|
+
* @param inlineConfig - The inline configuration for the docs command
|
|
86
|
+
* @returns A promise that resolves when the documentation generation has completed
|
|
87
|
+
*/
|
|
88
|
+
docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Deploy the project source code
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
94
|
+
*
|
|
95
|
+
* @param inlineConfig - The inline configuration for the deploy command
|
|
96
|
+
*/
|
|
97
|
+
deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Finalization process
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
103
|
+
*
|
|
104
|
+
* @returns A promise that resolves when the finalization process has completed
|
|
105
|
+
*/
|
|
106
|
+
finalize: () => Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Calls a hook in parallel
|
|
109
|
+
*
|
|
110
|
+
* @param hook - The hook to call
|
|
111
|
+
* @param options - Options for calling the hook
|
|
112
|
+
* @param args - The arguments to pass to the hook
|
|
113
|
+
* @returns The result of the hook call
|
|
114
|
+
*/
|
|
115
|
+
callHookParallel: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: Omit<CallHookOptions, "sequential"> & {
|
|
116
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
117
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
118
|
+
/**
|
|
119
|
+
* Calls a hook in sequence
|
|
120
|
+
*
|
|
121
|
+
* @param hook - The hook to call
|
|
122
|
+
* @param options - Options for calling the hook
|
|
123
|
+
* @param args - The arguments to pass to the hook
|
|
124
|
+
* @returns The result of the hook call
|
|
125
|
+
*/
|
|
126
|
+
callHookSequential: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: Omit<CallHookOptions, "sequential"> & {
|
|
127
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
128
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
129
|
+
/**
|
|
130
|
+
* Calls the `"pre"` ordered hooks in sequence
|
|
131
|
+
*
|
|
132
|
+
* @param environment - The environment to use for the hook call
|
|
133
|
+
* @param hook - The hook to call
|
|
134
|
+
* @param args - The arguments to pass to the hook
|
|
135
|
+
* @returns The result of the hook call
|
|
136
|
+
*/
|
|
137
|
+
callPreHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
138
|
+
/**
|
|
139
|
+
* Calls the `"post"` ordered hooks in sequence
|
|
140
|
+
*
|
|
141
|
+
* @param environment - The environment to use for the hook call
|
|
142
|
+
* @param hook - The hook to call
|
|
143
|
+
* @param args - The arguments to pass to the hook
|
|
144
|
+
* @returns The result of the hook call
|
|
145
|
+
*/
|
|
146
|
+
callPostHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
147
|
+
/**
|
|
148
|
+
* Calls a hook in sequence
|
|
149
|
+
*
|
|
150
|
+
* @param environment - The environment to use for the hook call
|
|
151
|
+
* @param hook - The hook to call
|
|
152
|
+
* @param args - The arguments to pass to the hook
|
|
153
|
+
* @returns The result of the hook call
|
|
154
|
+
*/
|
|
155
|
+
callNormalHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
156
|
+
/**
|
|
157
|
+
* Calls the `"pre"` and `"post"` ordered hooks, as well as the normal hooks in sequence
|
|
158
|
+
*
|
|
159
|
+
* @param environment - The environment to use for the hook call
|
|
160
|
+
* @param hook - The hook to call
|
|
161
|
+
* @param args - The arguments to pass to the hook
|
|
162
|
+
* @returns The result of the hook call
|
|
163
|
+
*/
|
|
164
|
+
callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
165
|
+
}
|
|
166
|
+
declare type __ΩAPI = any[];
|
|
167
|
+
|
|
168
|
+
export type { API as A, CallHookOptions as C, __ΩAPI as _ };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { b4 as SelectHooksOptions, cr as ResolvedConfig, b8 as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-DKFZ11S7.js';
|
|
2
|
+
|
|
3
|
+
type CallHookOptions = SelectHooksOptions & ({
|
|
4
|
+
/**
|
|
5
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue true
|
|
8
|
+
*/
|
|
9
|
+
sequential?: true;
|
|
10
|
+
/**
|
|
11
|
+
* How to handle multiple return values from hooks.
|
|
12
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
13
|
+
* - "first": Return the first non-undefined value.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Merging only works if the return values are objects.
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue "merge"
|
|
19
|
+
*/
|
|
20
|
+
result?: "merge" | "first";
|
|
21
|
+
} | {
|
|
22
|
+
/**
|
|
23
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
24
|
+
*/
|
|
25
|
+
sequential: false;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Powerlines API Interface
|
|
30
|
+
*/
|
|
31
|
+
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
32
|
+
/**
|
|
33
|
+
* The Powerlines shared API context
|
|
34
|
+
*/
|
|
35
|
+
context: APIContext<TResolvedConfig>;
|
|
36
|
+
/**
|
|
37
|
+
* Prepare the Powerlines API
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
41
|
+
*
|
|
42
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
43
|
+
*/
|
|
44
|
+
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new Powerlines project
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* This method will create a new Powerlines project in the current directory.
|
|
50
|
+
*
|
|
51
|
+
* @param inlineConfig - The inline configuration for the new command
|
|
52
|
+
* @returns A promise that resolves when the project has been created
|
|
53
|
+
*/
|
|
54
|
+
new: (inlineConfig: NewInlineConfig) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Clean any previously prepared artifacts
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This method will remove the previous Powerlines artifacts from the project.
|
|
60
|
+
*
|
|
61
|
+
* @param inlineConfig - The inline configuration for the clean command
|
|
62
|
+
* @returns A promise that resolves when the clean command has completed
|
|
63
|
+
*/
|
|
64
|
+
clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Lint the project source code
|
|
67
|
+
*
|
|
68
|
+
* @param inlineConfig - The inline configuration for the lint command
|
|
69
|
+
* @returns A promise that resolves when the lint command has completed
|
|
70
|
+
*/
|
|
71
|
+
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Build the project
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
77
|
+
*
|
|
78
|
+
* @param inlineConfig - The inline configuration for the build command
|
|
79
|
+
* @returns A promise that resolves when the build command has completed
|
|
80
|
+
*/
|
|
81
|
+
build: (inlineConfig: BuildInlineConfig) => Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Prepare the documentation for the project
|
|
84
|
+
*
|
|
85
|
+
* @param inlineConfig - The inline configuration for the docs command
|
|
86
|
+
* @returns A promise that resolves when the documentation generation has completed
|
|
87
|
+
*/
|
|
88
|
+
docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Deploy the project source code
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
94
|
+
*
|
|
95
|
+
* @param inlineConfig - The inline configuration for the deploy command
|
|
96
|
+
*/
|
|
97
|
+
deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Finalization process
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
103
|
+
*
|
|
104
|
+
* @returns A promise that resolves when the finalization process has completed
|
|
105
|
+
*/
|
|
106
|
+
finalize: () => Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Calls a hook in parallel
|
|
109
|
+
*
|
|
110
|
+
* @param hook - The hook to call
|
|
111
|
+
* @param options - Options for calling the hook
|
|
112
|
+
* @param args - The arguments to pass to the hook
|
|
113
|
+
* @returns The result of the hook call
|
|
114
|
+
*/
|
|
115
|
+
callHookParallel: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: Omit<CallHookOptions, "sequential"> & {
|
|
116
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
117
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
118
|
+
/**
|
|
119
|
+
* Calls a hook in sequence
|
|
120
|
+
*
|
|
121
|
+
* @param hook - The hook to call
|
|
122
|
+
* @param options - Options for calling the hook
|
|
123
|
+
* @param args - The arguments to pass to the hook
|
|
124
|
+
* @returns The result of the hook call
|
|
125
|
+
*/
|
|
126
|
+
callHookSequential: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: Omit<CallHookOptions, "sequential"> & {
|
|
127
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
128
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
129
|
+
/**
|
|
130
|
+
* Calls the `"pre"` ordered hooks in sequence
|
|
131
|
+
*
|
|
132
|
+
* @param environment - The environment to use for the hook call
|
|
133
|
+
* @param hook - The hook to call
|
|
134
|
+
* @param args - The arguments to pass to the hook
|
|
135
|
+
* @returns The result of the hook call
|
|
136
|
+
*/
|
|
137
|
+
callPreHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
138
|
+
/**
|
|
139
|
+
* Calls the `"post"` ordered hooks in sequence
|
|
140
|
+
*
|
|
141
|
+
* @param environment - The environment to use for the hook call
|
|
142
|
+
* @param hook - The hook to call
|
|
143
|
+
* @param args - The arguments to pass to the hook
|
|
144
|
+
* @returns The result of the hook call
|
|
145
|
+
*/
|
|
146
|
+
callPostHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
147
|
+
/**
|
|
148
|
+
* Calls a hook in sequence
|
|
149
|
+
*
|
|
150
|
+
* @param environment - The environment to use for the hook call
|
|
151
|
+
* @param hook - The hook to call
|
|
152
|
+
* @param args - The arguments to pass to the hook
|
|
153
|
+
* @returns The result of the hook call
|
|
154
|
+
*/
|
|
155
|
+
callNormalHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
156
|
+
/**
|
|
157
|
+
* Calls the `"pre"` and `"post"` ordered hooks, as well as the normal hooks in sequence
|
|
158
|
+
*
|
|
159
|
+
* @param environment - The environment to use for the hook call
|
|
160
|
+
* @param hook - The hook to call
|
|
161
|
+
* @param args - The arguments to pass to the hook
|
|
162
|
+
* @returns The result of the hook call
|
|
163
|
+
*/
|
|
164
|
+
callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
165
|
+
}
|
|
166
|
+
declare type __ΩAPI = any[];
|
|
167
|
+
|
|
168
|
+
export type { API as A, CallHookOptions as C, __ΩAPI as _ };
|
package/dist/api.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk62BQYRPM_cjs = require('./chunk-62BQYRPM.cjs');
|
|
4
4
|
require('./chunk-ETKZMGLN.cjs');
|
|
5
|
-
require('./chunk-3WDMXRK6.cjs');
|
|
6
5
|
require('./chunk-PAMSESZV.cjs');
|
|
6
|
+
require('./chunk-AYKZK666.cjs');
|
|
7
7
|
require('./chunk-USNT2KNT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk62BQYRPM_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './
|
|
2
|
-
import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api--9pVSIbm.cjs';
|
|
2
|
+
import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-C00CJgsk.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -25,17 +25,15 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
28
|
import 'semver';
|
|
30
29
|
import 'unimport';
|
|
31
30
|
import 'unplugin';
|
|
31
|
+
import './types/fs.cjs';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import '@stryke/types/array';
|
|
33
34
|
import './types/tsconfig.cjs';
|
|
34
35
|
import '@stryke/types/tsconfig';
|
|
35
36
|
import 'typescript';
|
|
36
|
-
import './types/vfs.cjs';
|
|
37
|
-
import '@stryke/json/types';
|
|
38
|
-
import 'node:fs';
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* The Powerlines API class
|
|
@@ -45,7 +43,7 @@ import 'node:fs';
|
|
|
45
43
|
*
|
|
46
44
|
* @public
|
|
47
45
|
*/
|
|
48
|
-
declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements AsyncDisposable {
|
|
46
|
+
declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements API<TResolvedConfig>, AsyncDisposable {
|
|
49
47
|
#private;
|
|
50
48
|
/**
|
|
51
49
|
* The Powerlines context
|
|
@@ -63,6 +61,11 @@ declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
63
61
|
static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<PowerlinesAPI<TResolvedConfig>>;
|
|
64
62
|
/**
|
|
65
63
|
* Prepare the Powerlines API
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
67
|
+
*
|
|
68
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
66
69
|
*/
|
|
67
70
|
prepare(inlineConfig?: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig): Promise<void>;
|
|
68
71
|
/**
|
|
@@ -185,6 +188,12 @@ declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
185
188
|
* @returns The result of the hook call
|
|
186
189
|
*/
|
|
187
190
|
callHook<TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>): Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
191
|
+
/**
|
|
192
|
+
* Dispose of the Powerlines API instance
|
|
193
|
+
*
|
|
194
|
+
* @remarks
|
|
195
|
+
* This method will finalize the Powerlines API instance, cleaning up any resources used.
|
|
196
|
+
*/
|
|
188
197
|
[Symbol.asyncDispose](): Promise<void>;
|
|
189
198
|
}
|
|
190
199
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './
|
|
2
|
-
import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-DxPACGY4.js';
|
|
2
|
+
import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-DKFZ11S7.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -25,17 +25,15 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
28
|
import 'semver';
|
|
30
29
|
import 'unimport';
|
|
31
30
|
import 'unplugin';
|
|
31
|
+
import './types/fs.js';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import '@stryke/types/array';
|
|
33
34
|
import './types/tsconfig.js';
|
|
34
35
|
import '@stryke/types/tsconfig';
|
|
35
36
|
import 'typescript';
|
|
36
|
-
import './types/vfs.js';
|
|
37
|
-
import '@stryke/json/types';
|
|
38
|
-
import 'node:fs';
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* The Powerlines API class
|
|
@@ -45,7 +43,7 @@ import 'node:fs';
|
|
|
45
43
|
*
|
|
46
44
|
* @public
|
|
47
45
|
*/
|
|
48
|
-
declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements AsyncDisposable {
|
|
46
|
+
declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements API<TResolvedConfig>, AsyncDisposable {
|
|
49
47
|
#private;
|
|
50
48
|
/**
|
|
51
49
|
* The Powerlines context
|
|
@@ -63,6 +61,11 @@ declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
63
61
|
static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<PowerlinesAPI<TResolvedConfig>>;
|
|
64
62
|
/**
|
|
65
63
|
* Prepare the Powerlines API
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
67
|
+
*
|
|
68
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
66
69
|
*/
|
|
67
70
|
prepare(inlineConfig?: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig): Promise<void>;
|
|
68
71
|
/**
|
|
@@ -185,6 +188,12 @@ declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
185
188
|
* @returns The result of the hook call
|
|
186
189
|
*/
|
|
187
190
|
callHook<TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>): Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
191
|
+
/**
|
|
192
|
+
* Dispose of the Powerlines API instance
|
|
193
|
+
*
|
|
194
|
+
* @remarks
|
|
195
|
+
* This method will finalize the Powerlines API instance, cleaning up any resources used.
|
|
196
|
+
*/
|
|
188
197
|
[Symbol.asyncDispose](): Promise<void>;
|
|
189
198
|
}
|
|
190
199
|
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkK5TOHSUD_cjs = require('./chunk-K5TOHSUD.cjs');
|
|
6
|
+
require('./chunk-VRFJDHDN.cjs');
|
|
7
7
|
require('./chunk-5IBA5HC2.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-I3EUY74Q.cjs');
|
|
9
|
+
require('./chunk-62BQYRPM.cjs');
|
|
10
10
|
require('./chunk-ETKZMGLN.cjs');
|
|
11
|
-
require('./chunk-3WDMXRK6.cjs');
|
|
12
11
|
require('./chunk-PAMSESZV.cjs');
|
|
12
|
+
require('./chunk-AYKZK666.cjs');
|
|
13
13
|
require('./chunk-USNT2KNT.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "astro", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkK5TOHSUD_cjs.astro; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "default", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkK5TOHSUD_cjs.astro_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "module.exports", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkK5TOHSUD_cjs.astro; }
|
|
28
28
|
});
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cs as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { cs as ViteResolvedConfig } from './resolved-C00CJgsk.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -25,17 +25,15 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
28
|
import 'semver';
|
|
30
29
|
import 'unimport';
|
|
31
30
|
import 'unplugin';
|
|
31
|
+
import './types/fs.cjs';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import '@stryke/types/array';
|
|
33
34
|
import './types/tsconfig.cjs';
|
|
34
35
|
import '@stryke/types/tsconfig';
|
|
35
36
|
import 'typescript';
|
|
36
|
-
import './types/vfs.cjs';
|
|
37
|
-
import '@stryke/json/types';
|
|
38
|
-
import 'node:fs';
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* An Astro plugin that will invoke the Powerlines API hooks during the build process.
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cs as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { cs as ViteResolvedConfig } from './resolved-DKFZ11S7.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -25,17 +25,15 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
28
|
import 'semver';
|
|
30
29
|
import 'unimport';
|
|
31
30
|
import 'unplugin';
|
|
31
|
+
import './types/fs.js';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import '@stryke/types/array';
|
|
33
34
|
import './types/tsconfig.js';
|
|
34
35
|
import '@stryke/types/tsconfig';
|
|
35
36
|
import 'typescript';
|
|
36
|
-
import './types/vfs.js';
|
|
37
|
-
import '@stryke/json/types';
|
|
38
|
-
import 'node:fs';
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* An Astro plugin that will invoke the Powerlines API hooks during the build process.
|
package/dist/astro.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { astro, astro_default as default, astro as "module.exports" } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { astro, astro_default as default, astro as "module.exports" } from './chunk-AK5B45AH.js';
|
|
2
|
+
import './chunk-XWBVMNBI.js';
|
|
3
3
|
import './chunk-VBR53KGY.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-GZNJUK7U.js';
|
|
5
|
+
import './chunk-E4M4KEL3.js';
|
|
6
6
|
import './chunk-JQCWV4DT.js';
|
|
7
|
-
import './chunk-FM4ABZQ2.js';
|
|
8
7
|
import './chunk-JKBJF3UI.js';
|
|
8
|
+
import './chunk-VT7NVLLU.js';
|
|
9
9
|
import './chunk-SHUYVCID.js';
|