Skip to content

Commit

Permalink
refactor: 💡 use node: protocol for builtin node module
Browse files Browse the repository at this point in the history
  • Loading branch information
shufo committed Dec 22, 2024
1 parent 53b8d6b commit ea30a71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions __tests__/cli.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as cmd from "./support/cmd";
import path from "path";
import fs from "fs";
import path from "node:path";
import fs from "node:fs";
import { name as packageName } from "../package.json";
import { describe, test, expect } from "vitest";

Expand Down
4 changes: 2 additions & 2 deletions __tests__/formatter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import fs from "fs";
import path from "node:path";
import fs from "node:fs";
import * as prettier from "prettier";
import * as plugin from "../dist/index";
import { describe, test, expect } from "vitest";
Expand Down
4 changes: 2 additions & 2 deletions __tests__/support/cmd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawn, spawnSync } from "child_process";
import { spawn, spawnSync } from "node:child_process";
import concat from "concat-stream";
import process from "process";
import process from "node:process";

function createProcess(
processPath: string,
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Parser, type ParserOptions, resolveConfigFile } from "prettier";
import type { FormatterOption } from "blade-formatter";
import { Formatter } from "blade-formatter";
import path from "path";
import path from "node:path";
import { parsePhpVersion } from "./options";

/**
Expand Down

0 comments on commit ea30a71

Please sign in to comment.