powerlines 0.41.6 → 0.41.7
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/README.md +14 -16
- package/dist/{api-CY668wMZ.mjs → api-6f2oVwGy.mjs} +142 -333
- package/dist/api-6f2oVwGy.mjs.map +1 -0
- package/dist/{api-GPlMYw0d.cjs → api-CFXLaAxU.cjs} +505 -722
- package/dist/astro.cjs +8 -18
- package/dist/astro.d.cts +1 -2
- package/dist/astro.d.cts.map +1 -1
- package/dist/astro.d.mts +1 -6
- package/dist/astro.d.mts.map +1 -1
- package/dist/astro.mjs +6 -16
- package/dist/astro.mjs.map +1 -1
- package/dist/{chunk-CbDLau6x.cjs → chunk-AIJqnxB6.cjs} +27 -1
- package/dist/chunk-CtajNgzt.mjs +36 -0
- package/dist/config.cjs +20 -4
- package/dist/config.d.cts +1 -2
- package/dist/config.d.mts +1 -3
- package/dist/config.mjs +11 -2
- package/dist/config.mjs.map +1 -0
- package/dist/constants.cjs +20 -20
- package/dist/constants.d.cts +1 -24
- package/dist/constants.d.mts +1 -24
- package/dist/constants.mjs +11 -3
- package/dist/constants.mjs.map +1 -0
- package/dist/context/index.cjs +4 -9
- package/dist/context/index.d.cts +56 -132
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +55 -135
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +3 -9
- package/dist/esbuild.cjs +60 -17
- package/dist/esbuild.d.cts +5 -29
- package/dist/esbuild.d.cts.map +1 -1
- package/dist/esbuild.d.mts +5 -33
- package/dist/esbuild.d.mts.map +1 -1
- package/dist/esbuild.mjs +44 -12
- package/dist/esbuild.mjs.map +1 -0
- package/dist/farm.cjs +6 -13
- package/dist/farm.d.cts +2 -3
- package/dist/farm.d.cts.map +1 -1
- package/dist/farm.d.mts +2 -6
- package/dist/farm.d.mts.map +1 -1
- package/dist/farm.mjs +4 -11
- package/dist/farm.mjs.map +1 -1
- package/dist/index.cjs +7 -13
- package/dist/index.d.cts +263 -6
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +263 -7
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/dist/next.cjs +7 -14
- package/dist/next.d.cts +0 -1
- package/dist/next.d.cts.map +1 -1
- package/dist/next.d.mts +0 -1
- package/dist/next.d.mts.map +1 -1
- package/dist/next.mjs +6 -13
- package/dist/next.mjs.map +1 -1
- package/dist/nuxt.cjs +12 -22
- package/dist/nuxt.d.cts +2 -3
- package/dist/nuxt.d.cts.map +1 -1
- package/dist/nuxt.d.mts +2 -7
- package/dist/nuxt.d.mts.map +1 -1
- package/dist/nuxt.mjs +8 -18
- package/dist/nuxt.mjs.map +1 -1
- package/dist/plugin-utils.cjs +20 -28
- package/dist/plugin-utils.d.cts +1 -267
- package/dist/plugin-utils.d.mts +1 -272
- package/dist/plugin-utils.mjs +11 -4
- package/dist/plugin-utils.mjs.map +1 -0
- package/dist/rolldown.cjs +52 -18
- package/dist/rolldown.d.cts +5 -29
- package/dist/rolldown.d.cts.map +1 -1
- package/dist/rolldown.d.mts +5 -32
- package/dist/rolldown.d.mts.map +1 -1
- package/dist/rolldown.mjs +36 -13
- package/dist/rolldown.mjs.map +1 -0
- package/dist/rollup.cjs +20 -48
- package/dist/rollup.d.cts +5 -29
- package/dist/rollup.d.cts.map +1 -1
- package/dist/rollup.d.mts +5 -32
- package/dist/rollup.d.mts.map +1 -1
- package/dist/rollup.mjs +6 -44
- package/dist/rollup.mjs.map +1 -1
- package/dist/rspack.cjs +20 -82
- package/dist/rspack.d.cts +4 -24
- package/dist/rspack.d.cts.map +1 -1
- package/dist/rspack.d.mts +4 -27
- package/dist/rspack.d.mts.map +1 -1
- package/dist/rspack.mjs +5 -77
- package/dist/rspack.mjs.map +1 -1
- package/dist/storage/index.cjs +2 -3
- package/dist/storage/index.d.cts +7 -7
- package/dist/storage/index.d.cts.map +1 -1
- package/dist/storage/index.d.mts +7 -11
- package/dist/storage/index.d.mts.map +1 -1
- package/dist/storage/index.mjs +1 -3
- package/dist/{tsconfig-C8M8X6U0.cjs → tsconfig-BJrUrPC_.cjs} +13 -13
- package/dist/{tsconfig-B92heKit.mjs → tsconfig-D9GCB2I9.mjs} +5 -5
- package/dist/tsconfig-D9GCB2I9.mjs.map +1 -0
- package/dist/tsdown.cjs +38 -187
- package/dist/tsdown.d.cts +2 -24
- package/dist/tsdown.d.cts.map +1 -1
- package/dist/tsdown.d.mts +4 -30
- package/dist/tsdown.d.mts.map +1 -1
- package/dist/tsdown.mjs +8 -167
- package/dist/tsdown.mjs.map +1 -1
- package/dist/tsup.cjs +29 -134
- package/dist/tsup.d.cts +2 -24
- package/dist/tsup.d.cts.map +1 -1
- package/dist/tsup.d.mts +2 -28
- package/dist/tsup.d.mts.map +1 -1
- package/dist/tsup.mjs +7 -122
- package/dist/tsup.mjs.map +1 -1
- package/dist/types-DerAvFjs.d.cts +4 -0
- package/dist/types-DerAvFjs.d.cts.map +1 -0
- package/dist/types-ro7jWCtL.d.mts +4 -0
- package/dist/types-ro7jWCtL.d.mts.map +1 -0
- package/dist/typescript/index.cjs +2 -1
- package/dist/typescript/index.d.cts +2 -2
- package/dist/typescript/index.d.cts.map +1 -1
- package/dist/typescript/index.d.mts +1 -4
- package/dist/typescript/index.d.mts.map +1 -1
- package/dist/typescript/index.mjs +1 -1
- package/dist/unloader.cjs +6 -13
- package/dist/unloader.d.cts +2 -4
- package/dist/unloader.d.cts.map +1 -1
- package/dist/unloader.d.mts +2 -7
- package/dist/unloader.d.mts.map +1 -1
- package/dist/unloader.mjs +4 -11
- package/dist/unloader.mjs.map +1 -1
- package/dist/unplugin.cjs +11 -14
- package/dist/unplugin.d.cts +5 -6
- package/dist/unplugin.d.cts.map +1 -1
- package/dist/unplugin.d.mts +3 -6
- package/dist/unplugin.d.mts.map +1 -1
- package/dist/unplugin.mjs +6 -10
- package/dist/utils.cjs +38 -22
- package/dist/utils.d.cts +3 -2
- package/dist/utils.d.mts +3 -3
- package/dist/utils.mjs +19 -3
- package/dist/utils.mjs.map +1 -0
- package/dist/{virtual-B1MLgqnQ.cjs → virtual-Cbvj12lU.cjs} +33 -33
- package/dist/{virtual-B9imjOqe.mjs → virtual-DvkJm7gK.mjs} +7 -7
- package/dist/virtual-DvkJm7gK.mjs.map +1 -0
- package/dist/vite.cjs +84 -19
- package/dist/vite.d.cts +5 -16
- package/dist/vite.d.cts.map +1 -1
- package/dist/vite.d.mts +5 -19
- package/dist/vite.d.mts.map +1 -1
- package/dist/vite.mjs +67 -14
- package/dist/vite.mjs.map +1 -0
- package/dist/webpack.cjs +42 -16
- package/dist/webpack.d.cts +5 -29
- package/dist/webpack.d.cts.map +1 -1
- package/dist/webpack.d.mts +5 -32
- package/dist/webpack.d.mts.map +1 -1
- package/dist/webpack.mjs +26 -11
- package/dist/webpack.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/api-CY668wMZ.mjs.map +0 -1
- package/dist/commands-7TWNqTU1.d.cts +0 -12
- package/dist/commands-7TWNqTU1.d.cts.map +0 -1
- package/dist/commands-yacLkOi0.d.mts +0 -12
- package/dist/commands-yacLkOi0.d.mts.map +0 -1
- package/dist/config-CK756s0L.d.mts +0 -2232
- package/dist/config-CK756s0L.d.mts.map +0 -1
- package/dist/config-CiPXgwzt.d.mts +0 -39
- package/dist/config-CiPXgwzt.d.mts.map +0 -1
- package/dist/config-D4Fh2gQL.mjs +0 -87
- package/dist/config-D4Fh2gQL.mjs.map +0 -1
- package/dist/config-D86Vw7SC.cjs +0 -105
- package/dist/config-J74ORCFY.d.cts +0 -39
- package/dist/config-J74ORCFY.d.cts.map +0 -1
- package/dist/config-vnrrSxEB.d.cts +0 -2232
- package/dist/config-vnrrSxEB.d.cts.map +0 -1
- package/dist/constants-CZh5rsgh.cjs +0 -103
- package/dist/constants-cXxSHhNp.mjs +0 -32
- package/dist/constants-cXxSHhNp.mjs.map +0 -1
- package/dist/constants.d.cts.map +0 -1
- package/dist/constants.d.mts.map +0 -1
- package/dist/esbuild-B3NuCco0.cjs +0 -100
- package/dist/esbuild-DWiE0pYc.mjs +0 -82
- package/dist/esbuild-DWiE0pYc.mjs.map +0 -1
- package/dist/index-2JXW-b2-.d.mts +0 -82
- package/dist/index-2JXW-b2-.d.mts.map +0 -1
- package/dist/index-6BLROVtJ.d.mts +0 -261
- package/dist/index-6BLROVtJ.d.mts.map +0 -1
- package/dist/index-C7W0kmm7.d.mts +0 -171
- package/dist/index-C7W0kmm7.d.mts.map +0 -1
- package/dist/index-DJ-k0GOX.d.cts +0 -261
- package/dist/index-DJ-k0GOX.d.cts.map +0 -1
- package/dist/paths-CS8ecCnW.mjs +0 -81
- package/dist/paths-CS8ecCnW.mjs.map +0 -1
- package/dist/paths-YmyIGEVo.cjs +0 -98
- package/dist/plugin-B9TQt-p0.d.cts +0 -82
- package/dist/plugin-B9TQt-p0.d.cts.map +0 -1
- package/dist/plugin-BE3wmhoU.d.cts +0 -26
- package/dist/plugin-BE3wmhoU.d.cts.map +0 -1
- package/dist/plugin-CZ_PJPpQ.cjs +0 -96
- package/dist/plugin-C_8RhG5V.d.mts +0 -26
- package/dist/plugin-C_8RhG5V.d.mts.map +0 -1
- package/dist/plugin-E5foRD0k.mjs +0 -61
- package/dist/plugin-E5foRD0k.mjs.map +0 -1
- package/dist/plugin-utils-C3HnZJl1.mjs +0 -387
- package/dist/plugin-utils-C3HnZJl1.mjs.map +0 -1
- package/dist/plugin-utils-Ck3cx3w6.cjs +0 -531
- package/dist/plugin-utils.d.cts.map +0 -1
- package/dist/plugin-utils.d.mts.map +0 -1
- package/dist/resolve-options-6sXFqzEA.mjs +0 -116
- package/dist/resolve-options-6sXFqzEA.mjs.map +0 -1
- package/dist/resolve-options-BQnTgg3V.cjs +0 -105
- package/dist/resolve-options-D-RGs8j8.mjs +0 -117
- package/dist/resolve-options-D-RGs8j8.mjs.map +0 -1
- package/dist/resolve-options-DHL3RM8F.mjs +0 -87
- package/dist/resolve-options-DHL3RM8F.mjs.map +0 -1
- package/dist/resolve-options-lxQ2pm0W.cjs +0 -127
- package/dist/resolve-options-vyFhhkLp.cjs +0 -133
- package/dist/rolldown-CQI8ps6f.cjs +0 -83
- package/dist/rolldown-DsXEFXyP.mjs +0 -65
- package/dist/rolldown-DsXEFXyP.mjs.map +0 -1
- package/dist/tsconfig-B92heKit.mjs.map +0 -1
- package/dist/types-Bh_vLuQ0.d.mts +0 -1
- package/dist/utils-BbDma_5Y.cjs +0 -449
- package/dist/utils-DoQcX7Sk.mjs +0 -339
- package/dist/utils-DoQcX7Sk.mjs.map +0 -1
- package/dist/virtual-B9imjOqe.mjs.map +0 -1
- package/dist/vite-Bx1gbbj3.mjs +0 -171
- package/dist/vite-Bx1gbbj3.mjs.map +0 -1
- package/dist/vite-XV170zx6.cjs +0 -189
- package/dist/webpack-9G4xJBfz.cjs +0 -107
- package/dist/webpack-BkTkELre.mjs +0 -88
- package/dist/webpack-BkTkELre.mjs.map +0 -1
- package/dist/write-file-CpNWY8SV.d.cts +0 -171
- package/dist/write-file-CpNWY8SV.d.cts.map +0 -1
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { E as PrepareInlineConfig, En as InferHookParameters, Et as PluginContext, N as UserConfig, Nr as API, Tn as InferHookFunction, bt as EnvironmentContext, f as LintInlineConfig, h as NewInlineConfig, ht as APIContext, j as ResolvedConfig, n as BuildInlineConfig, o as DeployInlineConfig, r as CleanInlineConfig, s as DocsInlineConfig, u as InitialUserConfig, xn as CallHookOptions } from "./config-CK756s0L.mjs";
|
|
2
|
-
import * as $ from "@stryke/capnp";
|
|
3
|
-
|
|
4
|
-
//#region src/api.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The Powerlines API class
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements API<TResolvedConfig>, AsyncDisposable {
|
|
15
|
-
#private;
|
|
16
|
-
/**
|
|
17
|
-
* The Powerlines context
|
|
18
|
-
*/
|
|
19
|
-
get context(): APIContext<TResolvedConfig>;
|
|
20
|
-
/**
|
|
21
|
-
* Create a new Powerlines API instance
|
|
22
|
-
*
|
|
23
|
-
* @param context - The Powerlines context
|
|
24
|
-
*/
|
|
25
|
-
private constructor();
|
|
26
|
-
/**
|
|
27
|
-
* Initialize a Powerlines API instance
|
|
28
|
-
*
|
|
29
|
-
* @param workspaceRoot - The directory of the underlying workspace the Powerlines project exists in
|
|
30
|
-
* @param config - An object containing the configuration required to run Powerlines tasks.
|
|
31
|
-
* @returns A new instance of the Powerlines API
|
|
32
|
-
*/
|
|
33
|
-
static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<PowerlinesAPI<TResolvedConfig>>;
|
|
34
|
-
/**
|
|
35
|
-
* Prepare the Powerlines API
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
39
|
-
*
|
|
40
|
-
* @param inlineConfig - The inline configuration for the prepare command
|
|
41
|
-
*/
|
|
42
|
-
prepare(inlineConfig?: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Create a new Powerlines project
|
|
45
|
-
*
|
|
46
|
-
* @remarks
|
|
47
|
-
* This method will create a new Powerlines project in the current directory.
|
|
48
|
-
*
|
|
49
|
-
* @param inlineConfig - The inline configuration for the new command
|
|
50
|
-
* @returns A promise that resolves when the project has been created
|
|
51
|
-
*/
|
|
52
|
-
new(inlineConfig: NewInlineConfig): Promise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* Clean any previously prepared artifacts
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
* This method will remove the previous Powerlines artifacts from the project.
|
|
58
|
-
*
|
|
59
|
-
* @param inlineConfig - The inline configuration for the clean command
|
|
60
|
-
* @returns A promise that resolves when the clean command has completed
|
|
61
|
-
*/
|
|
62
|
-
clean(inlineConfig?: CleanInlineConfig | PrepareInlineConfig): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Lint the project
|
|
65
|
-
*
|
|
66
|
-
* @param inlineConfig - The inline configuration for the lint command
|
|
67
|
-
* @returns A promise that resolves when the lint command has completed
|
|
68
|
-
*/
|
|
69
|
-
lint(inlineConfig?: LintInlineConfig | BuildInlineConfig): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Build the project
|
|
72
|
-
*
|
|
73
|
-
* @remarks
|
|
74
|
-
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
75
|
-
*
|
|
76
|
-
* @param inlineConfig - The inline configuration for the build command
|
|
77
|
-
* @returns A promise that resolves when the build command has completed
|
|
78
|
-
*/
|
|
79
|
-
build(inlineConfig?: BuildInlineConfig): Promise<void>;
|
|
80
|
-
/**
|
|
81
|
-
* Prepare the documentation for the project
|
|
82
|
-
*
|
|
83
|
-
* @param inlineConfig - The inline configuration for the docs command
|
|
84
|
-
* @returns A promise that resolves when the documentation generation has completed
|
|
85
|
-
*/
|
|
86
|
-
docs(inlineConfig?: DocsInlineConfig): Promise<void>;
|
|
87
|
-
/**
|
|
88
|
-
* Deploy the project source code
|
|
89
|
-
*
|
|
90
|
-
* @remarks
|
|
91
|
-
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
92
|
-
*
|
|
93
|
-
* @param inlineConfig - The inline configuration for the deploy command
|
|
94
|
-
*/
|
|
95
|
-
deploy(inlineConfig?: DeployInlineConfig): Promise<void>;
|
|
96
|
-
/**
|
|
97
|
-
* Finalization process
|
|
98
|
-
*
|
|
99
|
-
* @remarks
|
|
100
|
-
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
101
|
-
*
|
|
102
|
-
* @returns A promise that resolves when the finalization process has completed
|
|
103
|
-
*/
|
|
104
|
-
finalize(): Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* Invokes the configured plugin hooks
|
|
107
|
-
*
|
|
108
|
-
* @remarks
|
|
109
|
-
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
110
|
-
*
|
|
111
|
-
* @param hook - The hook to call
|
|
112
|
-
* @param options - The options to provide to the hook
|
|
113
|
-
* @param args - The arguments to pass to the hook
|
|
114
|
-
* @returns The result of the hook call
|
|
115
|
-
*/
|
|
116
|
-
callHook<TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
117
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
118
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>): Promise<ReturnType<InferHookFunction<PluginContext<TResolvedConfig>, TKey>> | undefined>;
|
|
119
|
-
/**
|
|
120
|
-
* Dispose of the Powerlines API instance
|
|
121
|
-
*
|
|
122
|
-
* @remarks
|
|
123
|
-
* This method will finalize the Powerlines API instance, cleaning up any resources used.
|
|
124
|
-
*/
|
|
125
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region schemas/fs.d.ts
|
|
129
|
-
declare const _capnpFileId: bigint;
|
|
130
|
-
declare class FileMetadata_KeyValuePair extends $.Struct {
|
|
131
|
-
static readonly _capnp: {
|
|
132
|
-
displayName: string;
|
|
133
|
-
id: string;
|
|
134
|
-
size: $.ObjectSize;
|
|
135
|
-
};
|
|
136
|
-
get key(): string;
|
|
137
|
-
set key(value: string);
|
|
138
|
-
get value(): string;
|
|
139
|
-
set value(value: string);
|
|
140
|
-
toString(): string;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* The identifier for the file data.
|
|
144
|
-
*
|
|
145
|
-
*/
|
|
146
|
-
declare class FileMetadata extends $.Struct {
|
|
147
|
-
static readonly KeyValuePair: typeof FileMetadata_KeyValuePair;
|
|
148
|
-
static readonly _capnp: {
|
|
149
|
-
displayName: string;
|
|
150
|
-
id: string;
|
|
151
|
-
size: $.ObjectSize;
|
|
152
|
-
defaultType: string;
|
|
153
|
-
};
|
|
154
|
-
static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
|
|
155
|
-
/**
|
|
156
|
-
* The type of the file.
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
get id(): string;
|
|
160
|
-
set id(value: string);
|
|
161
|
-
/**
|
|
162
|
-
* The timestamp representing the file's creation date.
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
get type(): string;
|
|
166
|
-
set type(value: string);
|
|
167
|
-
/**
|
|
168
|
-
* Additional metadata associated with the file.
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
get timestamp(): number;
|
|
172
|
-
set timestamp(value: number);
|
|
173
|
-
_adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
|
|
174
|
-
_disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
|
|
175
|
-
get properties(): $.List<FileMetadata_KeyValuePair>;
|
|
176
|
-
_hasProperties(): boolean;
|
|
177
|
-
_initProperties(length: number): $.List<FileMetadata_KeyValuePair>;
|
|
178
|
-
set properties(value: $.List<FileMetadata_KeyValuePair>);
|
|
179
|
-
toString(): string;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* An identifier for the file.
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
declare class FileId extends $.Struct {
|
|
186
|
-
static readonly _capnp: {
|
|
187
|
-
displayName: string;
|
|
188
|
-
id: string;
|
|
189
|
-
size: $.ObjectSize;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* A virtual (or actual) path to the file in the file system.
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
195
|
-
get id(): string;
|
|
196
|
-
set id(value: string);
|
|
197
|
-
get path(): string;
|
|
198
|
-
set path(value: string);
|
|
199
|
-
toString(): string;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* An identifier for the file.
|
|
203
|
-
*
|
|
204
|
-
*/
|
|
205
|
-
declare class FileStorage extends $.Struct {
|
|
206
|
-
static readonly _capnp: {
|
|
207
|
-
displayName: string;
|
|
208
|
-
id: string;
|
|
209
|
-
size: $.ObjectSize;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* A virtual (or actual) path to the file in the file system.
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
215
|
-
get path(): string;
|
|
216
|
-
set path(value: string);
|
|
217
|
-
get code(): string;
|
|
218
|
-
set code(value: string);
|
|
219
|
-
toString(): string;
|
|
220
|
-
}
|
|
221
|
-
declare class FileSystem extends $.Struct {
|
|
222
|
-
static readonly _capnp: {
|
|
223
|
-
displayName: string;
|
|
224
|
-
id: string;
|
|
225
|
-
size: $.ObjectSize;
|
|
226
|
-
};
|
|
227
|
-
static _Ids: $.ListCtor<FileId>;
|
|
228
|
-
static _Storage: $.ListCtor<FileStorage>;
|
|
229
|
-
static _Metadata: $.ListCtor<FileMetadata>;
|
|
230
|
-
_adoptIds(value: $.Orphan<$.List<FileId>>): void;
|
|
231
|
-
_disownIds(): $.Orphan<$.List<FileId>>;
|
|
232
|
-
get ids(): $.List<FileId>;
|
|
233
|
-
_hasIds(): boolean;
|
|
234
|
-
_initIds(length: number): $.List<FileId>;
|
|
235
|
-
set ids(value: $.List<FileId>);
|
|
236
|
-
_adoptStorage(value: $.Orphan<$.List<FileStorage>>): void;
|
|
237
|
-
_disownStorage(): $.Orphan<$.List<FileStorage>>;
|
|
238
|
-
get storage(): $.List<FileStorage>;
|
|
239
|
-
_hasStorage(): boolean;
|
|
240
|
-
_initStorage(length: number): $.List<FileStorage>;
|
|
241
|
-
set storage(value: $.List<FileStorage>);
|
|
242
|
-
_adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
|
|
243
|
-
_disownMetadata(): $.Orphan<$.List<FileMetadata>>;
|
|
244
|
-
get metadata(): $.List<FileMetadata>;
|
|
245
|
-
_hasMetadata(): boolean;
|
|
246
|
-
_initMetadata(length: number): $.List<FileMetadata>;
|
|
247
|
-
set metadata(value: $.List<FileMetadata>);
|
|
248
|
-
toString(): string;
|
|
249
|
-
}
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/index.d.ts
|
|
252
|
-
/**
|
|
253
|
-
* Creates a new {@link PowerlinesAPI} instance.
|
|
254
|
-
*
|
|
255
|
-
* @param options - The user configuration options.
|
|
256
|
-
* @returns A promise that resolves to a {@link PowerlinesAPI} instance.
|
|
257
|
-
*/
|
|
258
|
-
declare function createPowerlines(options?: Partial<UserConfig>): Promise<PowerlinesAPI>;
|
|
259
|
-
//#endregion
|
|
260
|
-
export { FileStorage as a, PowerlinesAPI as c, FileMetadata_KeyValuePair as i, FileId as n, FileSystem as o, FileMetadata as r, _capnpFileId as s, createPowerlines as t };
|
|
261
|
-
//# sourceMappingURL=index-6BLROVtJ.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-6BLROVtJ.d.mts","names":[],"sources":["../src/api.ts","../schemas/fs.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwGA;;;;;;AAkC4B,cAlCf,aAkCe,CAAA,wBAjCF,cAiCE,GAjCe,cAiCf,CAAA,YA/Bf,GA+Be,CA/BX,eA+BW,CAAA,EA/BO,eA+BP,CAAA;EAAiB,CAAA,OAAA;EAGf;;;EACjB,IAAA,OAAA,CAAA,CAAA,EAzBW,UAyBX,CAzBsB,eAyBtB,CAAA;EAAR;;;;;EAmDG,QAAA,WAAA,CAAA;EACA;;;;;;;EAoXH,OAAA,IAAA,CAAA,wBA5auB,cA4avB,GA5awC,cA4axC,CAAA,CAAA,aAAA,EAAA,MAAA,EAAA,MAAA,EAzaO,iBAyaP,CA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AAA,CAAA;EAAT,IAAA,OAAA,CAAA,CAAA,EAGL,CAAA,CAAE,IAHG,CAGE,WAHF,CAAA;EAGE,WAAA,CAAA,CAAA,EAAA,OAAA;EAAL,YAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAMa,CAAA,CAAE,IANf,CAMoB,WANpB,CAAA;EAMoB,IAAA,OAAA,CAAA,KAAA,EAGlB,CAAA,CAAE,IAHgB,CAGX,WAHW,CAAA;EAAL,cAAA,CAAA,KAAA,EAMV,CAAA,CAAE,MANQ,CAMD,CAAA,CAAE,IAND,CAMM,YANN,CAAA,CAAA,CAAA,EAAA,IAAA;EAGN,eAAA,CAAA,CAAA,EAMP,CAAA,CAAE,MANK,CAME,CAAA,CAAE,IANJ,CAMS,YANT,CAAA,CAAA;EAAL,IAAA,QAAA,CAAA,CAAA,EASL,CAAA,CAAE,IATG,CASE,YATF,CAAA;EAGiB,YAAA,CAAA,CAAA,EAAA,OAAA;EAAL,aAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAYF,CAAA,CAAE,IAZA,CAYK,YAZL,CAAA;EAAT,IAAA,QAAA,CAAA,KAAA,EAeJ,CAAA,CAAE,IAfE,CAeG,YAfH,CAAA;EAGW,QAAA,CAAA,CAAA,EAAA,MAAA;;;;ADzFrC;;;;;;AAkC4B,iBElGN,gBAAA,CFkGM,OAAA,CAAA,EEjGjB,OFiGiB,CEjGT,UFiGS,CAAA,CAAA,EEhGzB,OFgGyB,CEhGjB,aFgGiB,CAAA"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { M as ResolvedEntryTypeDefinition, Mt as SourceFile, Nt as TransformResult$1, P as WorkspaceConfig, _t as Context, i as Config, p as LogFn } from "./config-CK756s0L.mjs";
|
|
2
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
3
|
-
import MagicString from "magic-string";
|
|
4
|
-
import { TransformResult } from "unplugin";
|
|
5
|
-
import { TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
6
|
-
|
|
7
|
-
//#region ../core/src/lib/entry.d.ts
|
|
8
|
-
declare function resolveEntryOutput(context: Context, typeDefinition: TypeDefinition): string;
|
|
9
|
-
declare function resolveInput(context: Context, typeDefinition: TypeDefinition, input?: TypeDefinitionParameter, output?: string): ResolvedEntryTypeDefinition;
|
|
10
|
-
/**
|
|
11
|
-
* Resolves multiple type definitions into their corresponding resolved entry type definitions.
|
|
12
|
-
*
|
|
13
|
-
* @param context - The current context
|
|
14
|
-
* @param typeDefinitions - The type definitions to resolve.
|
|
15
|
-
* @returns A promise that resolves to an array of resolved entry type definitions.
|
|
16
|
-
*/
|
|
17
|
-
declare function resolveInputs(context: Context, typeDefinitions: TypeDefinitionParameter | TypeDefinitionParameter[] | Record<string, TypeDefinitionParameter | TypeDefinitionParameter[]>): Promise<ResolvedEntryTypeDefinition[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Resolves multiple type definitions into their corresponding resolved entry type definitions.
|
|
20
|
-
*
|
|
21
|
-
* @param context - The current context
|
|
22
|
-
* @param typeDefinitions - The type definitions to resolve.
|
|
23
|
-
* @returns A promise that resolves to an array of resolved entry type definitions.
|
|
24
|
-
*/
|
|
25
|
-
declare function resolveInputsSync(context: Context, typeDefinitions: TypeDefinitionParameter | TypeDefinitionParameter[] | Record<string, TypeDefinitionParameter | TypeDefinitionParameter[]>): ResolvedEntryTypeDefinition[];
|
|
26
|
-
/**
|
|
27
|
-
* Checks if the provided entry is a type definition.
|
|
28
|
-
*
|
|
29
|
-
* @param entry - The entry to check.
|
|
30
|
-
* @returns True if the entry is a type definition, false otherwise.
|
|
31
|
-
*/
|
|
32
|
-
declare function isTypeDefinition(entry: any): entry is TypeDefinition;
|
|
33
|
-
/**
|
|
34
|
-
* Checks if the provided entry is a resolved entry type definition.
|
|
35
|
-
*
|
|
36
|
-
* @param entry - The entry to check.
|
|
37
|
-
* @returns True if the entry is a resolved entry type definition, false otherwise.
|
|
38
|
-
*/
|
|
39
|
-
declare function isResolvedEntryTypeDefinition(entry: TypeDefinitionParameter | ResolvedEntryTypeDefinition): entry is ResolvedEntryTypeDefinition;
|
|
40
|
-
/**
|
|
41
|
-
* Get unique inputs from the provided list.
|
|
42
|
-
*
|
|
43
|
-
* @param inputs - The entry points to process.
|
|
44
|
-
* @returns An array of unique inputs (by file path or content hash).
|
|
45
|
-
*/
|
|
46
|
-
declare function getUniqueInputs(inputs?: Config["input"]): Config["input"];
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region ../core/src/lib/logger.d.ts
|
|
49
|
-
interface CreateLogOptions {
|
|
50
|
-
name?: string;
|
|
51
|
-
logLevel?: LogLevelLabel | null;
|
|
52
|
-
customLogger?: LogFn;
|
|
53
|
-
colors?: WorkspaceConfig["colors"];
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Create a logging function with a specific name and options.
|
|
57
|
-
*
|
|
58
|
-
* @param name - The name of the logging function.
|
|
59
|
-
* @param options - The options to configure the logging function.
|
|
60
|
-
* @returns A logging function.
|
|
61
|
-
*/
|
|
62
|
-
declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
|
|
63
|
-
declare const extendLog: (logFn: LogFn, name: string) => LogFn;
|
|
64
|
-
declare type __ΩCreateLogOptions = any[];
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region ../core/src/lib/utilities/file-header.d.ts
|
|
67
|
-
interface FileHeaderOptions {
|
|
68
|
-
directive?: string | null;
|
|
69
|
-
prettierIgnore?: boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Generates a file header comment with a warning about automatic overwriting.
|
|
73
|
-
*
|
|
74
|
-
* @param overwrite - Whether the file will be automatically overwritten. If `false`, the warning will indicate that the file will not be overwritten. If `true` or omitted, the warning will indicate that the file will be overwritten.
|
|
75
|
-
* @param framework - The name of the framework to include in the warning message. Defaults to "powerlines".
|
|
76
|
-
* @returns A string containing the file header warning message.
|
|
77
|
-
*/
|
|
78
|
-
declare function getFileHeaderWarningText(overwrite?: boolean, framework?: string): string;
|
|
79
|
-
/**
|
|
80
|
-
* Generates a file header warning message based on the provided context.
|
|
81
|
-
*
|
|
82
|
-
* @param context - The Powerlines context.
|
|
83
|
-
* @returns A string containing the file header warning message.
|
|
84
|
-
*/
|
|
85
|
-
declare function getFileHeaderWarning(context: Context): string;
|
|
86
|
-
/**
|
|
87
|
-
* Generates a file header comment for a generated source file, including a warning about automatic overwriting.
|
|
88
|
-
*
|
|
89
|
-
* @param context - The Powerlines context.
|
|
90
|
-
* @param comment - The comment syntax to use for the header (e.g., `//` for JavaScript/TypeScript, `#` for Python). Defaults to `//`.
|
|
91
|
-
* @returns A string containing the file header comment.
|
|
92
|
-
*/
|
|
93
|
-
declare function getFileHeader(context: Context, comment?: string): string;
|
|
94
|
-
/**
|
|
95
|
-
* Generates a file header comment for a generated TypeScript source file, including a warning about automatic overwriting.
|
|
96
|
-
*
|
|
97
|
-
* @param context - The Powerlines context.
|
|
98
|
-
* @param options - Additional options for generating the file header, such as a directive to include and whether to add a Prettier ignore comment.
|
|
99
|
-
* @returns A string containing the file header comment for a TypeScript file.
|
|
100
|
-
*/
|
|
101
|
-
declare function getTypescriptFileHeader(context: Context, options?: FileHeaderOptions): string;
|
|
102
|
-
declare type __ΩFileHeaderOptions = any[];
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region ../core/src/lib/utilities/format.d.ts
|
|
105
|
-
/**
|
|
106
|
-
* Formats code using Prettier based on the file path.
|
|
107
|
-
*
|
|
108
|
-
* @param context - The Powerlines context.
|
|
109
|
-
* @param path - The file path to use for resolving Prettier configuration.
|
|
110
|
-
* @param data - The code string to format.
|
|
111
|
-
* @param force - Whether to force formatting even for output/build paths.
|
|
112
|
-
* @returns A promise that resolves to the formatted code string.
|
|
113
|
-
*/
|
|
114
|
-
declare function format(context: Context, path: string, data: string, force?: boolean): Promise<string>;
|
|
115
|
-
/**
|
|
116
|
-
* Formats all files in a folder using Prettier based on their file paths.
|
|
117
|
-
*
|
|
118
|
-
* @param context - The Powerlines context.
|
|
119
|
-
* @param path - The folder path containing files to format.
|
|
120
|
-
* @returns A promise that resolves when all files have been formatted.
|
|
121
|
-
*/
|
|
122
|
-
declare function formatFolder(context: Context, path: string): Promise<void>;
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region ../core/src/lib/utilities/source-file.d.ts
|
|
125
|
-
/**
|
|
126
|
-
* Get the string from the source.
|
|
127
|
-
*
|
|
128
|
-
* @param code - The source string or magic string.
|
|
129
|
-
* @returns The source string.
|
|
130
|
-
*/
|
|
131
|
-
declare function getString(code: string | MagicString | TransformResult): string;
|
|
132
|
-
/**
|
|
133
|
-
* Get the magic string.
|
|
134
|
-
*
|
|
135
|
-
* @param code - The source string or magic string.
|
|
136
|
-
* @returns The magic string.
|
|
137
|
-
*/
|
|
138
|
-
declare function getMagicString(code: string | MagicString): MagicString;
|
|
139
|
-
/**
|
|
140
|
-
* Get the source file.
|
|
141
|
-
*
|
|
142
|
-
* @param code - The source code.
|
|
143
|
-
* @param id - The name of the file.
|
|
144
|
-
* @returns The source file.
|
|
145
|
-
*/
|
|
146
|
-
declare function getSourceFile(code: string | MagicString, id: string): SourceFile;
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region ../core/src/lib/utilities/source-map.d.ts
|
|
149
|
-
/**
|
|
150
|
-
* Generate code with source map.
|
|
151
|
-
*
|
|
152
|
-
* @param code - The source code.
|
|
153
|
-
* @param id - The file name.
|
|
154
|
-
* @param transpiled - The transpiled code.
|
|
155
|
-
* @returns The compiler result.
|
|
156
|
-
*/
|
|
157
|
-
declare function generateSourceMap(code: MagicString, id: string, transpiled?: string): TransformResult$1 | undefined;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region ../core/src/lib/utilities/write-file.d.ts
|
|
160
|
-
/**
|
|
161
|
-
* Writes and formats a file to the file system
|
|
162
|
-
*
|
|
163
|
-
* @param log - The logging function to use for logging errors
|
|
164
|
-
* @param filepath - The file path to write the file
|
|
165
|
-
* @param content - The content to write to the file
|
|
166
|
-
* @param skipFormat - Should the plugin skip formatting the `content` string with Prettier
|
|
167
|
-
*/
|
|
168
|
-
declare function writeFile(log: LogFn, filepath: string, content: string, skipFormat?: boolean): Promise<void>;
|
|
169
|
-
//#endregion
|
|
170
|
-
export { resolveInputs as C, resolveInput as S, extendLog as _, getString as a, isTypeDefinition as b, FileHeaderOptions as c, getFileHeaderWarning as d, getFileHeaderWarningText as f, createLog as g, __ΩCreateLogOptions as h, getSourceFile as i, __ΩFileHeaderOptions as l, CreateLogOptions as m, generateSourceMap as n, format as o, getTypescriptFileHeader as p, getMagicString as r, formatFolder as s, writeFile as t, getFileHeader as u, getUniqueInputs as v, resolveInputsSync as w, resolveEntryOutput as x, isResolvedEntryTypeDefinition as y };
|
|
171
|
-
//# sourceMappingURL=index-C7W0kmm7.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-C7W0kmm7.d.mts","names":[],"sources":["../../core/src/lib/entry.ts","../../core/src/lib/logger.ts","../../core/src/lib/utilities/file-header.ts","../../core/src/lib/utilities/format.ts","../../core/src/lib/utilities/source-file.ts","../../core/src/lib/utilities/source-map.ts","../../core/src/lib/utilities/write-file.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAsCgB,kBAAA,UACL,yBACO;iBA6BF,YAAA,UACL,yBACO,wBACR,2CAEP;;AApCH;AA+BA;;;;;AAK8B,iBAeR,aAAA,CAfQ,OAAA,EAgBnB,OAhBmB,EAAA,eAAA,EAkBxB,uBAlBwB,GAmBxB,uBAnBwB,EAAA,GAoBxB,MApBwB,CAAA,MAAA,EAoBT,uBApBS,GAoBiB,uBApBjB,EAAA,CAAA,CAAA,EAqB3B,OArB2B,CAqBnB,2BArBmB,EAAA,CAAA;AAe9B;;;;;;;AAMW,iBA2EK,iBAAA,CA3EL,OAAA,EA4EA,OA5EA,EAAA,eAAA,EA8EL,uBA9EK,GA+EL,uBA/EK,EAAA,GAgFL,MAhFK,CAAA,MAAA,EAgFU,uBAhFV,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