Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Oct 9, 2023
1 parent c4a7ec4 commit 7ea27f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/astro/astro.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ async function main() {
}
}

// windows drive letters can sometimes be lowercase, which vite cannot process
if (process.platform === 'win32') {
const cwd = process.cwd()
const correctedCwd = cwd.slice(0, 1).toUpperCase() + cwd.slice(1)
if (correctedCwd !== cwd) process.chdir(correctedCwd)
}
// windows drive letters can sometimes be lowercase, which vite cannot process
if (process.platform === 'win32') {
const cwd = process.cwd();
const correctedCwd = cwd.slice(0, 1).toUpperCase() + cwd.slice(1);
if (correctedCwd !== cwd) process.chdir(correctedCwd);
}

return import('./dist/cli/index.js')
.then(({ cli }) => cli(process.argv))
Expand Down

0 comments on commit 7ea27f6

Please sign in to comment.