@powerlines/plugin-unenv 0.1.45 → 0.1.47

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 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-olSYh6qz.cjs";
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-D6xDscjC.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-Oet5gr_H.mjs";
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-_LV5O5qb.mjs";
2
2
  import "./index-BgAdqTbb.mjs";
3
3
 
4
4
  //#region src/index.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";
@@ -160,10 +160,7 @@ interface BuildConfig {
160
160
  type BuildResolvedConfig = Omit<BuildConfig, "override">;
161
161
  //#endregion
162
162
  //#region ../powerlines/src/types/fs.d.ts
163
- declare enum StoragePreset {
164
- VIRTUAL = "virtual",
165
- FS = "fs",
166
- }
163
+ type StoragePreset = "fs" | "virtual";
167
164
  /**
168
165
  * Interface defining the methods and properties for a storage adapter.
169
166
  */
@@ -1635,7 +1632,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1635
1632
  * @param environment - The environment to check.
1636
1633
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1637
1634
  */
1638
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | PluginConfig<any>>;
1635
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
1639
1636
  }
1640
1637
  //#endregion
1641
1638
  //#region src/types/plugin.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";
@@ -160,10 +160,7 @@ interface BuildConfig {
160
160
  type BuildResolvedConfig = Omit<BuildConfig, "override">;
161
161
  //#endregion
162
162
  //#region ../powerlines/src/types/fs.d.ts
163
- declare enum StoragePreset {
164
- VIRTUAL = "virtual",
165
- FS = "fs",
166
- }
163
+ type StoragePreset = "fs" | "virtual";
167
164
  /**
168
165
  * Interface defining the methods and properties for a storage adapter.
169
166
  */
@@ -1635,7 +1632,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1635
1632
  * @param environment - The environment to check.
1636
1633
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1637
1634
  */
1638
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | PluginConfig<any>>;
1635
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
1639
1636
  }
1640
1637
  //#endregion
1641
1638
  //#region src/types/plugin.d.ts
@@ -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-olSYh6qz.cjs";
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-D6xDscjC.cjs";
2
2
  import "../index-CEgs-Dz2.cjs";
3
3
  export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
@@ -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-Oet5gr_H.mjs";
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-_LV5O5qb.mjs";
2
2
  import "../index-BgAdqTbb.mjs";
3
3
  export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
@@ -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-olSYh6qz.cjs";
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-D6xDscjC.cjs";
2
2
  export { UnenvPluginContext, UnenvPluginOptions, UnenvPluginResolvedConfig, UnenvPluginUserConfig, __ΩUnenvPluginContext, __ΩUnenvPluginOptions, __ΩUnenvPluginResolvedConfig, __ΩUnenvPluginUserConfig };
@@ -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-Oet5gr_H.mjs";
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-_LV5O5qb.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.45",
3
+ "version": "0.1.47",
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.7",
125
+ "powerlines": "^0.30.9",
126
126
  "typescript": "^5.9.3",
127
127
  "vite": "^7.2.6"
128
128
  },
129
129
  "devDependencies": {
130
- "@powerlines/nx": "^0.10.56",
130
+ "@powerlines/nx": "^0.10.58",
131
131
  "@types/node": "^24.10.1"
132
132
  },
133
133
  "publishConfig": { "access": "public" },
134
- "gitHead": "c99d14f5c417d27c6854661afcf485f629f4e143"
134
+ "gitHead": "00fa339177561d404892937d2c24fe2a5b3df4e7"
135
135
  }