Skip to content

Commit 19b630b

Browse files
Copilothotlong
andcommitted
fix: use pnpm run dev instead of npx vite in studio command
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent aea8832 commit 19b630b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/commands/studio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function studio() {
4747
console.log(chalk.dim(' Mode: MSW (in-browser mock server)\n'));
4848

4949
// Delegate to the console's dev script which starts Vite + MSW
50-
const child = spawn('npx', ['vite', '--open'], {
50+
const child = spawn('pnpm', ['run', 'dev'], {
5151
cwd: consolePath,
5252
stdio: 'inherit',
5353
env: { ...process.env, NODE_ENV: 'development' },

0 commit comments

Comments
 (0)