powerlines 0.41.5 → 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-BYw9Go8X.mjs → api-6f2oVwGy.mjs} +142 -333
- package/dist/api-6f2oVwGy.mjs.map +1 -0
- package/dist/{api-C0__VShS.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-BYw9Go8X.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-CQvxEQNO.cjs +0 -100
- package/dist/esbuild-Ci47pk0Y.mjs +0 -82
- package/dist/esbuild-Ci47pk0Y.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-Bfem3MO5.cjs +0 -83
- package/dist/rolldown-gZExn2eg.mjs +0 -65
- package/dist/rolldown-gZExn2eg.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-KO7wzRoS.cjs +0 -189
- package/dist/vite-rDviBWJz.mjs +0 -171
- package/dist/vite-rDviBWJz.mjs.map +0 -1
- package/dist/webpack-CB2Lw9tt.cjs +0 -107
- package/dist/webpack-_lZGia72.mjs +0 -88
- package/dist/webpack-_lZGia72.mjs.map +0 -1
- package/dist/write-file-CpNWY8SV.d.cts +0 -171
- package/dist/write-file-CpNWY8SV.d.cts.map +0 -1
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import * as esbuild$1 from "esbuild";
|
|
2
|
+
import { EsbuildPluginUserConfig } from "@powerlines/plugin-esbuild/types/plugin";
|
|
3
|
+
import esbuild, { default as plugin } from "@powerlines/plugin-esbuild";
|
|
4
4
|
|
|
5
|
-
//#region ../plugin-esbuild/src/types/build.d.ts
|
|
6
|
-
type EsbuildOptions = Omit<BuildOptions, "entryPoints" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel">;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region ../plugin-esbuild/src/types/plugin.d.ts
|
|
9
|
-
type EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
10
|
-
interface EsbuildPluginUserConfig extends UserConfig {
|
|
11
|
-
esbuild?: EsbuildPluginOptions;
|
|
12
|
-
}
|
|
13
|
-
interface EsbuildPluginResolvedConfig extends ResolvedConfig {
|
|
14
|
-
esbuild: EsbuildOptions;
|
|
15
|
-
}
|
|
16
|
-
type EsbuildPluginContext<TResolvedConfig extends EsbuildPluginResolvedConfig = EsbuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../plugin-esbuild/src/index.d.ts
|
|
19
|
-
declare module "@powerlines/core" {
|
|
20
|
-
interface Config {
|
|
21
|
-
esbuild?: EsbuildPluginOptions;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
26
|
-
*/
|
|
27
|
-
declare const plugin: <TContext extends EsbuildPluginContext = EsbuildPluginContext>(options?: EsbuildPluginOptions) => Plugin<TContext>;
|
|
28
|
-
//#endregion
|
|
29
5
|
//#region src/esbuild.d.ts
|
|
30
6
|
/**
|
|
31
7
|
* An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
|
|
@@ -43,7 +19,7 @@ declare const plugin: <TContext extends EsbuildPluginContext = EsbuildPluginCont
|
|
|
43
19
|
*
|
|
44
20
|
* ```
|
|
45
21
|
*/
|
|
46
|
-
declare const unplugin: (options: Partial<EsbuildPluginUserConfig>) =>
|
|
22
|
+
declare const unplugin: (options: Partial<EsbuildPluginUserConfig>) => esbuild$1.Plugin;
|
|
47
23
|
//#endregion
|
|
48
|
-
export { unplugin as default, unplugin as "module.exports", unplugin,
|
|
24
|
+
export { unplugin as default, unplugin as "module.exports", unplugin, esbuild, plugin };
|
|
49
25
|
//# sourceMappingURL=esbuild.d.cts.map
|
package/dist/esbuild.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.d.cts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"esbuild.d.cts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;;AA8CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,OAAA,CAAA,uBAAA,MAAA,SAAA,CAAA,MAAA"}
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "./index-2JXW-b2-.mjs";
|
|
5
|
-
import * as esbuild0 from "esbuild";
|
|
6
|
-
import { BuildOptions } from "esbuild";
|
|
7
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
1
|
+
import esbuild, { default as plugin } from "@powerlines/plugin-esbuild";
|
|
2
|
+
import * as esbuild$1 from "esbuild";
|
|
3
|
+
import { EsbuildPluginUserConfig } from "@powerlines/plugin-esbuild/types/plugin";
|
|
8
4
|
|
|
9
|
-
//#region ../plugin-esbuild/src/types/build.d.ts
|
|
10
|
-
type EsbuildOptions = Omit<BuildOptions, "entryPoints" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel">;
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region ../plugin-esbuild/src/types/plugin.d.ts
|
|
13
|
-
type EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
14
|
-
interface EsbuildPluginUserConfig extends UserConfig {
|
|
15
|
-
esbuild?: EsbuildPluginOptions;
|
|
16
|
-
}
|
|
17
|
-
interface EsbuildPluginResolvedConfig extends ResolvedConfig {
|
|
18
|
-
esbuild: EsbuildOptions;
|
|
19
|
-
}
|
|
20
|
-
type EsbuildPluginContext<TResolvedConfig extends EsbuildPluginResolvedConfig = EsbuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region ../plugin-esbuild/src/index.d.ts
|
|
23
|
-
declare module "@powerlines/core" {
|
|
24
|
-
interface Config {
|
|
25
|
-
esbuild?: EsbuildPluginOptions;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
30
|
-
*/
|
|
31
|
-
declare const plugin: <TContext extends EsbuildPluginContext = EsbuildPluginContext>(options?: EsbuildPluginOptions) => Plugin<TContext>;
|
|
32
|
-
//#endregion
|
|
33
5
|
//#region src/esbuild.d.ts
|
|
34
6
|
/**
|
|
35
7
|
* An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
|
|
@@ -47,7 +19,7 @@ declare const plugin: <TContext extends EsbuildPluginContext = EsbuildPluginCont
|
|
|
47
19
|
*
|
|
48
20
|
* ```
|
|
49
21
|
*/
|
|
50
|
-
declare const unplugin: (options: Partial<EsbuildPluginUserConfig>) =>
|
|
22
|
+
declare const unplugin: (options: Partial<EsbuildPluginUserConfig>) => esbuild$1.Plugin;
|
|
51
23
|
//#endregion
|
|
52
|
-
export { unplugin as default, unplugin as "module.exports", unplugin,
|
|
24
|
+
export { unplugin as default, unplugin as "module.exports", unplugin, esbuild, plugin };
|
|
53
25
|
//# sourceMappingURL=esbuild.d.mts.map
|
package/dist/esbuild.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.d.mts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"esbuild.d.mts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;;AA8CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,OAAA,CAAA,uBAAA,MAAA,SAAA,CAAA,MAAA"}
|
package/dist/esbuild.mjs
CHANGED
|
@@ -1,13 +1,45 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./tsconfig-
|
|
3
|
-
import "./
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "./utils-DoQcX7Sk.mjs";
|
|
9
|
-
import "./virtual-B9imjOqe.mjs";
|
|
10
|
-
import "./resolve-options-DHL3RM8F.mjs";
|
|
11
|
-
import { n as unplugin, r as src_default, t as esbuild_default } from "./esbuild-Ci47pk0Y.mjs";
|
|
1
|
+
import { a as createUnpluginFactory } from "./api-6f2oVwGy.mjs";
|
|
2
|
+
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
|
+
import "./virtual-DvkJm7gK.mjs";
|
|
4
|
+
import { createEsbuildPlugin } from "unplugin";
|
|
5
|
+
import { resolveOptions } from "@powerlines/plugin-esbuild/helpers/resolve-options";
|
|
6
|
+
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
7
|
+
import esbuild, { default as plugin } from "@powerlines/plugin-esbuild";
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
//#region src/esbuild.ts
|
|
10
|
+
/**
|
|
11
|
+
* An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
|
|
12
|
+
*
|
|
13
|
+
* @see https://esbuild.github.io/plugins/
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```js
|
|
17
|
+
* // esbuild.config.js
|
|
18
|
+
* import powerlines from "powerlines/esbuild";
|
|
19
|
+
*
|
|
20
|
+
* export default {
|
|
21
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
22
|
+
* };
|
|
23
|
+
*
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
const unplugin = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin) => {
|
|
27
|
+
return {
|
|
28
|
+
...plugin,
|
|
29
|
+
esbuild: {
|
|
30
|
+
config: (options) => {
|
|
31
|
+
options ??= {};
|
|
32
|
+
const result = resolveOptions(api.context);
|
|
33
|
+
for (const key in result) if (isUndefined(options[key]) && !isUndefined(result[key])) options[key] = result[key];
|
|
34
|
+
},
|
|
35
|
+
setup: async (build) => {
|
|
36
|
+
const environment = await api.context.getEnvironment();
|
|
37
|
+
return api.callHook("esbuild:setup", { environment }, build);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { unplugin as default, unplugin as "module.exports", unplugin, esbuild, plugin };
|
|
45
|
+
//# sourceMappingURL=esbuild.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esbuild.mjs","names":[],"sources":["../src/esbuild.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginUserConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<Partial<EsbuildPluginUserConfig>>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {} as BuildOptions;\n\n const result = resolveOptions(api.context);\n for (const key in result) {\n if (\n isUndefined(options[key as keyof BuildOptions]) &&\n !isUndefined(result[key as keyof BuildOptions])\n ) {\n options[key as keyof BuildOptions] = result[\n key as keyof BuildOptions\n ] as any;\n }\n }\n },\n setup: async (build: PluginBuild) => {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"esbuild:setup\", { environment }, build);\n }\n }\n };\n })\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,WAAW,oBACtB,sBAAsB,YAAY,KAAK,WAAW;AAChD,QAAO;EACL,GAAG;EACH,SAAS;GACP,SAAQ,YAAW;AACjB,gBAAY,EAAE;IAEd,MAAM,SAAS,eAAe,IAAI,QAAQ;AAC1C,SAAK,MAAM,OAAO,OAChB,KACE,YAAY,QAAQ,KAA2B,IAC/C,CAAC,YAAY,OAAO,KAA2B,CAE/C,SAAQ,OAA6B,OACnC;;GAKR,OAAO,OAAO,UAAuB;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,iBAAiB,EAAE,aAAa,EAAE,MAAM;;GAE/D;EACF;EACD,CACH"}
|
package/dist/farm.cjs
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
const require_chunk = require('./chunk-
|
|
3
|
-
const require_api = require('./api-
|
|
4
|
-
require('./tsconfig-
|
|
5
|
-
require('./
|
|
6
|
-
require('./plugin-CZ_PJPpQ.cjs');
|
|
7
|
-
require('./paths-YmyIGEVo.cjs');
|
|
8
|
-
require('./constants-CZh5rsgh.cjs');
|
|
9
|
-
require('./config-D86Vw7SC.cjs');
|
|
10
|
-
require('./utils-BbDma_5Y.cjs');
|
|
11
|
-
require('./virtual-B1MLgqnQ.cjs');
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
+
const require_api = require('./api-CFXLaAxU.cjs');
|
|
4
|
+
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
|
+
require('./virtual-Cbvj12lU.cjs');
|
|
12
6
|
let unplugin = require("unplugin");
|
|
13
7
|
|
|
14
8
|
//#region src/farm.ts
|
|
@@ -30,9 +24,8 @@ let unplugin = require("unplugin");
|
|
|
30
24
|
* ```
|
|
31
25
|
*/
|
|
32
26
|
const farm = (0, unplugin.createFarmPlugin)(require_api.createUnpluginFactory("farm"));
|
|
33
|
-
var farm_default = farm;
|
|
34
27
|
|
|
35
28
|
//#endregion
|
|
36
|
-
exports.default =
|
|
29
|
+
exports.default = farm;
|
|
37
30
|
exports.farm = farm;
|
|
38
31
|
exports["module.exports"] = farm;
|
package/dist/farm.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _powerlines_core0 from "@powerlines/core";
|
|
2
2
|
import * as _farmfe_core0 from "@farmfe/core";
|
|
3
3
|
|
|
4
4
|
//#region src/farm.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* A Farm plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
7
|
*
|
|
@@ -20,7 +19,7 @@ import * as _farmfe_core0 from "@farmfe/core";
|
|
|
20
19
|
*
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
|
-
declare const farm: (options: Partial<UserConfig>) => _farmfe_core0.JsPlugin;
|
|
22
|
+
declare const farm: (options: Partial<_powerlines_core0.UserConfig>) => _farmfe_core0.JsPlugin;
|
|
24
23
|
//#endregion
|
|
25
24
|
export { farm as default, farm, farm as "module.exports" };
|
|
26
25
|
//# sourceMappingURL=farm.d.cts.map
|
package/dist/farm.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.d.cts","names":[],"sources":["../src/farm.ts"],"
|
|
1
|
+
{"version":3,"file":"farm.d.cts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;AAsCA;;;;;;;;;;;;;cAAa,IAAA,GAAI,OAAA,EAAA,OAAA,CAAkD,iBAAA,CAAlD,UAAA,MAAA,aAAA,CAAA,QAAA"}
|
package/dist/farm.d.mts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./config-CiPXgwzt.mjs";
|
|
3
|
-
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-2JXW-b2-.mjs";
|
|
1
|
+
import * as _powerlines_core0 from "@powerlines/core";
|
|
5
2
|
import * as _farmfe_core0 from "@farmfe/core";
|
|
6
3
|
|
|
7
4
|
//#region src/farm.d.ts
|
|
8
|
-
|
|
9
5
|
/**
|
|
10
6
|
* A Farm plugin that will invoke the Powerlines API hooks during the build process.
|
|
11
7
|
*
|
|
@@ -23,7 +19,7 @@ import * as _farmfe_core0 from "@farmfe/core";
|
|
|
23
19
|
*
|
|
24
20
|
* ```
|
|
25
21
|
*/
|
|
26
|
-
declare const farm: (options: Partial<UserConfig>) => _farmfe_core0.JsPlugin;
|
|
22
|
+
declare const farm: (options: Partial<_powerlines_core0.UserConfig>) => _farmfe_core0.JsPlugin;
|
|
27
23
|
//#endregion
|
|
28
24
|
export { farm as default, farm, farm as "module.exports" };
|
|
29
25
|
//# sourceMappingURL=farm.d.mts.map
|
package/dist/farm.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.d.mts","names":[],"sources":["../src/farm.ts"],"
|
|
1
|
+
{"version":3,"file":"farm.d.mts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;AAsCA;;;;;;;;;;;;;cAAa,IAAA,GAAI,OAAA,EAAA,OAAA,CAAkD,iBAAA,CAAlD,UAAA,MAAA,aAAA,CAAA,QAAA"}
|
package/dist/farm.mjs
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { a as createUnpluginFactory } from "./api-
|
|
2
|
-
import "./tsconfig-
|
|
3
|
-
import "./
|
|
4
|
-
import "./plugin-E5foRD0k.mjs";
|
|
5
|
-
import "./paths-CS8ecCnW.mjs";
|
|
6
|
-
import "./constants-cXxSHhNp.mjs";
|
|
7
|
-
import "./config-D4Fh2gQL.mjs";
|
|
8
|
-
import "./utils-DoQcX7Sk.mjs";
|
|
9
|
-
import "./virtual-B9imjOqe.mjs";
|
|
1
|
+
import { a as createUnpluginFactory } from "./api-6f2oVwGy.mjs";
|
|
2
|
+
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
|
+
import "./virtual-DvkJm7gK.mjs";
|
|
10
4
|
import { createFarmPlugin } from "unplugin";
|
|
11
5
|
|
|
12
6
|
//#region src/farm.ts
|
|
@@ -28,8 +22,7 @@ import { createFarmPlugin } from "unplugin";
|
|
|
28
22
|
* ```
|
|
29
23
|
*/
|
|
30
24
|
const farm = createFarmPlugin(createUnpluginFactory("farm"));
|
|
31
|
-
var farm_default = farm;
|
|
32
25
|
|
|
33
26
|
//#endregion
|
|
34
|
-
export {
|
|
27
|
+
export { farm as default, farm, farm as "module.exports" };
|
|
35
28
|
//# sourceMappingURL=farm.mjs.map
|
package/dist/farm.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.mjs","names":[],"sources":["../src/farm.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createFarmPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\n/**\n * A Farm plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://farmjs.dev/plugins/writing-plugins\n *\n * @example\n * ```ts\n * // farm.config.ts\n * import powerlines from \"powerlines/farm\";\n * import { defineConfig } from \"@farmfe/core\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const farm = createFarmPlugin(createUnpluginFactory(\"farm\"));\n\nexport default farm;\nexport { farm as \"module.exports\" };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"farm.mjs","names":[],"sources":["../src/farm.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createFarmPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\n/**\n * A Farm plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://farmjs.dev/plugins/writing-plugins\n *\n * @example\n * ```ts\n * // farm.config.ts\n * import powerlines from \"powerlines/farm\";\n * import { defineConfig } from \"@farmfe/core\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const farm = createFarmPlugin(createUnpluginFactory(\"farm\"));\n\nexport default farm;\nexport { farm as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAa,OAAO,iBAAiB,sBAAsB,OAAO,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
const require_chunk = require('./chunk-
|
|
3
|
-
const require_api = require('./api-
|
|
4
|
-
require('./tsconfig-
|
|
5
|
-
require('./
|
|
6
|
-
require(
|
|
7
|
-
require('./paths-YmyIGEVo.cjs');
|
|
8
|
-
require('./constants-CZh5rsgh.cjs');
|
|
9
|
-
require('./config-D86Vw7SC.cjs');
|
|
10
|
-
require('./utils-BbDma_5Y.cjs');
|
|
11
|
-
require('./virtual-B1MLgqnQ.cjs');
|
|
12
|
-
let __stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
+
const require_api = require('./api-CFXLaAxU.cjs');
|
|
4
|
+
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
|
+
require('./virtual-Cbvj12lU.cjs');
|
|
6
|
+
let _stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
|
|
13
7
|
|
|
14
8
|
//#region src/index.ts
|
|
15
9
|
/**
|
|
@@ -28,7 +22,7 @@ let __stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
|
|
|
28
22
|
*/
|
|
29
23
|
async function createPowerlines(options = {}) {
|
|
30
24
|
options.root ??= process.cwd();
|
|
31
|
-
const workspaceRoot = (0,
|
|
25
|
+
const workspaceRoot = (0, _stryke_fs_get_workspace_root.getWorkspaceRoot)(options.root);
|
|
32
26
|
return require_api.PowerlinesAPI.from(workspaceRoot, options);
|
|
33
27
|
}
|
|
34
28
|
var src_default = require_api.PowerlinesAPI;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,263 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { n as __exportAll, r as __reExport, t as types_d_exports } from "./types-DerAvFjs.cjs";
|
|
2
|
+
import * as _powerlines_core0 from "@powerlines/core";
|
|
3
|
+
import * as $ from "@stryke/capnp";
|
|
4
|
+
export * from "@powerlines/core";
|
|
5
|
+
|
|
6
|
+
//#region src/api.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The Powerlines API class
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
declare class PowerlinesAPI<TResolvedConfig extends types_d_exports.ResolvedConfig = types_d_exports.ResolvedConfig> implements types_d_exports.API<TResolvedConfig>, AsyncDisposable {
|
|
16
|
+
#private;
|
|
17
|
+
/**
|
|
18
|
+
* The Powerlines context
|
|
19
|
+
*/
|
|
20
|
+
get context(): types_d_exports.APIContext<TResolvedConfig>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a new Powerlines API instance
|
|
23
|
+
*
|
|
24
|
+
* @param context - The Powerlines context
|
|
25
|
+
*/
|
|
26
|
+
private constructor();
|
|
27
|
+
/**
|
|
28
|
+
* Initialize a Powerlines API instance
|
|
29
|
+
*
|
|
30
|
+
* @param workspaceRoot - The directory of the underlying workspace the Powerlines project exists in
|
|
31
|
+
* @param config - An object containing the configuration required to run Powerlines tasks.
|
|
32
|
+
* @returns A new instance of the Powerlines API
|
|
33
|
+
*/
|
|
34
|
+
static from<TResolvedConfig extends types_d_exports.ResolvedConfig = types_d_exports.ResolvedConfig>(workspaceRoot: string, config: types_d_exports.InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<PowerlinesAPI<TResolvedConfig>>;
|
|
35
|
+
/**
|
|
36
|
+
* Prepare the Powerlines API
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
40
|
+
*
|
|
41
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
42
|
+
*/
|
|
43
|
+
prepare(inlineConfig?: types_d_exports.PrepareInlineConfig | types_d_exports.NewInlineConfig | types_d_exports.CleanInlineConfig | types_d_exports.BuildInlineConfig | types_d_exports.LintInlineConfig | types_d_exports.DocsInlineConfig | types_d_exports.DeployInlineConfig): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new Powerlines project
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* This method will create a new Powerlines project in the current directory.
|
|
49
|
+
*
|
|
50
|
+
* @param inlineConfig - The inline configuration for the new command
|
|
51
|
+
* @returns A promise that resolves when the project has been created
|
|
52
|
+
*/
|
|
53
|
+
new(inlineConfig: types_d_exports.NewInlineConfig): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Clean any previously prepared artifacts
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* This method will remove the previous Powerlines artifacts from the project.
|
|
59
|
+
*
|
|
60
|
+
* @param inlineConfig - The inline configuration for the clean command
|
|
61
|
+
* @returns A promise that resolves when the clean command has completed
|
|
62
|
+
*/
|
|
63
|
+
clean(inlineConfig?: types_d_exports.CleanInlineConfig | types_d_exports.PrepareInlineConfig): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Lint the project
|
|
66
|
+
*
|
|
67
|
+
* @param inlineConfig - The inline configuration for the lint command
|
|
68
|
+
* @returns A promise that resolves when the lint command has completed
|
|
69
|
+
*/
|
|
70
|
+
lint(inlineConfig?: types_d_exports.LintInlineConfig | types_d_exports.BuildInlineConfig): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Build the project
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
76
|
+
*
|
|
77
|
+
* @param inlineConfig - The inline configuration for the build command
|
|
78
|
+
* @returns A promise that resolves when the build command has completed
|
|
79
|
+
*/
|
|
80
|
+
build(inlineConfig?: types_d_exports.BuildInlineConfig): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Prepare the documentation for the project
|
|
83
|
+
*
|
|
84
|
+
* @param inlineConfig - The inline configuration for the docs command
|
|
85
|
+
* @returns A promise that resolves when the documentation generation has completed
|
|
86
|
+
*/
|
|
87
|
+
docs(inlineConfig?: types_d_exports.DocsInlineConfig): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Deploy the project source code
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
93
|
+
*
|
|
94
|
+
* @param inlineConfig - The inline configuration for the deploy command
|
|
95
|
+
*/
|
|
96
|
+
deploy(inlineConfig?: types_d_exports.DeployInlineConfig): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Finalization process
|
|
99
|
+
*
|
|
100
|
+
* @remarks
|
|
101
|
+
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
102
|
+
*
|
|
103
|
+
* @returns A promise that resolves when the finalization process has completed
|
|
104
|
+
*/
|
|
105
|
+
finalize(): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Invokes the configured plugin hooks
|
|
108
|
+
*
|
|
109
|
+
* @remarks
|
|
110
|
+
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
111
|
+
*
|
|
112
|
+
* @param hook - The hook to call
|
|
113
|
+
* @param options - The options to provide to the hook
|
|
114
|
+
* @param args - The arguments to pass to the hook
|
|
115
|
+
* @returns The result of the hook call
|
|
116
|
+
*/
|
|
117
|
+
callHook<TKey extends string>(hook: TKey, options: types_d_exports.CallHookOptions & {
|
|
118
|
+
environment?: string | types_d_exports.EnvironmentContext<TResolvedConfig>;
|
|
119
|
+
}, ...args: types_d_exports.InferHookParameters<types_d_exports.PluginContext<TResolvedConfig>, TKey>): Promise<ReturnType<_powerlines_core0.InferHookFunction<types_d_exports.PluginContext<TResolvedConfig>, TKey>> | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Dispose of the Powerlines API instance
|
|
122
|
+
*
|
|
123
|
+
* @remarks
|
|
124
|
+
* This method will finalize the Powerlines API instance, cleaning up any resources used.
|
|
125
|
+
*/
|
|
126
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region schemas/fs.d.ts
|
|
130
|
+
declare const _capnpFileId: bigint;
|
|
131
|
+
declare class FileMetadata_KeyValuePair extends $.Struct {
|
|
132
|
+
static readonly _capnp: {
|
|
133
|
+
displayName: string;
|
|
134
|
+
id: string;
|
|
135
|
+
size: $.ObjectSize;
|
|
136
|
+
};
|
|
137
|
+
get key(): string;
|
|
138
|
+
set key(value: string);
|
|
139
|
+
get value(): string;
|
|
140
|
+
set value(value: string);
|
|
141
|
+
toString(): string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The identifier for the file data.
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
declare class FileMetadata extends $.Struct {
|
|
148
|
+
static readonly KeyValuePair: typeof FileMetadata_KeyValuePair;
|
|
149
|
+
static readonly _capnp: {
|
|
150
|
+
displayName: string;
|
|
151
|
+
id: string;
|
|
152
|
+
size: $.ObjectSize;
|
|
153
|
+
defaultType: string;
|
|
154
|
+
};
|
|
155
|
+
static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
|
|
156
|
+
/**
|
|
157
|
+
* The type of the file.
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
get id(): string;
|
|
161
|
+
set id(value: string);
|
|
162
|
+
/**
|
|
163
|
+
* The timestamp representing the file's creation date.
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
get type(): string;
|
|
167
|
+
set type(value: string);
|
|
168
|
+
/**
|
|
169
|
+
* Additional metadata associated with the file.
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
get timestamp(): number;
|
|
173
|
+
set timestamp(value: number);
|
|
174
|
+
_adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
|
|
175
|
+
_disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
|
|
176
|
+
get properties(): $.List<FileMetadata_KeyValuePair>;
|
|
177
|
+
_hasProperties(): boolean;
|
|
178
|
+
_initProperties(length: number): $.List<FileMetadata_KeyValuePair>;
|
|
179
|
+
set properties(value: $.List<FileMetadata_KeyValuePair>);
|
|
180
|
+
toString(): string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* An identifier for the file.
|
|
184
|
+
*
|
|
185
|
+
*/
|
|
186
|
+
declare class FileId extends $.Struct {
|
|
187
|
+
static readonly _capnp: {
|
|
188
|
+
displayName: string;
|
|
189
|
+
id: string;
|
|
190
|
+
size: $.ObjectSize;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A virtual (or actual) path to the file in the file system.
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
get id(): string;
|
|
197
|
+
set id(value: string);
|
|
198
|
+
get path(): string;
|
|
199
|
+
set path(value: string);
|
|
200
|
+
toString(): string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* An identifier for the file.
|
|
204
|
+
*
|
|
205
|
+
*/
|
|
206
|
+
declare class FileStorage extends $.Struct {
|
|
207
|
+
static readonly _capnp: {
|
|
208
|
+
displayName: string;
|
|
209
|
+
id: string;
|
|
210
|
+
size: $.ObjectSize;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* A virtual (or actual) path to the file in the file system.
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
get path(): string;
|
|
217
|
+
set path(value: string);
|
|
218
|
+
get code(): string;
|
|
219
|
+
set code(value: string);
|
|
220
|
+
toString(): string;
|
|
221
|
+
}
|
|
222
|
+
declare class FileSystem extends $.Struct {
|
|
223
|
+
static readonly _capnp: {
|
|
224
|
+
displayName: string;
|
|
225
|
+
id: string;
|
|
226
|
+
size: $.ObjectSize;
|
|
227
|
+
};
|
|
228
|
+
static _Ids: $.ListCtor<FileId>;
|
|
229
|
+
static _Storage: $.ListCtor<FileStorage>;
|
|
230
|
+
static _Metadata: $.ListCtor<FileMetadata>;
|
|
231
|
+
_adoptIds(value: $.Orphan<$.List<FileId>>): void;
|
|
232
|
+
_disownIds(): $.Orphan<$.List<FileId>>;
|
|
233
|
+
get ids(): $.List<FileId>;
|
|
234
|
+
_hasIds(): boolean;
|
|
235
|
+
_initIds(length: number): $.List<FileId>;
|
|
236
|
+
set ids(value: $.List<FileId>);
|
|
237
|
+
_adoptStorage(value: $.Orphan<$.List<FileStorage>>): void;
|
|
238
|
+
_disownStorage(): $.Orphan<$.List<FileStorage>>;
|
|
239
|
+
get storage(): $.List<FileStorage>;
|
|
240
|
+
_hasStorage(): boolean;
|
|
241
|
+
_initStorage(length: number): $.List<FileStorage>;
|
|
242
|
+
set storage(value: $.List<FileStorage>);
|
|
243
|
+
_adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
|
|
244
|
+
_disownMetadata(): $.Orphan<$.List<FileMetadata>>;
|
|
245
|
+
get metadata(): $.List<FileMetadata>;
|
|
246
|
+
_hasMetadata(): boolean;
|
|
247
|
+
_initMetadata(length: number): $.List<FileMetadata>;
|
|
248
|
+
set metadata(value: $.List<FileMetadata>);
|
|
249
|
+
toString(): string;
|
|
250
|
+
}
|
|
251
|
+
declare namespace index_d_exports {
|
|
252
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createPowerlines, PowerlinesAPI as default };
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Creates a new {@link PowerlinesAPI} instance.
|
|
256
|
+
*
|
|
257
|
+
* @param options - The user configuration options.
|
|
258
|
+
* @returns A promise that resolves to a {@link PowerlinesAPI} instance.
|
|
259
|
+
*/
|
|
260
|
+
declare function createPowerlines(options?: Partial<types_d_exports.UserConfig>): Promise<PowerlinesAPI>;
|
|
261
|
+
//#endregion
|
|
262
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, PowerlinesAPI as default, _capnpFileId, createPowerlines };
|
|
263
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
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