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) {
124124}
125125
126126async 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
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ import { execSync } from 'node:child_process'
33export 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?
You can’t perform that action at this time.
0 commit comments