Skip to content

Commit

Permalink
tmp test bun pr
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Feb 6, 2025
1 parent d04074b commit 50f0977
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/@tailwindcss-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@parcel/watcher-win32-x64": "^2.5.1",
"@types/bun": "^1.1.16",
"bun": "1.2.2",
"bun-pr": "1.0.29",
"lightningcss-darwin-arm64": "^1.29.1",
"lightningcss-darwin-x64": "^1.29.1",
"lightningcss-linux-arm64-gnu": "^1.29.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/@tailwindcss-standalone/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ import { fileURLToPath } from 'node:url'

const __dirname = fileURLToPath(new URL('.', import.meta.url))

// Install temp version of Bun to test the fix
await $`bunx bun-pr 17102`

async function buildForPlatform(triple: string, outfile: string) {
// We wrap this in a retry because occasionally the atomic rename fails for some reason
for (let i = 0; i < 5; ++i) {
try {
let cmd = $`bun build --compile --target=${triple} ./src/index.ts --outfile=${outfile} --env inline`
let cmd = $`bunx bun-17102 build --compile --target=${triple} ./src/index.ts --outfile=${outfile} --env inline`

// This env var is used by our patched versions of Lightning CSS and Parcel Watcher
// to statically bundle the proper binaries for musl vs glibc
Expand Down
167 changes: 160 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50f0977

Please sign in to comment.