Skip to content

Commit

Permalink
chore: resolve type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Dec 14, 2024
1 parent 237fa54 commit 1918fa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { readFileSync } from 'node:fs'
import { join } from 'node:path'
import process from 'node:process'
import { promisify } from 'node:util'
// @ts-expect-error dtsx issues
import { checkExistingCertificates, checkHosts, cleanup, startProxies } from '@stacksjs/rpx'
import { bold, cyan, dim, green } from 'picocolors'
import packageJson from '../package.json'
Expand Down Expand Up @@ -84,7 +85,7 @@ async function needsSudoAccess(options: VitePluginLocalOptions, domain: string):
if (!hostsExist[0]) {
try {
// Try to write a test file to check permissions
await execAsync('touch /etc/hosts', { stdio: 'ignore' })
await execAsync('touch /etc/hosts')
return false
}
catch {
Expand Down

0 comments on commit 1918fa9

Please sign in to comment.