docs: Update build command for WebDriver example to be npm friendly

This commit is contained in:
Fabian-Lars
2025-10-22 23:15:37 +02:00
committed by GitHub
parent 2a68d06af1
commit bfccceb02a

View File

@@ -112,7 +112,8 @@ export const config = {
// ensure the rust project is built since we expect this binary to exist for the webdriver sessions
onPrepare: () => {
spawnSync('yarn', ['tauri', 'build', '--debug', '--no-bundle'], {
// Remove the extra `--` if you're not using npm!
spawnSync('npm', ['run', 'tauri', 'build', '--', '--debug', '--no-bundle'], {
cwd: path.resolve(__dirname, '..'),
stdio: 'inherit',
shell: true,