refactor: remove module barrels (#24554)

This commit is contained in:
Dax
2026-04-27 14:33:33 -04:00
committed by GitHub
parent 55ecb06748
commit f25f1485d5
313 changed files with 727 additions and 677 deletions

View File

@@ -1,7 +1,7 @@
import { describe, test, expect } from "bun:test"
import path from "path"
import fs from "fs/promises"
import { Filesystem } from "../../src/util"
import { Filesystem } from "@/util/filesystem"
import { tmpdir } from "../fixture/fixture"
describe("filesystem", () => {

View File

@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { Lock } from "../../src/util"
import { Lock } from "@/util/lock"
function tick() {
return new Promise<void>((r) => queueMicrotask(r))

View File

@@ -2,7 +2,7 @@ import { afterEach, expect, test } from "bun:test"
import fs from "fs/promises"
import path from "path"
import { Global } from "@opencode-ai/core/global"
import { Log } from "../../src/util"
import * as Log from "@opencode-ai/core/util/log"
import { tmpdir } from "../fixture/fixture"
const log = Global.Path.log

View File

@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test"
import path from "path"
import { Module } from "@opencode-ai/core/util/module"
import { Filesystem } from "../../src/util"
import { Filesystem } from "@/util/filesystem"
import { tmpdir } from "../fixture/fixture"
describe("util.module", () => {

View File

@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test"
import fs from "fs/promises"
import path from "path"
import { Process } from "../../src/util"
import { Process } from "@/util/process"
import { tmpdir } from "../fixture/fixture"
function node(script: string) {

View File

@@ -1,5 +1,5 @@
import { test, expect } from "bun:test"
import { Wildcard } from "../../src/util"
import { Wildcard } from "@/util/wildcard"
test("match handles glob tokens", () => {
expect(Wildcard.match("file1.txt", "file?.txt")).toBe(true)