@powerlines/plugin-vite 0.14.122 → 0.14.124

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.
Files changed (141) hide show
  1. package/dist/helpers/index.cjs +3 -2
  2. package/dist/helpers/index.d.cts +3 -1
  3. package/dist/helpers/index.d.mts +3 -1
  4. package/dist/helpers/index.mjs +2 -1
  5. package/dist/helpers/unplugin.cjs +2 -11
  6. package/dist/helpers/unplugin.d.cts +2 -6
  7. package/dist/helpers/unplugin.d.mts +2 -6
  8. package/dist/helpers/unplugin.mjs +1 -9
  9. package/dist/helpers-CmEjzAn_.mjs +1 -0
  10. package/dist/helpers-LF26RHol.cjs +0 -0
  11. package/dist/index-BR1oNnaF.d.cts +1 -0
  12. package/dist/index-DEHBdV_z.d.mts +1 -0
  13. package/dist/index-_wQ5ClJU.d.cts +1 -0
  14. package/dist/index-vkGVyY9v.d.mts +1 -0
  15. package/dist/index.cjs +170 -9
  16. package/dist/index.d.cts +4 -3
  17. package/dist/index.d.mts +5 -5
  18. package/dist/index.mjs +165 -3
  19. package/dist/plugin-Dc12T6ZF.d.mts +1960 -0
  20. package/dist/plugin-jZ9N9Mz-.mjs +1 -0
  21. package/dist/plugin-pBKbb5K9.cjs +0 -0
  22. package/dist/plugin-vkCGh5de.d.cts +1957 -0
  23. package/dist/types/index.cjs +2 -0
  24. package/dist/types/index.d.cts +2 -1
  25. package/dist/types/index.d.mts +2 -1
  26. package/dist/types/index.mjs +3 -0
  27. package/dist/types/internal.d.cts +191 -3
  28. package/dist/types/internal.d.mts +191 -3
  29. package/dist/types/plugin.cjs +1 -0
  30. package/dist/types/plugin.d.cts +1 -12
  31. package/dist/types/plugin.d.mts +1 -12
  32. package/dist/types/plugin.mjs +2 -0
  33. package/dist/types-BtDR9wb1.mjs +1 -0
  34. package/dist/types-o3zWarRp.cjs +0 -0
  35. package/dist/unplugin-B3TcDD6I.mjs +4617 -0
  36. package/dist/unplugin-Bv2agFkI.cjs +4661 -0
  37. package/dist/unplugin-D_zrAqRh.d.mts +7 -0
  38. package/dist/unplugin-F1UAxbOS.d.cts +7 -0
  39. package/package.json +5 -5
  40. package/dist/_virtual/rolldown_runtime.cjs +0 -29
  41. package/dist/powerlines/schemas/fs.cjs +0 -226
  42. package/dist/powerlines/schemas/fs.mjs +0 -224
  43. package/dist/powerlines/src/api.cjs +0 -580
  44. package/dist/powerlines/src/api.mjs +0 -578
  45. package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +0 -86
  46. package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +0 -84
  47. package/dist/powerlines/src/internal/helpers/environment.cjs +0 -52
  48. package/dist/powerlines/src/internal/helpers/environment.mjs +0 -48
  49. package/dist/powerlines/src/internal/helpers/generate-types.cjs +0 -51
  50. package/dist/powerlines/src/internal/helpers/generate-types.mjs +0 -49
  51. package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -63
  52. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -48
  53. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -50
  54. package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -61
  55. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +0 -25
  56. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +0 -24
  57. package/dist/powerlines/src/internal/helpers/install.cjs +0 -37
  58. package/dist/powerlines/src/internal/helpers/install.mjs +0 -36
  59. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +0 -98
  60. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +0 -94
  61. package/dist/powerlines/src/internal/helpers/resolver.cjs +0 -43
  62. package/dist/powerlines/src/internal/helpers/resolver.mjs +0 -41
  63. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
  64. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
  65. package/dist/powerlines/src/lib/build/vite.cjs +0 -74
  66. package/dist/powerlines/src/lib/build/vite.mjs +0 -71
  67. package/dist/powerlines/src/lib/config-file.cjs +0 -79
  68. package/dist/powerlines/src/lib/config-file.mjs +0 -76
  69. package/dist/powerlines/src/lib/contexts/api-context.cjs +0 -184
  70. package/dist/powerlines/src/lib/contexts/api-context.mjs +0 -182
  71. package/dist/powerlines/src/lib/contexts/context.cjs +0 -931
  72. package/dist/powerlines/src/lib/contexts/context.mjs +0 -929
  73. package/dist/powerlines/src/lib/contexts/environment-context.cjs +0 -160
  74. package/dist/powerlines/src/lib/contexts/environment-context.mjs +0 -159
  75. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +0 -75
  76. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +0 -74
  77. package/dist/powerlines/src/lib/entry.cjs +0 -69
  78. package/dist/powerlines/src/lib/entry.mjs +0 -67
  79. package/dist/powerlines/src/lib/fs/helpers.cjs +0 -85
  80. package/dist/powerlines/src/lib/fs/helpers.mjs +0 -81
  81. package/dist/powerlines/src/lib/fs/storage/base.cjs +0 -196
  82. package/dist/powerlines/src/lib/fs/storage/base.mjs +0 -195
  83. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +0 -170
  84. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +0 -169
  85. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +0 -88
  86. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +0 -87
  87. package/dist/powerlines/src/lib/fs/vfs.cjs +0 -830
  88. package/dist/powerlines/src/lib/fs/vfs.mjs +0 -828
  89. package/dist/powerlines/src/lib/logger.cjs +0 -58
  90. package/dist/powerlines/src/lib/logger.mjs +0 -55
  91. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +0 -104
  92. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +0 -102
  93. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -149
  94. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -144
  95. package/dist/powerlines/src/lib/unplugin/factory.cjs +0 -6
  96. package/dist/powerlines/src/lib/unplugin/factory.mjs +0 -8
  97. package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -17
  98. package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -16
  99. package/dist/powerlines/src/lib/unplugin/index.cjs +0 -3
  100. package/dist/powerlines/src/lib/unplugin/index.mjs +0 -5
  101. package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -128
  102. package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -127
  103. package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
  104. package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
  105. package/dist/powerlines/src/lib/utilities/meta.cjs +0 -45
  106. package/dist/powerlines/src/lib/utilities/meta.mjs +0 -41
  107. package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -22
  108. package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -21
  109. package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -148
  110. package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -138
  111. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -36
  112. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -35
  113. package/dist/powerlines/src/types/api.d.cts +0 -104
  114. package/dist/powerlines/src/types/api.d.mts +0 -104
  115. package/dist/powerlines/src/types/babel.d.mts +0 -4
  116. package/dist/powerlines/src/types/build.cjs +0 -15
  117. package/dist/powerlines/src/types/build.d.cts +0 -154
  118. package/dist/powerlines/src/types/build.d.mts +0 -154
  119. package/dist/powerlines/src/types/build.mjs +0 -14
  120. package/dist/powerlines/src/types/commands.cjs +0 -16
  121. package/dist/powerlines/src/types/commands.d.cts +0 -8
  122. package/dist/powerlines/src/types/commands.d.mts +0 -9
  123. package/dist/powerlines/src/types/commands.mjs +0 -15
  124. package/dist/powerlines/src/types/config.d.cts +0 -416
  125. package/dist/powerlines/src/types/config.d.mts +0 -418
  126. package/dist/powerlines/src/types/context.d.cts +0 -514
  127. package/dist/powerlines/src/types/context.d.mts +0 -514
  128. package/dist/powerlines/src/types/fs.d.cts +0 -486
  129. package/dist/powerlines/src/types/fs.d.mts +0 -486
  130. package/dist/powerlines/src/types/hooks.d.cts +0 -30
  131. package/dist/powerlines/src/types/hooks.d.mts +0 -30
  132. package/dist/powerlines/src/types/internal.d.cts +0 -58
  133. package/dist/powerlines/src/types/internal.d.mts +0 -58
  134. package/dist/powerlines/src/types/plugin.cjs +0 -32
  135. package/dist/powerlines/src/types/plugin.d.cts +0 -234
  136. package/dist/powerlines/src/types/plugin.d.mts +0 -234
  137. package/dist/powerlines/src/types/plugin.mjs +0 -31
  138. package/dist/powerlines/src/types/resolved.d.cts +0 -82
  139. package/dist/powerlines/src/types/resolved.d.mts +0 -83
  140. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  141. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
@@ -0,0 +1,2 @@
1
+ require('../plugin-pBKbb5K9.cjs');
2
+ require('../types-o3zWarRp.cjs');
@@ -1,2 +1,3 @@
1
- import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig } from "./plugin.cjs";
1
+ import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-vkCGh5de.cjs";
2
+ import "../index-BR1oNnaF.cjs";
2
3
  export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
@@ -1,2 +1,3 @@
1
- import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig } from "./plugin.mjs";
1
+ import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-Dc12T6ZF.mjs";
2
+ import "../index-DEHBdV_z.mjs";
2
3
  export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
@@ -1 +1,4 @@
1
+ import "../plugin-jZ9N9Mz-.mjs";
2
+ import "../types-BtDR9wb1.mjs";
3
+
1
4
  export { };
@@ -1,8 +1,196 @@
1
- import { VitePluginResolvedConfig } from "./plugin.cjs";
2
- import { UNSAFE_PluginContext } from "../powerlines/src/types/internal.cjs";
1
+ import { C as ResolvedConfig, _ as DocsInlineConfig, b as PluginConfig, c as EnvironmentContext, d as HookKeys, f as InferHookParameters, g as DeployInlineConfig, h as CleanInlineConfig, l as PluginContext, m as BuildInlineConfig, p as InferHookReturnType, r as VitePluginResolvedConfig, s as APIContext, u as SelectHooksOptions, v as LintInlineConfig, x as PrepareInlineConfig, y as NewInlineConfig } from "../plugin-vkCGh5de.cjs";
2
+ import { MaybePromise } from "@stryke/types/base";
3
+ import { ArrayValues } from "@stryke/types/array";
3
4
 
5
+ //#region ../powerlines/src/internal/helpers/hooks.d.ts
6
+ type CallHookOptions = SelectHooksOptions & (({
7
+ /**
8
+ * Whether to call the hooks sequentially or in parallel.
9
+ *
10
+ * @defaultValue true
11
+ */
12
+ sequential?: true;
13
+ } & ({
14
+ /**
15
+ * How to handle multiple return values from hooks.
16
+ * - "merge": Merge all non-undefined return values (if they are objects).
17
+ * - "first": Return the first non-undefined value.
18
+ *
19
+ * @remarks
20
+ * Merging only works if the return values are objects.
21
+ *
22
+ * @defaultValue "merge"
23
+ */
24
+ result: "first";
25
+ } | {
26
+ /**
27
+ * How to handle multiple return values from hooks.
28
+ * - "merge": Merge all non-undefined return values (if they are objects).
29
+ * - "first": Return the first non-undefined value.
30
+ *
31
+ * @remarks
32
+ * Merging only works if the return values are objects.
33
+ *
34
+ * @defaultValue "merge"
35
+ */
36
+ result?: "merge" | "last";
37
+ /**
38
+ * An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
39
+ */
40
+ asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
41
+ })) | {
42
+ /**
43
+ * Whether to call the hooks sequentially or in parallel.
44
+ */
45
+ sequential: false;
46
+ });
47
+ //#endregion
48
+ //#region ../powerlines/src/types/api.d.ts
49
+ /**
50
+ * Powerlines API Interface
51
+ */
52
+ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
53
+ /**
54
+ * The Powerlines shared API context
55
+ */
56
+ context: APIContext<TResolvedConfig>;
57
+ /**
58
+ * Prepare the Powerlines API
59
+ *
60
+ * @remarks
61
+ * This method will prepare the Powerlines API for use, initializing any necessary resources.
62
+ *
63
+ * @param inlineConfig - The inline configuration for the prepare command
64
+ */
65
+ prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
66
+ /**
67
+ * Create a new Powerlines project
68
+ *
69
+ * @remarks
70
+ * This method will create a new Powerlines project in the current directory.
71
+ *
72
+ * @param inlineConfig - The inline configuration for the new command
73
+ * @returns A promise that resolves when the project has been created
74
+ */
75
+ new: (inlineConfig: NewInlineConfig) => Promise<void>;
76
+ /**
77
+ * Clean any previously prepared artifacts
78
+ *
79
+ * @remarks
80
+ * This method will remove the previous Powerlines artifacts from the project.
81
+ *
82
+ * @param inlineConfig - The inline configuration for the clean command
83
+ * @returns A promise that resolves when the clean command has completed
84
+ */
85
+ clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
86
+ /**
87
+ * Lint the project source code
88
+ *
89
+ * @param inlineConfig - The inline configuration for the lint command
90
+ * @returns A promise that resolves when the lint command has completed
91
+ */
92
+ lint: (inlineConfig: LintInlineConfig) => Promise<void>;
93
+ /**
94
+ * Build the project
95
+ *
96
+ * @remarks
97
+ * This method will build the Powerlines project, generating the necessary artifacts.
98
+ *
99
+ * @param inlineConfig - The inline configuration for the build command
100
+ * @returns A promise that resolves when the build command has completed
101
+ */
102
+ build: (inlineConfig: BuildInlineConfig) => Promise<void>;
103
+ /**
104
+ * Prepare the documentation for the project
105
+ *
106
+ * @param inlineConfig - The inline configuration for the docs command
107
+ * @returns A promise that resolves when the documentation generation has completed
108
+ */
109
+ docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
110
+ /**
111
+ * Deploy the project source code
112
+ *
113
+ * @remarks
114
+ * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
115
+ *
116
+ * @param inlineConfig - The inline configuration for the deploy command
117
+ */
118
+ deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
119
+ /**
120
+ * Finalization process
121
+ *
122
+ * @remarks
123
+ * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
124
+ *
125
+ * @returns A promise that resolves when the finalization process has completed
126
+ */
127
+ finalize: () => Promise<void>;
128
+ /**
129
+ * Invokes the configured plugin hooks
130
+ *
131
+ * @remarks
132
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
133
+ *
134
+ * @param hook - The hook to call
135
+ * @param options - The options to provide to the hook
136
+ * @param args - The arguments to pass to the hook
137
+ * @returns The result of the hook call
138
+ */
139
+ callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions & {
140
+ environment?: string | EnvironmentContext<TResolvedConfig>;
141
+ }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
142
+ }
143
+ //#endregion
144
+ //#region ../powerlines/src/types/internal.d.ts
145
+ /**
146
+ * Internal fields and methods for internal contexts
147
+ *
148
+ * @internal
149
+ */
150
+ interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
151
+ /**
152
+ * The API instance for interacting with Powerlines
153
+ *
154
+ * @internal
155
+ */
156
+ api: API<TResolvedConfig>;
157
+ /**
158
+ * Add a Powerlines plugin used in the build process
159
+ *
160
+ * @internal
161
+ *
162
+ * @param config - The import path of the plugin to add
163
+ */
164
+ addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
165
+ }
166
+ /**
167
+ * An internal representation of the environment context, used for managing hooks and environment data.
168
+ *
169
+ * @internal
170
+ */
171
+ interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
172
+ $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
173
+ }
174
+ /**
175
+ * Internal fields and methods for the internal plugin context
176
+ *
177
+ * @internal
178
+ */
179
+ interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
180
+ api: API<TResolvedConfig>;
181
+ environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
182
+ callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
183
+ }
184
+ /**
185
+ * An internal representation of the plugin context, used for managing hooks and environment data.
186
+ *
187
+ * @internal
188
+ */
189
+ interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
190
+ $$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
191
+ }
192
+ //#endregion
4
193
  //#region src/types/internal.d.ts
5
-
6
194
  /**
7
195
  * Internal fields and methods for internal Vite plugin contexts
8
196
  *
@@ -1,8 +1,196 @@
1
- import { VitePluginResolvedConfig } from "./plugin.mjs";
2
- import { UNSAFE_PluginContext } from "../powerlines/src/types/internal.mjs";
1
+ import { C as ResolvedConfig, _ as DocsInlineConfig, b as PluginConfig, c as EnvironmentContext, d as HookKeys, f as InferHookParameters, g as DeployInlineConfig, h as CleanInlineConfig, l as PluginContext, m as BuildInlineConfig, p as InferHookReturnType, r as VitePluginResolvedConfig, s as APIContext, u as SelectHooksOptions, v as LintInlineConfig, x as PrepareInlineConfig, y as NewInlineConfig } from "../plugin-Dc12T6ZF.mjs";
2
+ import { MaybePromise } from "@stryke/types/base";
3
+ import { ArrayValues } from "@stryke/types/array";
3
4
 
5
+ //#region ../powerlines/src/internal/helpers/hooks.d.ts
6
+ type CallHookOptions = SelectHooksOptions & (({
7
+ /**
8
+ * Whether to call the hooks sequentially or in parallel.
9
+ *
10
+ * @defaultValue true
11
+ */
12
+ sequential?: true;
13
+ } & ({
14
+ /**
15
+ * How to handle multiple return values from hooks.
16
+ * - "merge": Merge all non-undefined return values (if they are objects).
17
+ * - "first": Return the first non-undefined value.
18
+ *
19
+ * @remarks
20
+ * Merging only works if the return values are objects.
21
+ *
22
+ * @defaultValue "merge"
23
+ */
24
+ result: "first";
25
+ } | {
26
+ /**
27
+ * How to handle multiple return values from hooks.
28
+ * - "merge": Merge all non-undefined return values (if they are objects).
29
+ * - "first": Return the first non-undefined value.
30
+ *
31
+ * @remarks
32
+ * Merging only works if the return values are objects.
33
+ *
34
+ * @defaultValue "merge"
35
+ */
36
+ result?: "merge" | "last";
37
+ /**
38
+ * An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
39
+ */
40
+ asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
41
+ })) | {
42
+ /**
43
+ * Whether to call the hooks sequentially or in parallel.
44
+ */
45
+ sequential: false;
46
+ });
47
+ //#endregion
48
+ //#region ../powerlines/src/types/api.d.ts
49
+ /**
50
+ * Powerlines API Interface
51
+ */
52
+ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
53
+ /**
54
+ * The Powerlines shared API context
55
+ */
56
+ context: APIContext<TResolvedConfig>;
57
+ /**
58
+ * Prepare the Powerlines API
59
+ *
60
+ * @remarks
61
+ * This method will prepare the Powerlines API for use, initializing any necessary resources.
62
+ *
63
+ * @param inlineConfig - The inline configuration for the prepare command
64
+ */
65
+ prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
66
+ /**
67
+ * Create a new Powerlines project
68
+ *
69
+ * @remarks
70
+ * This method will create a new Powerlines project in the current directory.
71
+ *
72
+ * @param inlineConfig - The inline configuration for the new command
73
+ * @returns A promise that resolves when the project has been created
74
+ */
75
+ new: (inlineConfig: NewInlineConfig) => Promise<void>;
76
+ /**
77
+ * Clean any previously prepared artifacts
78
+ *
79
+ * @remarks
80
+ * This method will remove the previous Powerlines artifacts from the project.
81
+ *
82
+ * @param inlineConfig - The inline configuration for the clean command
83
+ * @returns A promise that resolves when the clean command has completed
84
+ */
85
+ clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
86
+ /**
87
+ * Lint the project source code
88
+ *
89
+ * @param inlineConfig - The inline configuration for the lint command
90
+ * @returns A promise that resolves when the lint command has completed
91
+ */
92
+ lint: (inlineConfig: LintInlineConfig) => Promise<void>;
93
+ /**
94
+ * Build the project
95
+ *
96
+ * @remarks
97
+ * This method will build the Powerlines project, generating the necessary artifacts.
98
+ *
99
+ * @param inlineConfig - The inline configuration for the build command
100
+ * @returns A promise that resolves when the build command has completed
101
+ */
102
+ build: (inlineConfig: BuildInlineConfig) => Promise<void>;
103
+ /**
104
+ * Prepare the documentation for the project
105
+ *
106
+ * @param inlineConfig - The inline configuration for the docs command
107
+ * @returns A promise that resolves when the documentation generation has completed
108
+ */
109
+ docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
110
+ /**
111
+ * Deploy the project source code
112
+ *
113
+ * @remarks
114
+ * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
115
+ *
116
+ * @param inlineConfig - The inline configuration for the deploy command
117
+ */
118
+ deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
119
+ /**
120
+ * Finalization process
121
+ *
122
+ * @remarks
123
+ * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
124
+ *
125
+ * @returns A promise that resolves when the finalization process has completed
126
+ */
127
+ finalize: () => Promise<void>;
128
+ /**
129
+ * Invokes the configured plugin hooks
130
+ *
131
+ * @remarks
132
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
133
+ *
134
+ * @param hook - The hook to call
135
+ * @param options - The options to provide to the hook
136
+ * @param args - The arguments to pass to the hook
137
+ * @returns The result of the hook call
138
+ */
139
+ callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions & {
140
+ environment?: string | EnvironmentContext<TResolvedConfig>;
141
+ }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
142
+ }
143
+ //#endregion
144
+ //#region ../powerlines/src/types/internal.d.ts
145
+ /**
146
+ * Internal fields and methods for internal contexts
147
+ *
148
+ * @internal
149
+ */
150
+ interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
151
+ /**
152
+ * The API instance for interacting with Powerlines
153
+ *
154
+ * @internal
155
+ */
156
+ api: API<TResolvedConfig>;
157
+ /**
158
+ * Add a Powerlines plugin used in the build process
159
+ *
160
+ * @internal
161
+ *
162
+ * @param config - The import path of the plugin to add
163
+ */
164
+ addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
165
+ }
166
+ /**
167
+ * An internal representation of the environment context, used for managing hooks and environment data.
168
+ *
169
+ * @internal
170
+ */
171
+ interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
172
+ $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
173
+ }
174
+ /**
175
+ * Internal fields and methods for the internal plugin context
176
+ *
177
+ * @internal
178
+ */
179
+ interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
180
+ api: API<TResolvedConfig>;
181
+ environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
182
+ callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
183
+ }
184
+ /**
185
+ * An internal representation of the plugin context, used for managing hooks and environment data.
186
+ *
187
+ * @internal
188
+ */
189
+ interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
190
+ $$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
191
+ }
192
+ //#endregion
4
193
  //#region src/types/internal.d.ts
5
-
6
194
  /**
7
195
  * Internal fields and methods for internal Vite plugin contexts
8
196
  *
@@ -0,0 +1 @@
1
+ require('../plugin-pBKbb5K9.cjs');
@@ -1,13 +1,2 @@
1
- import { ViteBuildConfig } from "../powerlines/src/types/build.cjs";
2
- import { ViteResolvedConfig } from "../powerlines/src/types/resolved.cjs";
3
- import { PluginContext } from "../powerlines/src/types/context.cjs";
4
-
5
- //#region src/types/plugin.d.ts
6
- type VitePluginOptions = Partial<ViteBuildConfig>;
7
- type VitePluginResolvedConfig = ViteResolvedConfig;
8
- type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig>;
9
- declare type __ΩVitePluginOptions = any[];
10
- declare type __ΩVitePluginResolvedConfig = any[];
11
- declare type __ΩVitePluginContext = any[];
12
- //#endregion
1
+ import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-vkCGh5de.cjs";
13
2
  export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
@@ -1,13 +1,2 @@
1
- import { ViteBuildConfig } from "../powerlines/src/types/build.mjs";
2
- import { ViteResolvedConfig } from "../powerlines/src/types/resolved.mjs";
3
- import { PluginContext } from "../powerlines/src/types/context.mjs";
4
-
5
- //#region src/types/plugin.d.ts
6
- type VitePluginOptions = Partial<ViteBuildConfig>;
7
- type VitePluginResolvedConfig = ViteResolvedConfig;
8
- type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig>;
9
- declare type __ΩVitePluginOptions = any[];
10
- declare type __ΩVitePluginResolvedConfig = any[];
11
- declare type __ΩVitePluginContext = any[];
12
- //#endregion
1
+ import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-Dc12T6ZF.mjs";
13
2
  export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
@@ -1 +1,3 @@
1
+ import "../plugin-jZ9N9Mz-.mjs";
2
+
1
3
  export { };
@@ -0,0 +1 @@
1
+ export { };
File without changes