Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite77aa0c

Browse files
ci: fix broken CLI binary copy step for NPM publish (#3805)
1 parenta3446a7 commite77aa0c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎packages/@biomejs/biome/scripts/generate-packages.mjs‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ function copyBinaryToNativePackage(platform, arch) {
5858
);
5959
constbinaryTarget=resolve(packageRoot,`biome${ext}`);
6060

61-
if(fs.existsSync(binaryTarget)){
62-
console.log(`Copy binary${binaryTarget}`);
63-
fs.copyFileSync(binarySource,binaryTarget);
64-
fs.chmodSync(binaryTarget,0o755);
61+
if(!fs.existsSync(binarySource)){
62+
console.error(`Source for binary for${buildName} not found at:${binarySource}`);
63+
process.exit(1);
6564
}
65+
66+
console.log(`Copy binary${binaryTarget}`);
67+
fs.copyFileSync(binarySource,binaryTarget);
68+
fs.chmodSync(binaryTarget,0o755);
6669
}
6770

6871
functionupdateWasmPackage(target){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp