diff options
| author | Dax Raad <[email protected]> | 2026-04-25 14:30:16 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-04-25 14:30:16 -0400 |
| commit | 1e98167b0e027825b3a77a2dab0be539011e7376 (patch) | |
| tree | c3a972121aacd5ab6bcf03b01f10b00d80dca06f /packages/core | |
| parent | 3eee2f6afa5c7fde20d0e838143832b681795d9f (diff) | |
| download | opencode-1e98167b0e027825b3a77a2dab0be539011e7376.tar.gz opencode-1e98167b0e027825b3a77a2dab0be539011e7376.zip | |
core: move cross-spawn-spawner to root and remove unused types
The cross-spawn-spawner module has been moved from src/effect/ to src/
to simplify the core package structure. The src/types.d.ts file which
contained unused type declarations has also been removed. All imports
throughout the codebase have been updated to reflect the new location.
This change reduces the package's internal complexity by flattening the
module hierarchy and removing dead code, making future maintenance easier.
Diffstat (limited to 'packages/core')
| -rw-r--r-- | packages/core/src/cross-spawn-spawner.ts (renamed from packages/core/src/effect/cross-spawn-spawner.ts) | 0 | ||||
| -rw-r--r-- | packages/core/src/types.d.ts | 46 | ||||
| -rw-r--r-- | packages/core/test/effect/cross-spawn-spawner.test.ts | 2 |
3 files changed, 1 insertions, 47 deletions
diff --git a/packages/core/src/effect/cross-spawn-spawner.ts b/packages/core/src/cross-spawn-spawner.ts index ad8d4126d..ad8d4126d 100644 --- a/packages/core/src/effect/cross-spawn-spawner.ts +++ b/packages/core/src/cross-spawn-spawner.ts diff --git a/packages/core/src/types.d.ts b/packages/core/src/types.d.ts deleted file mode 100644 index 60e1639ad..000000000 --- a/packages/core/src/types.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -declare module "@npmcli/arborist" { - export interface ArboristOptions { - path: string - binLinks?: boolean - progress?: boolean - savePrefix?: string - ignoreScripts?: boolean - [key: string]: unknown - } - - export interface ArboristNode { - name: string - path: string - } - - export interface ArboristEdge { - to?: ArboristNode - } - - export interface ArboristTree { - edgesOut: Map<string, ArboristEdge> - } - - export interface ReifyOptions { - add?: string[] - save?: boolean - saveType?: "prod" | "dev" | "optional" | "peer" - [key: string]: unknown - } - - export class Arborist { - constructor(options: ArboristOptions) - loadVirtual(): Promise<ArboristTree | undefined> - reify(options?: ReifyOptions): Promise<ArboristTree> - } -} - -declare var Bun: - | { - file(path: string): { - text(): Promise<string> - json(): Promise<unknown> - } - write(path: string, content: string | Uint8Array): Promise<void> - } - | undefined diff --git a/packages/core/test/effect/cross-spawn-spawner.test.ts b/packages/core/test/effect/cross-spawn-spawner.test.ts index d53725797..2612b75e4 100644 --- a/packages/core/test/effect/cross-spawn-spawner.test.ts +++ b/packages/core/test/effect/cross-spawn-spawner.test.ts @@ -5,7 +5,7 @@ import path from "node:path" import { Effect, Exit, Stream } from "effect" import type * as PlatformError from "effect/PlatformError" import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process" -import { CrossSpawnSpawner } from "@opencode-ai/core/effect/cross-spawn-spawner" +import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" import { testEffect } from "../lib/effect" const live = CrossSpawnSpawner.defaultLayer |
