Skip to content
Merged
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
4 changes: 2 additions & 2 deletions integrations/upgrade/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,7 @@ test(
`,
},
},
async ({ exec, fs, expect }) => {
async ({ exec, root, fs, expect }) => {
await exec('npx @tailwindcss/upgrade')

let before = await fs.dumpFiles('./src/**/*.{css,html}')
Expand Down Expand Up @@ -2855,7 +2855,7 @@ test(
`)

// Commit the changes
if (isRepoDirty()) {
if (isRepoDirty(root)) {
await exec('git add .')
await exec('git commit -m "upgrade"')
}
Expand Down
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.6.1",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/@tailwindcss-standalone/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ 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',

// Workaround for Bun binary downloads failing on Windows CI when
// USERPROFILE is passed through by Turborepo.
USERPROFILE: '',
})

return await cmd
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-upgrade/src/utils/git.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { execSync } from 'node:child_process'

export function isRepoDirty() {
export function isRepoDirty(cwd?: string) {
try {
let stdout = execSync('git status --porcelain', { encoding: 'utf-8' })
let stdout = execSync('git status --porcelain', { encoding: 'utf-8', cwd })
return stdout.trim() !== ''
} catch (error) {
// If it's not a git repository we don't know if it's dirty or not. But we
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.