@powerlines/plugin-unenv 0.1.42 → 0.1.44
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/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{plugin-2OPuNCj3.d.cts → plugin-Oet5gr_H.d.mts} +3 -3
- package/dist/{plugin-BAPfLm_m.d.mts → plugin-olSYh6qz.d.cts} +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, l as Plugin, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "./plugin-
|
|
1
|
+
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, l as Plugin, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "./plugin-olSYh6qz.cjs";
|
|
2
2
|
import "./index-CEgs-Dz2.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, l as Plugin, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "./plugin-
|
|
1
|
+
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, l as Plugin, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "./plugin-Oet5gr_H.mjs";
|
|
2
2
|
import "./index-BgAdqTbb.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as unenv0 from "unenv";
|
|
2
|
+
import { CreateEnvOptions } from "unenv";
|
|
1
3
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
4
|
import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
|
|
3
5
|
import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
|
|
@@ -19,8 +21,6 @@ import { AssetGlob } from "@stryke/types/file";
|
|
|
19
21
|
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
20
22
|
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
21
23
|
import ts from "typescript";
|
|
22
|
-
import * as unenv0 from "unenv";
|
|
23
|
-
import { CreateEnvOptions } from "unenv";
|
|
24
24
|
|
|
25
25
|
//#region ../powerlines/src/types/build.d.ts
|
|
26
26
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
@@ -1635,7 +1635,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1635
1635
|
* @param environment - The environment to check.
|
|
1636
1636
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
1637
1637
|
*/
|
|
1638
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean |
|
|
1638
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | PluginConfig<any>>;
|
|
1639
1639
|
}
|
|
1640
1640
|
//#endregion
|
|
1641
1641
|
//#region src/types/plugin.d.ts
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as unenv0 from "unenv";
|
|
2
|
-
import { CreateEnvOptions } from "unenv";
|
|
3
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
4
2
|
import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
|
|
5
3
|
import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
|
|
@@ -21,6 +19,8 @@ import { AssetGlob } from "@stryke/types/file";
|
|
|
21
19
|
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
22
20
|
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
23
21
|
import ts from "typescript";
|
|
22
|
+
import * as unenv0 from "unenv";
|
|
23
|
+
import { CreateEnvOptions } from "unenv";
|
|
24
24
|
|
|
25
25
|
//#region ../powerlines/src/types/build.d.ts
|
|
26
26
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
@@ -1635,7 +1635,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1635
1635
|
* @param environment - The environment to check.
|
|
1636
1636
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
1637
1637
|
*/
|
|
1638
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean |
|
|
1638
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | PluginConfig<any>>;
|
|
1639
1639
|
}
|
|
1640
1640
|
//#endregion
|
|
1641
1641
|
//#region src/types/plugin.d.ts
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-olSYh6qz.cjs";
|
|
2
2
|
import "../index-CEgs-Dz2.cjs";
|
|
3
3
|
export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-Oet5gr_H.mjs";
|
|
2
2
|
import "../index-BgAdqTbb.mjs";
|
|
3
3
|
export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-olSYh6qz.cjs";
|
|
2
2
|
export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩUnenvPluginContext, c as __ΩUnenvPluginUserConfig, i as UnenvPluginUserConfig, n as UnenvPluginOptions, o as __ΩUnenvPluginOptions, r as UnenvPluginResolvedConfig, s as __ΩUnenvPluginResolvedConfig, t as UnenvPluginContext } from "../plugin-Oet5gr_H.mjs";
|
|
2
2
|
export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-unenv",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
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.15",
|
|
123
123
|
"unenv": "npm:unenv-nightly@2.0.0-rc.24",
|
|
124
124
|
"defu": "^6.1.4",
|
|
125
|
-
"powerlines": "^0.30.
|
|
125
|
+
"powerlines": "^0.30.6",
|
|
126
126
|
"typescript": "^5.9.3",
|
|
127
127
|
"vite": "^7.2.6"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"@powerlines/nx": "^0.10.
|
|
130
|
+
"@powerlines/nx": "^0.10.55",
|
|
131
131
|
"@types/node": "^24.10.1"
|
|
132
132
|
},
|
|
133
133
|
"publishConfig": { "access": "public" },
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "765cad6142c279ab069843806dedacf49c90a7bb"
|
|
135
135
|
}
|