[ci] format

This commit is contained in:
ematipico 2023-10-09 16:00:28 +00:00 committed by astrobot-houston
parent c4a7ec4255
commit 7ea27f6319

View file

@ -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))