Skip to content

Commit b20eb61

Browse files
Deleted special-casing for Bun, as we can't account for everything that doesn't work the same as in Node
1 parent d4530a2 commit b20eb61

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/bin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { toKebabCase } from "kasi";
44
import { bin, color, parseArgv } from "specialist";
5-
import { PRETTIER_VERSION, IS_BUN } from "./constants.js";
5+
import { PRETTIER_VERSION } from "./constants.js";
66
import { getPlugin, isNumber, normalizeOptions, normalizeFormatOptions, normalizePluginOptions } from "./utils.js";
77
import { run } from "./index.js";
88
import type { Bin, PluginsOptions } from "./types.js";
@@ -125,7 +125,7 @@ const makeBin = (): Bin => {
125125
enum: ["silent", "error", "warn", "log", "debug"],
126126
})
127127
.option("--no-parallel", 'Process files in parallel\nDefaults to "true"', {
128-
default: !IS_BUN, //TOOD: always set this to "true", once "worker_threads" work in Bun
128+
default: true,
129129
})
130130
.option("--parallel-workers <int>", 'Number of parallel workers to use\nDefaults to "0"')
131131
.option(

src/constants.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ const cliPackage = require("@prettier/cli/package.json");
66

77
const PRETTIER_VERSION = prettierPackage.version;
88
const CLI_VERSION = cliPackage.version;
9-
const IS_BUN = !!process.versions["bun"];
109

11-
export { PRETTIER_VERSION, CLI_VERSION, IS_BUN };
10+
export { PRETTIER_VERSION, CLI_VERSION };

0 commit comments

Comments
 (0)