Skip to content

Commit 4fbe50f

Browse files
committed
Merge branch 'main' of https://github.com/voidzero-dev/vite-plus into fix/homebrew-env-shims
2 parents a83e709 + 2732f23 commit 4fbe50f

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/test-vp-create.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,24 @@ jobs:
322322
if: matrix.template.name == 'monorepo'
323323
working-directory: ${{ runner.temp }}/test-project
324324
run: |
325+
# Under npm, `vp run ready` reaches 100% cache hit only on the
326+
# third invocation (#1638): vite-task's directory-listing
327+
# fingerprint and fspy read/write tracking surface false-positive
328+
# misses on run #2 because `packages/utils/node_modules/` is born
329+
# during run #1. pnpm/yarn/bun pre-create per-package
330+
# `node_modules/` at install time and reach 100% on run #2.
331+
# The preceding `Verify project builds` step already invoked
332+
# `vp run ready` once (verify-command for monorepo), so one
333+
# extra warm-up here is enough under npm.
334+
if [ "${{ matrix.package-manager }}" = "npm" ]; then
335+
vp run ready >/dev/null 2>&1
336+
fi
325337
output=$(vp run ready 2>&1)
326338
echo "$output"
327339
if ! echo "$output" | grep -q 'cache hit (100%)'; then
328-
echo "✗ Expected 100% cache hit on second run"
340+
echo "✗ Expected 100% cache hit"
341+
echo "--- vp run --last-details (cache-miss diagnostics) ---"
342+
vp run --last-details || true
329343
exit 1
330344
fi
331345
echo "✓ 100% cache hit verified"

packages/cli/src/utils/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export async function promptGitInit(options: {
228228
if (options.interactive) {
229229
const selected = await prompts.confirm({
230230
message: 'Initialize a git repository with an initial commit?',
231-
initialValue: false,
231+
initialValue: true,
232232
});
233233
if (prompts.isCancel(selected)) {
234234
cancelAndExit();

0 commit comments

Comments
 (0)