diff --git a/src/declaration/binary.ts b/src/declaration/binary.ts index 4c42df1..cf5f3f0 100644 --- a/src/declaration/binary.ts +++ b/src/declaration/binary.ts @@ -1,4 +1,4 @@ -import { Buffer } from "node:buffer"; +import { Buffer } from "buffer"; import { createLengthConstraint, type LengthConstraintSpec, diff --git a/src/environment.ts b/src/environment.ts index 752e25a..9c57043 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -1,4 +1,4 @@ -import { EOL } from "node:os"; +import { EOL } from "os"; import { render as renderSpecification } from "./specification.js"; import { render as renderSummary } from "./summary.js"; import { Results, validate } from "./validation.js"; diff --git a/src/specification.ts b/src/specification.ts index 9ac139e..754b480 100644 --- a/src/specification.ts +++ b/src/specification.ts @@ -1,4 +1,4 @@ -import { basename } from "node:path"; +import { basename } from "path"; import { extrinsicConstraints, type Constraint } from "./constraint.js"; import { createDisjunctionFormatter } from "./list.js"; import { code, inlineCode, italic, list, strong, table } from "./markdown.js"; diff --git a/src/table.ts b/src/table.ts index 9e4d192..c7fe446 100644 --- a/src/table.ts +++ b/src/table.ts @@ -1,4 +1,4 @@ -import { EOL } from "node:os"; +import { EOL } from "os"; const segmenter = new Intl.Segmenter(); diff --git a/test/helpers.ts b/test/helpers.ts index bbb0361..faa3a44 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -1,5 +1,5 @@ -import { Console } from "node:console"; -import { Transform } from "node:stream"; +import { Console } from "console"; +import { Transform } from "stream"; import { Mock, vi } from "vitest"; export function noop() { diff --git a/test/suite/declaration/binary.spec-d.ts b/test/suite/declaration/binary.spec-d.ts index 1c9ccbd..3f0459d 100644 --- a/test/suite/declaration/binary.spec-d.ts +++ b/test/suite/declaration/binary.spec-d.ts @@ -1,4 +1,4 @@ -import { Buffer } from "node:buffer"; +import { Buffer } from "buffer"; import { describe, expectTypeOf, it } from "vitest"; import { binary, initialize } from "../../../src/index.js"; import { noop } from "../../helpers.js"; diff --git a/test/suite/declaration/binary.spec.ts b/test/suite/declaration/binary.spec.ts index 50048be..6f46ba6 100644 --- a/test/suite/declaration/binary.spec.ts +++ b/test/suite/declaration/binary.spec.ts @@ -1,4 +1,4 @@ -import { Buffer } from "node:buffer"; +import { Buffer } from "buffer"; import { beforeEach, describe, expect, it } from "vitest"; import { Declaration } from "../../../src/declaration.js"; import { Options } from "../../../src/declaration/binary.js"; diff --git a/test/suite/specification.spec.ts b/test/suite/specification.spec.ts index 4b7f0a4..f676c9e 100644 --- a/test/suite/specification.spec.ts +++ b/test/suite/specification.spec.ts @@ -1,6 +1,6 @@ import { Temporal } from "@js-temporal/polyfill"; -import { join } from "node:path"; -import { fileURLToPath } from "node:url"; +import { join } from "path"; +import { fileURLToPath } from "url"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { registerVariable } from "../../src/environment.js"; import { diff --git a/test/suite/summary.spec.ts b/test/suite/summary.spec.ts index 15cf187..feb3b42 100644 --- a/test/suite/summary.spec.ts +++ b/test/suite/summary.spec.ts @@ -1,6 +1,6 @@ import { Temporal } from "@js-temporal/polyfill"; -import { join } from "node:path"; -import { fileURLToPath } from "node:url"; +import { join } from "path"; +import { fileURLToPath } from "url"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { registerVariable } from "../../src/environment.js"; import {