Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __tests__/fdir.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FSLike, fdir } from "../src/index";
import fs from "fs";
import fs from "node:fs";
import mock from "mock-fs";
import { test, beforeEach, TestContext, vi } from "vitest";
import path, { sep } from "path";
import path, { sep } from "node:path";
import { convertSlashes } from "../src/utils";
import picomatch from "picomatch";
import { apiTypes, APITypes, cwd, restricted, root } from "./utils";
Expand Down
2 changes: 1 addition & 1 deletion __tests__/symlinks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { afterAll, beforeAll, beforeEach, describe, test } from "vitest";
import { apiTypes, normalize, root } from "./utils";
import mock from "mock-fs";
import { fdir, Options } from "../src";
import path from "path";
import path from "node:path";

const fsWithRelativeSymlinks = {
"../../sym-relative/linked": {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from "path";
import path from "node:path";

export type APITypes = (typeof apiTypes)[number];
export const apiTypes = ["withPromise", "sync"] as const;
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import recursiveFs from "recursive-fs";
import b from "benny";
import { getAllFilesSync, getAllFiles } from "get-all-files";
import packageJson from "../package.json";
import { readFileSync, readdirSync, writeFileSync } from "fs";
import { readFileSync, readdirSync, writeFileSync } from "node:fs";
import CSV2MD from "csv-to-markdown-table";
import { getSystemInfo } from "./export";
import { readdir } from "fs/promises";
import { readdir } from "node:fs/promises";

async function benchmark() {
const DIRECTORY = "node_modules";
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/fdir-benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import child_process from "child_process";
import child_process from "node:child_process";
import { Fdir } from "../src/index";
import b from "benny";

Expand Down
Loading