We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c06ef0 commit f946c86Copy full SHA for f946c86
packages/create-vite/src/index.ts
@@ -449,7 +449,9 @@ async function init() {
449
450
const [command, ...args] = fullCustomCommand.split(' ')
451
// we replace TARGET_DIR here because targetDir may include a space
452
- const replacedArgs = args.map((arg) => arg.replace('TARGET_DIR', targetDir))
+ const replacedArgs = args.map((arg) =>
453
+ arg.replace('TARGET_DIR', () => targetDir),
454
+ )
455
const { status } = spawn.sync(command, replacedArgs, {
456
stdio: 'inherit',
457
})
0 commit comments