File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/@tailwindcss-upgrade/src/utils Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,11 @@ async function downloadAndExtractBinary(packageName) {
124
124
}
125
125
126
126
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
+
127
132
const packageName = getPlatformPackageName ( )
128
133
if ( ! packageName ) return
129
134
if ( isPackageAvailable ( packageName ) ) return
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ import { execSync } from 'node:child_process'
3
3
export function isRepoDirty ( ) {
4
4
try {
5
5
let stdout = execSync ( 'git status --porcelain' , { encoding : 'utf-8' } )
6
- console . log ( { stdout } )
7
6
return stdout . trim ( ) !== ''
8
7
} catch ( error ) {
9
- console . log ( { error } )
10
8
// If it's not a git repository we don't know if it's dirty or not. But we
11
9
// also don't want to block the migration. Maybe we can still fail and
12
10
// require a `--force` flag?
You can’t perform that action at this time.
0 commit comments