/** * Bun-backed layers for Effect's {@link Path} service. * * This module provides the `Path` service for Bun programs by reusing the * shared Node-compatible path implementation. Provide one of these layers when * Bun code should receive path operations from the Effect environment instead * of importing runtime path helpers directly. * * @stability unstable * @since 4.0.0 */ import * as NodePath from "@effect/platform-node-shared/NodePath" import type * as Layer from "effect/Layer" import type { Path } from "effect/Path" /** * Layer that provides the default `Path` service for Bun using the shared Node path implementation. * * @stability unstable * @category layers * @since 4.0.0 */ export const layer: Layer.Layer = NodePath.layer /** * Layer that provides the POSIX `Path` service for Bun using the shared Node path implementation. * * @stability unstable * @category layers * @since 4.0.0 */ export const layerPosix: Layer.Layer = NodePath.layerPosix /** * Layer that provides the Win32 `Path` service for Bun using the shared Node path implementation. * * @stability unstable * @category layers * @since 4.0.0 */ export const layerWin32: Layer.Layer = NodePath.layerWin32