Skip to content

Commit

Permalink
fix(cli): set the right name for binary executable (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
NumberOneBot authored Sep 14, 2023
1 parent 84770ca commit 9c28238
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions packages/@biomejs/backend-jsonrpc/src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export function getCommand(): string | null {

const PLATFORMS: PlatformPaths = {
win32: {
x64: "@biomejs/cli-win32-x64/rome.exe",
arm64: "@biomejs/cli-win32-arm64/rome.exe",
x64: "@biomejs/cli-win32-x64/biome.exe",
arm64: "@biomejs/cli-win32-arm64/biome.exe",
},
darwin: {
x64: "@biomejs/cli-darwin-x64/rome",
arm64: "@biomejs/cli-darwin-arm64/rome",
x64: "@biomejs/cli-darwin-x64/biome",
arm64: "@biomejs/cli-darwin-arm64/biome",
},
linux: {
x64: "@biomejs/cli-linux-x64/rome",
arm64: "@biomejs/cli-linux-arm64/rome",
x64: "@biomejs/cli-linux-x64/biome",
arm64: "@biomejs/cli-linux-arm64/biome",
},
};

Expand Down
16 changes: 8 additions & 8 deletions packages/@biomejs/biome/scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ const { platform, arch } = process;

const PLATFORMS = {
win32: {
x64: "@biomejs/cli-win32-x64/rome.exe",
arm64: "@biomejs/cli-win32-arm64/rome.exe",
x64: "@biomejs/cli-win32-x64/biome.exe",
arm64: "@biomejs/cli-win32-arm64/biome.exe",
},
darwin: {
x64: "@biomejs/cli-darwin-x64/rome",
arm64: "@biomejs/cli-darwin-arm64/rome",
x64: "@biomejs/cli-darwin-x64/biome",
arm64: "@biomejs/cli-darwin-arm64/biome",
},
linux: {
x64: "@biomejs/cli-linux-x64/rome",
arm64: "@biomejs/cli-linux-arm64/rome",
x64: "@biomejs/cli-linux-x64/biome",
arm64: "@biomejs/cli-linux-arm64/biome",
},
};

Expand All @@ -22,13 +22,13 @@ if (binName) {
binPath = require.resolve(binName);
} catch {
console.warn(
`The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`,
`The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`
);
}
} else {
console.warn(
"The Biome CLI package doesn't ship with prebuilt binaries for your platform yet. " +
"You can still use the CLI by cloning the biomejs/biome repo from GitHub, " +
"and follow the instructions there to build the CLI for your platform.",
"and follow the instructions there to build the CLI for your platform."
);
}

0 comments on commit 9c28238

Please sign in to comment.