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/index.d.mts
CHANGED
|
@@ -1,7 +1,263 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { t as types_d_exports } from "./types-ro7jWCtL.mjs";
|
|
2
|
+
import * as $ from "@stryke/capnp";
|
|
3
|
+
import * as _powerlines_core0 from "@powerlines/core";
|
|
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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/api.ts","../schemas/fs.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;AAwGA;;cAAa,aAAA,yBACa,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,aAE9B,eAAA,CAAA,GAAA,CAAI,eAAA,GAAk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CAAA,GAAkB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,WAAA;EAAA,IAG9B,OAAA,CAAA,GAAW,CAAA,CAAE,IAAA,CAAK,WAAA;EAGtB,WAAA,CAAA;EAGA,YAAA,CAAa,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,WAAA;EAAA,IAGjC,OAAA,CAAQ,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,WAAA;EAG1B,cAAA,CAAe,KAAA,EAAO,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGtC,eAAA,CAAA,GAAmB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAG/B,QAAA,CAAA,GAAY,CAAA,CAAE,IAAA,CAAK,YAAA;EAGvB,YAAA,CAAA;EAGA,aAAA,CAAc,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAGlC,QAAA,CAAS,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGX,QAAA,CAAA;AAAA;AAAA;;;;;;;ADxGlB;;iBEhEsB,gBAAA,CACpB,OAAA,GAAS,OAAA,CAAQ,eAAA,CAAA,UAAA,IAChB,OAAA,CAAQ,aAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
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 { c as FileMetadata, d as FileSystem, f as _capnpFileId, l as FileMetadata_KeyValuePair, s as FileId, t as PowerlinesAPI, u as FileStorage } from "./api-6f2oVwGy.mjs";
|
|
2
|
+
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
|
+
import "./virtual-DvkJm7gK.mjs";
|
|
10
4
|
import { getWorkspaceRoot } from "@stryke/fs/get-workspace-root";
|
|
11
5
|
|
|
12
6
|
//#region src/index.ts
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { PowerlinesAPI } from \"./api\";\nimport { UserConfig } from \"./types\";\n\nexport * from \"../schemas/fs\";\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesAPI} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesAPI} instance.\n */\nexport async function createPowerlines(\n options: Partial<UserConfig> = {}\n): Promise<PowerlinesAPI> {\n options.root ??= process.cwd();\n const workspaceRoot = getWorkspaceRoot(options.root);\n\n return PowerlinesAPI.from(\n workspaceRoot,\n options as Parameters<typeof PowerlinesAPI.from>[1]\n );\n}\n\nexport { PowerlinesAPI };\nexport default PowerlinesAPI;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { PowerlinesAPI } from \"./api\";\nimport { UserConfig } from \"./types\";\n\nexport * from \"../schemas/fs\";\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesAPI} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesAPI} instance.\n */\nexport async function createPowerlines(\n options: Partial<UserConfig> = {}\n): Promise<PowerlinesAPI> {\n options.root ??= process.cwd();\n const workspaceRoot = getWorkspaceRoot(options.root);\n\n return PowerlinesAPI.from(\n workspaceRoot,\n options as Parameters<typeof PowerlinesAPI.from>[1]\n );\n}\n\nexport { PowerlinesAPI };\nexport default PowerlinesAPI;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwCA,eAAsB,iBACpB,UAA+B,EAAE,EACT;AACxB,SAAQ,SAAS,QAAQ,KAAK;CAC9B,MAAM,gBAAgB,iBAAiB,QAAQ,KAAK;AAEpD,QAAO,cAAc,KACnB,eACA,QACD;;AAIH,kBAAe"}
|
package/dist/next.cjs
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
require('./api-
|
|
3
|
-
require('./tsconfig-
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
6
|
-
require('./paths-YmyIGEVo.cjs');
|
|
7
|
-
require('./constants-CZh5rsgh.cjs');
|
|
8
|
-
require('./config-D86Vw7SC.cjs');
|
|
9
|
-
require('./utils-BbDma_5Y.cjs');
|
|
10
|
-
require('./virtual-B1MLgqnQ.cjs');
|
|
11
|
-
const require_webpack = require('./webpack-CB2Lw9tt.cjs');
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
require('./api-CFXLaAxU.cjs');
|
|
3
|
+
require('./tsconfig-BJrUrPC_.cjs');
|
|
4
|
+
require('./virtual-Cbvj12lU.cjs');
|
|
5
|
+
const require_webpack = require('./webpack.cjs');
|
|
12
6
|
|
|
13
7
|
//#region src/next.ts
|
|
14
8
|
/**
|
|
@@ -35,14 +29,13 @@ function next(config = {}) {
|
|
|
35
29
|
webpack(webpackConfig, context) {
|
|
36
30
|
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
37
31
|
result.plugins ??= [];
|
|
38
|
-
result.plugins.push(require_webpack.
|
|
32
|
+
result.plugins.push(require_webpack.default(webpackConfig));
|
|
39
33
|
return result;
|
|
40
34
|
}
|
|
41
35
|
};
|
|
42
36
|
}
|
|
43
|
-
var next_default = next;
|
|
44
37
|
|
|
45
38
|
//#endregion
|
|
46
|
-
exports.default =
|
|
39
|
+
exports.default = next;
|
|
47
40
|
exports["module.exports"] = next;
|
|
48
41
|
exports.next = next;
|
package/dist/next.d.cts
CHANGED
package/dist/next.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.cts","names":[],"sources":["../src/next.ts"],"
|
|
1
|
+
{"version":3,"file":"next.d.cts","names":[],"sources":["../src/next.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;iBAAgB,IAAA,CAAK,MAAA,GAAQ,UAAA,GAAkB,UAAA"}
|
package/dist/next.d.mts
CHANGED
package/dist/next.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.mts","names":[],"sources":["../src/next.ts"],"
|
|
1
|
+
{"version":3,"file":"next.d.mts","names":[],"sources":["../src/next.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;iBAAgB,IAAA,CAAK,MAAA,GAAQ,UAAA,GAAkB,UAAA"}
|
package/dist/next.mjs
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./tsconfig-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
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";
|
|
10
|
-
import { n as webpack_default } from "./webpack-_lZGia72.mjs";
|
|
1
|
+
import "./api-6f2oVwGy.mjs";
|
|
2
|
+
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
|
+
import "./virtual-DvkJm7gK.mjs";
|
|
4
|
+
import unplugin from "./webpack.mjs";
|
|
11
5
|
|
|
12
6
|
//#region src/next.ts
|
|
13
7
|
/**
|
|
@@ -34,13 +28,12 @@ function next(config = {}) {
|
|
|
34
28
|
webpack(webpackConfig, context) {
|
|
35
29
|
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
36
30
|
result.plugins ??= [];
|
|
37
|
-
result.plugins.push(
|
|
31
|
+
result.plugins.push(unplugin(webpackConfig));
|
|
38
32
|
return result;
|
|
39
33
|
}
|
|
40
34
|
};
|
|
41
35
|
}
|
|
42
|
-
var next_default = next;
|
|
43
36
|
|
|
44
37
|
//#endregion
|
|
45
|
-
export {
|
|
38
|
+
export { next as default, next as "module.exports", next };
|
|
46
39
|
//# sourceMappingURL=next.mjs.map
|
package/dist/next.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.mjs","names":["webpack"],"sources":["../src/next.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 { WebpackPluginUserConfig } from \"@powerlines/plugin-webpack/types/plugin\";\nimport type { NextConfig } from \"next\";\nimport type { WebpackConfigContext } from \"next/dist/server/config-shared\";\nimport type { Configuration } from \"webpack\";\nimport webpack from \"./webpack\";\n\n/**\n * A Next.js configuration function that integrates Powerlines into the build process.\n *\n * @see https://nextjs.org/docs/api-reference/next.config.js/introduction\n *\n * @example\n * ```js\n * // next.config.js\n * import withPowerlines from 'powerlines/next'\n *\n * export default withPowerlines({\n * reactStrictMode: true,\n * })\n * ```\n *\n * @param config - The Next.js configuration to merge with the Powerlines configuration.\n * @returns The merged Next.js configuration.\n */\nexport function next(config: NextConfig = {}): NextConfig {\n return {\n ...config,\n webpack(webpackConfig: Configuration, context: WebpackConfigContext) {\n const result = (config.webpack?.(webpackConfig, context) ||\n webpackConfig) as Configuration;\n\n result.plugins ??= [];\n result.plugins.push(webpack(webpackConfig as WebpackPluginUserConfig));\n\n return result;\n }\n };\n}\n\nexport default next;\nexport { next as \"module.exports\" };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"next.mjs","names":["webpack"],"sources":["../src/next.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 { WebpackPluginUserConfig } from \"@powerlines/plugin-webpack/types/plugin\";\nimport type { NextConfig } from \"next\";\nimport type { WebpackConfigContext } from \"next/dist/server/config-shared\";\nimport type { Configuration } from \"webpack\";\nimport webpack from \"./webpack\";\n\n/**\n * A Next.js configuration function that integrates Powerlines into the build process.\n *\n * @see https://nextjs.org/docs/api-reference/next.config.js/introduction\n *\n * @example\n * ```js\n * // next.config.js\n * import withPowerlines from 'powerlines/next'\n *\n * export default withPowerlines({\n * reactStrictMode: true,\n * })\n * ```\n *\n * @param config - The Next.js configuration to merge with the Powerlines configuration.\n * @returns The merged Next.js configuration.\n */\nexport function next(config: NextConfig = {}): NextConfig {\n return {\n ...config,\n webpack(webpackConfig: Configuration, context: WebpackConfigContext) {\n const result = (config.webpack?.(webpackConfig, context) ||\n webpackConfig) as Configuration;\n\n result.plugins ??= [];\n result.plugins.push(webpack(webpackConfig as WebpackPluginUserConfig));\n\n return result;\n }\n };\n}\n\nexport default next;\nexport { next as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,KAAK,SAAqB,EAAE,EAAc;AACxD,QAAO;EACL,GAAG;EACH,QAAQ,eAA8B,SAA+B;GACnE,MAAM,SAAU,OAAO,UAAU,eAAe,QAAQ,IACtD;AAEF,UAAO,YAAY,EAAE;AACrB,UAAO,QAAQ,KAAKA,SAAQ,cAAyC,CAAC;AAEtE,UAAO;;EAEV"}
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
const require_chunk = require('./chunk-
|
|
3
|
-
const require_api = require('./api-
|
|
4
|
-
require('./tsconfig-
|
|
5
|
-
require('./
|
|
6
|
-
require('./
|
|
7
|
-
require('./
|
|
8
|
-
require(
|
|
9
|
-
require('./config-D86Vw7SC.cjs');
|
|
10
|
-
require('./utils-BbDma_5Y.cjs');
|
|
11
|
-
require('./virtual-B1MLgqnQ.cjs');
|
|
12
|
-
require('./resolve-options-BQnTgg3V.cjs');
|
|
13
|
-
require('./resolve-options-vyFhhkLp.cjs');
|
|
14
|
-
require('./resolve-options-lxQ2pm0W.cjs');
|
|
15
|
-
const require_vite = require('./vite-KO7wzRoS.cjs');
|
|
16
|
-
const require_webpack = require('./webpack-CB2Lw9tt.cjs');
|
|
17
|
-
let __nuxt_kit = require("@nuxt/kit");
|
|
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
|
+
const require_vite = require('./vite.cjs');
|
|
7
|
+
const require_webpack = require('./webpack.cjs');
|
|
8
|
+
let _nuxt_kit = require("@nuxt/kit");
|
|
18
9
|
|
|
19
10
|
//#region src/nuxt.ts
|
|
20
11
|
/**
|
|
@@ -38,7 +29,7 @@ let __nuxt_kit = require("@nuxt/kit");
|
|
|
38
29
|
*
|
|
39
30
|
* ```
|
|
40
31
|
*/
|
|
41
|
-
const nuxt = (0,
|
|
32
|
+
const nuxt = (0, _nuxt_kit.defineNuxtModule)({
|
|
42
33
|
meta: {
|
|
43
34
|
name: require_api.name,
|
|
44
35
|
version: require_api.version,
|
|
@@ -47,13 +38,12 @@ const nuxt = (0, __nuxt_kit.defineNuxtModule)({
|
|
|
47
38
|
},
|
|
48
39
|
defaults: {},
|
|
49
40
|
setup(options) {
|
|
50
|
-
(0,
|
|
51
|
-
(0,
|
|
41
|
+
(0, _nuxt_kit.addVitePlugin)(() => require_vite.default(options));
|
|
42
|
+
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack.default(options));
|
|
52
43
|
}
|
|
53
44
|
});
|
|
54
|
-
var nuxt_default = nuxt;
|
|
55
45
|
|
|
56
46
|
//#endregion
|
|
57
|
-
exports.default =
|
|
47
|
+
exports.default = nuxt;
|
|
58
48
|
exports["module.exports"] = nuxt;
|
|
59
49
|
exports.nuxt = nuxt;
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as types_d_exports } from "./types-DerAvFjs.cjs";
|
|
2
2
|
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
7
|
*
|
|
@@ -24,7 +23,7 @@ import * as _nuxt_schema0 from "@nuxt/schema";
|
|
|
24
23
|
*
|
|
25
24
|
* ```
|
|
26
25
|
*/
|
|
27
|
-
declare const nuxt: _nuxt_schema0.NuxtModule<UserConfig, UserConfig, false>;
|
|
26
|
+
declare const nuxt: _nuxt_schema0.NuxtModule<types_d_exports.UserConfig, types_d_exports.UserConfig, false>;
|
|
28
27
|
//#endregion
|
|
29
28
|
export { nuxt as default, nuxt as "module.exports", nuxt };
|
|
30
29
|
//# sourceMappingURL=nuxt.d.cts.map
|
package/dist/nuxt.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuxt.d.cts","names":[],"sources":["../src/nuxt.ts"],"
|
|
1
|
+
{"version":3,"file":"nuxt.d.cts","names":[],"sources":["../src/nuxt.ts"],"mappings":";;;;;;;AA6CA;;;;;;;;;;;;;;;;;;cAAa,IAAA,EAAI,aAAA,CAAA,UAAA,CAAA,eAAA,CAAA,UAAA,EAAA,eAAA,CAAA,UAAA"}
|
package/dist/nuxt.d.mts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./config-CiPXgwzt.mjs";
|
|
3
|
-
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-2JXW-b2-.mjs";
|
|
5
|
-
import "./types-Bh_vLuQ0.mjs";
|
|
1
|
+
import { t as types_d_exports } from "./types-ro7jWCtL.mjs";
|
|
6
2
|
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
7
3
|
|
|
8
4
|
//#region src/nuxt.d.ts
|
|
9
|
-
|
|
10
5
|
/**
|
|
11
6
|
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
12
7
|
*
|
|
@@ -28,7 +23,7 @@ import * as _nuxt_schema0 from "@nuxt/schema";
|
|
|
28
23
|
*
|
|
29
24
|
* ```
|
|
30
25
|
*/
|
|
31
|
-
declare const nuxt: _nuxt_schema0.NuxtModule<UserConfig, UserConfig, false>;
|
|
26
|
+
declare const nuxt: _nuxt_schema0.NuxtModule<types_d_exports.UserConfig, types_d_exports.UserConfig, false>;
|
|
32
27
|
//#endregion
|
|
33
28
|
export { nuxt as default, nuxt as "module.exports", nuxt };
|
|
34
29
|
//# sourceMappingURL=nuxt.d.mts.map
|
package/dist/nuxt.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuxt.d.mts","names":[],"sources":["../src/nuxt.ts"],"
|
|
1
|
+
{"version":3,"file":"nuxt.d.mts","names":[],"sources":["../src/nuxt.ts"],"mappings":";;;;;;;AA6CA;;;;;;;;;;;;;;;;;;cAAa,IAAA,EAAI,aAAA,CAAA,UAAA,CAAA,eAAA,CAAA,UAAA,EAAA,eAAA,CAAA,UAAA"}
|
package/dist/nuxt.mjs
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./tsconfig-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./constants-cXxSHhNp.mjs";
|
|
7
|
-
import "./config-D4Fh2gQL.mjs";
|
|
8
|
-
import "./utils-DoQcX7Sk.mjs";
|
|
9
|
-
import "./virtual-B9imjOqe.mjs";
|
|
10
|
-
import "./resolve-options-DHL3RM8F.mjs";
|
|
11
|
-
import "./resolve-options-6sXFqzEA.mjs";
|
|
12
|
-
import "./resolve-options-D-RGs8j8.mjs";
|
|
13
|
-
import { n as vite_default } from "./vite-rDviBWJz.mjs";
|
|
14
|
-
import { n as webpack_default } from "./webpack-_lZGia72.mjs";
|
|
1
|
+
import { m as version, p as name } from "./api-6f2oVwGy.mjs";
|
|
2
|
+
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
|
+
import "./virtual-DvkJm7gK.mjs";
|
|
4
|
+
import unplugin from "./vite.mjs";
|
|
5
|
+
import unplugin$1 from "./webpack.mjs";
|
|
15
6
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
16
7
|
|
|
17
8
|
//#region src/nuxt.ts
|
|
@@ -45,12 +36,11 @@ const nuxt = defineNuxtModule({
|
|
|
45
36
|
},
|
|
46
37
|
defaults: {},
|
|
47
38
|
setup(options) {
|
|
48
|
-
addVitePlugin(() =>
|
|
49
|
-
addWebpackPlugin(() =>
|
|
39
|
+
addVitePlugin(() => unplugin(options));
|
|
40
|
+
addWebpackPlugin(() => unplugin$1(options));
|
|
50
41
|
}
|
|
51
42
|
});
|
|
52
|
-
var nuxt_default = nuxt;
|
|
53
43
|
|
|
54
44
|
//#endregion
|
|
55
|
-
export {
|
|
45
|
+
export { nuxt as default, nuxt as "module.exports", nuxt };
|
|
56
46
|
//# sourceMappingURL=nuxt.mjs.map
|
package/dist/nuxt.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuxt.mjs","names":["vite","webpack"],"sources":["../src/nuxt.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 { addVitePlugin, addWebpackPlugin, defineNuxtModule } from \"@nuxt/kit\";\nimport { name, version } from \"../package.json\";\nimport { UserConfig } from \"./types\";\nimport vite from \"./vite\";\nimport webpack from \"./webpack\";\n\n/**\n * A Nuxt plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://nuxt.com/docs/guide/directory-structure/modules\n *\n * @example\n * ```ts\n * // nuxt.config.ts\n * import { defineNuxtConfig } from \"@nuxt/kit\";\n *\n * export default defineNuxtConfig({\n * modules: [\n * [\n * \"powerlines/nuxt\",\n * { name: \"example-app\", ... }\n * ],\n * ],\n * });\n *\n * ```\n */\nexport const nuxt = defineNuxtModule<UserConfig>({\n meta: {\n name,\n version,\n configKey: \"powerlines\",\n compatibility: {\n builder: {\n vite: \"^6.0.0\"\n }\n }\n },\n defaults: {},\n setup(options) {\n addVitePlugin(() => vite(options));\n addWebpackPlugin(() => webpack(options));\n }\n});\n\nexport default nuxt;\nexport { nuxt as \"module.exports\" };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"nuxt.mjs","names":["vite","webpack"],"sources":["../src/nuxt.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 { addVitePlugin, addWebpackPlugin, defineNuxtModule } from \"@nuxt/kit\";\nimport { name, version } from \"../package.json\";\nimport { UserConfig } from \"./types\";\nimport vite from \"./vite\";\nimport webpack from \"./webpack\";\n\n/**\n * A Nuxt plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://nuxt.com/docs/guide/directory-structure/modules\n *\n * @example\n * ```ts\n * // nuxt.config.ts\n * import { defineNuxtConfig } from \"@nuxt/kit\";\n *\n * export default defineNuxtConfig({\n * modules: [\n * [\n * \"powerlines/nuxt\",\n * { name: \"example-app\", ... }\n * ],\n * ],\n * });\n *\n * ```\n */\nexport const nuxt = defineNuxtModule<UserConfig>({\n meta: {\n name,\n version,\n configKey: \"powerlines\",\n compatibility: {\n builder: {\n vite: \"^6.0.0\"\n }\n }\n },\n defaults: {},\n setup(options) {\n addVitePlugin(() => vite(options));\n addWebpackPlugin(() => webpack(options));\n }\n});\n\nexport default nuxt;\nexport { nuxt as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAa,OAAO,iBAA6B;CAC/C,MAAM;EACJ;EACA;EACA,WAAW;EACX,eAAe,EACb,SAAS,EACP,MAAM,UACP,EACF;EACF;CACD,UAAU,EAAE;CACZ,MAAM,SAAS;AACb,sBAAoBA,SAAK,QAAQ,CAAC;AAClC,yBAAuBC,WAAQ,QAAQ,CAAC;;CAE3C,CAAC"}
|