one
Version:
One is a new React Framework that makes Vite serve both native and web.
16 lines (12 loc) • 540 B
text/typescript
import { loadUserOneOptions } from '../vite/loadConfig'
export async function run(args: {}) {
const { runAndroid } = await import('vxrn')
// resolve the app's dev server port from its vite config so the launched
// app points at the real dev server (vxrn passes it as expo's --port and
// expo reuses the already-running server for this project root)
const options = await loadUserOneOptions('serve', true).catch(() => null)
await runAndroid({
root: process.cwd(),
port: options?.config?.config?.server?.port,
})
}