@powerlines/plugin-unenv 0.1.90 → 0.1.92
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.
|
@@ -36,7 +36,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
36
36
|
/**
|
|
37
37
|
* A configuration tuple for a Powerlines plugin.
|
|
38
38
|
*/
|
|
39
|
-
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> |
|
|
39
|
+
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
|
|
40
40
|
type ProjectType = "application" | "library";
|
|
41
41
|
interface DeployConfig {
|
|
42
42
|
/**
|
|
@@ -36,7 +36,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
36
36
|
/**
|
|
37
37
|
* A configuration tuple for a Powerlines plugin.
|
|
38
38
|
*/
|
|
39
|
-
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> |
|
|
39
|
+
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
|
|
40
40
|
type ProjectType = "application" | "library";
|
|
41
41
|
interface DeployConfig {
|
|
42
42
|
/**
|
|
@@ -39,7 +39,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
39
39
|
* @remarks
|
|
40
40
|
* Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
|
|
41
41
|
*
|
|
42
|
-
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
|
|
42
|
+
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
|
|
43
43
|
*
|
|
44
44
|
* @see https://vitejs.dev/guide/api-plugin#config
|
|
45
45
|
*
|
|
@@ -215,11 +215,10 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
|
|
|
215
215
|
* @param other - The other plugin to compare against.
|
|
216
216
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
217
217
|
*/
|
|
218
|
-
dedupe?: false | ((other: Plugin<
|
|
218
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
219
219
|
/**
|
|
220
220
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
221
221
|
*/
|
|
222
|
-
dependsOn?: PluginConfig<TContext>[];
|
|
223
222
|
/**
|
|
224
223
|
* Define environments where this plugin should be active. By default, the plugin is active in all environments.
|
|
225
224
|
*
|
|
@@ -39,7 +39,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
39
39
|
* @remarks
|
|
40
40
|
* Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
|
|
41
41
|
*
|
|
42
|
-
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
|
|
42
|
+
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
|
|
43
43
|
*
|
|
44
44
|
* @see https://vitejs.dev/guide/api-plugin#config
|
|
45
45
|
*
|
|
@@ -215,11 +215,10 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
|
|
|
215
215
|
* @param other - The other plugin to compare against.
|
|
216
216
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
217
217
|
*/
|
|
218
|
-
dedupe?: false | ((other: Plugin<
|
|
218
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
219
219
|
/**
|
|
220
220
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
221
221
|
*/
|
|
222
|
-
dependsOn?: PluginConfig<TContext>[];
|
|
223
222
|
/**
|
|
224
223
|
* Define environments where this plugin should be active. By default, the plugin is active in all environments.
|
|
225
224
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-unenv",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.92",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using unenv.",
|
|
6
6
|
"repository": {
|
|
@@ -122,14 +122,14 @@
|
|
|
122
122
|
"@stryke/hash": "^0.12.32",
|
|
123
123
|
"unenv": "npm:unenv-nightly@2.0.0-rc.24",
|
|
124
124
|
"defu": "^6.1.4",
|
|
125
|
-
"powerlines": "^0.36.
|
|
125
|
+
"powerlines": "^0.36.8",
|
|
126
126
|
"typescript": "^5.9.3",
|
|
127
127
|
"vite": "8.0.0-beta.2"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"@powerlines/nx": "^0.11.
|
|
130
|
+
"@powerlines/nx": "^0.11.34",
|
|
131
131
|
"@types/node": "^24.10.4"
|
|
132
132
|
},
|
|
133
133
|
"publishConfig": { "access": "public" },
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "8867c7bf5d0505b507b029ae191bfc2844478c0e"
|
|
135
135
|
}
|