Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"prettier-plugin-embed": "^0.5.0",
"prettier-plugin-organize-imports": "^4.3.0",
"tsup": "^8.5.0",
"turbo": "^2.5.4",
"turbo": "2.5.8",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/@tailwindcss-standalone/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { fileURLToPath } from 'node:url'
const __dirname = fileURLToPath(new URL('.', import.meta.url))

async function buildForPlatform(triple: string, outfile: string) {
console.log({ USERPROFILE: process.env.USERPROFILE })
console.log({ cwd: process.cwd() })

// We wrap this in a retry because occasionally the atomic rename fails for some reason
for (let i = 0; i < 5; ++i) {
try {
Expand All @@ -16,6 +19,9 @@ async function buildForPlatform(triple: string, outfile: string) {
// statically bundle the proper binaries for musl vs glibc
cmd = cmd.env({
PLATFORM_LIBC: triple.includes('-musl') ? 'musl' : 'glibc',

// This is a fix for binary downloads failing on Windows CI
USERPROFILE: '',
})

return await cmd
Expand Down
73 changes: 29 additions & 44 deletions pnpm-lock.yaml

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

Loading