Skip to content

Commit 2164265

Browse files
Fix
1 parent 5d2970b commit 2164265

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crates/node/scripts/install.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ async function downloadAndExtractBinary(packageName) {
124124
}
125125

126126
async function main() {
127+
// Don't run this script in the package source
128+
if (fs.existsSync(path.join(__dirname, '..', 'build.rs'))) {
129+
return
130+
}
131+
127132
const packageName = getPlatformPackageName()
128133
if (!packageName) return
129134
if (isPackageAvailable(packageName)) return

packages/@tailwindcss-upgrade/src/utils/git.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import { execSync } from 'node:child_process'
33
export function isRepoDirty() {
44
try {
55
let stdout = execSync('git status --porcelain', { encoding: 'utf-8' })
6-
console.log({ stdout })
76
return stdout.trim() !== ''
87
} catch (error) {
9-
console.log({ error })
108
// If it's not a git repository we don't know if it's dirty or not. But we
119
// also don't want to block the migration. Maybe we can still fail and
1210
// require a `--force` flag?

0 commit comments

Comments
 (0)