fix(desktop): use Effect platform subpath imports (#43817)

This commit is contained in:
Brendan Allan 2026-08-21 15:32:55 +08:00 committed by GitHub
parent 8b93bc395d
commit 4d22d4e75f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { NodeFileSystem } from "@effect/platform-node"
import * as NodeFileSystem from "@effect/platform-node/NodeFileSystem"
import { mkdtemp, rm, truncate, writeFile } from "node:fs/promises"
import { tmpdir } from "node:os"
import { join } from "node:path"

View file

@ -1,4 +1,6 @@
import { NodeFileSystem, NodePath, NodeRuntime } from "@effect/platform-node"
import * as NodeFileSystem from "@effect/platform-node/NodeFileSystem"
import * as NodePath from "@effect/platform-node/NodePath"
import * as NodeRuntime from "@effect/platform-node/NodeRuntime"
import { app } from "electron"
import { Effect, Layer } from "effect"
import { Ipc } from "./ipc"

View file

@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { NodePath } from "@effect/platform-node"
import * as NodePath from "@effect/platform-node/NodePath"
import { Effect } from "effect"
import { isNushell, mergeShellEnv, parseShellEnv, resolveUserShell } from "./shell-env"

View file

@ -1,4 +1,5 @@
import { NodeFileSystem, NodePath } from "@effect/platform-node"
import * as NodeFileSystem from "@effect/platform-node/NodeFileSystem"
import * as NodePath from "@effect/platform-node/NodePath"
import { afterEach, describe, expect, test } from "bun:test"
import { tmpdir } from "node:os"
import { Effect, FileSystem, Layer, Path } from "effect"