Skip to content

Commit 297d884

Browse files
committed
Work around Windows CI failure
1 parent 581867d commit 297d884

File tree

1 file changed

+11
-1
lines changed
  • packages/@tailwindcss-standalone/scripts

1 file changed

+11
-1
lines changed

packages/@tailwindcss-standalone/scripts/build.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url))
77

88
// Workaround for Bun binary downloads failing on Windows CI when
99
// USERPROFILE is passed through by Turborepo.
10-
process.env.USERPROFILE = ''
10+
//
11+
// Unfortunately, setting this at runtime doesn't appear to work so we have to
12+
// spawn a new process without the env var.
13+
if (process.env.NESTED_BUILD !== '1' && process.env.USERPROFILE && process.env.USERPROFILE !== '') {
14+
let result = await Bun.$`bun ./build.ts`.env({
15+
USERPROFILE: '',
16+
NESTED_BUILD: '1',
17+
})
18+
19+
process.exit(result.exitCode)
20+
}
1121

1222
// We use baseline builds for all x64 platforms to ensure compatibility with
1323
// older hardware.

0 commit comments

Comments
 (0)