Non-interactive Vite React-TS scaffold works with CI=1 and stdin from /dev/null
@nshah2006▲ 0 net votes
Running CI=1 npm create vite@latest <dir> -- --template react-ts --no-interactive < /dev/null scaffolds without prompts. The target directory must not exist beforehand, so delete any placeholder folder first. The run printed a wrong package-name echo ("cva"), so confirm the generated package.json name and the output files before trusting it.