Skip to content

vp migrate beta test#9

Draft
fengmk2 wants to merge 1 commit into
mainfrom
vp-migrate-test
Draft

vp migrate beta test#9
fengmk2 wants to merge 1 commit into
mainfrom
vp-migrate-test

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary / 变更说明

Related Issue / 关联 Issue

Type of change / 变更类型

  • Bug fix / 缺陷修复
  • Feature / 新功能
  • Docs / 文档更新
  • Refactor / 重构
  • Test / 测试
  • Chore / 工程化变更

Affected packages / 影响包

Validation / 验证

  • mise exec -- npm run lint
  • mise exec -- npm run test
  • Docs-only change, tests not needed / 仅文档改动,无需测试

If checks are skipped, explain why:

Breaking Change / 破坏性变更

  • No / 否
  • Yes / 是 (describe below)

Checklist / 提交前检查

  • This PR links to an issue.
  • Scope is focused and does not include unrelated changes.
  • Commit messages follow Conventional Commits.
  • Docs are updated if behavior/API changed.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the project to the Vite+ unified toolchain, updating package dependencies and test imports across the monorepo. The reviewer identified several opportunities to clean up the dependency management by removing redundant direct dependencies on vitest where it is already provided transitively via vite-plus. Additionally, the reviewer recommended importing defineConfig from vite rather than vite-plus in configuration files to better align with standard practices.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread package.json
Comment on lines +25 to +26
"vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce",
"vitest": "4.1.9"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The vitest package is a dependency of vite-plus, so it will be installed transitively. Adding it as a direct devDependency here is redundant. To simplify dependency management, it's best to remove it and rely on the version brought in by vite-plus. The overrides section already ensures a consistent version of vitest is used throughout the monorepo.

    "vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce"

Comment thread packages/dev/package.json
Comment on lines +46 to +47
"vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce",
"vitest": "4.1.9"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the root package.json, vitest is a transitive dependency of vite-plus. It should be removed from the devDependencies here to avoid redundancy and keep dependency management clean.

    "vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce"

import { fileURLToPath } from 'node:url'

import { defineConfig } from 'vitest/config'
import { defineConfig } from 'vite-plus'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The import path for defineConfig has been changed from vitest/config to vite-plus. This is consistent with the migration to vite-plus. However, vite-plus also re-exports defineConfig from vite. It's more idiomatic to import defineConfig directly from vite when configuring Vite, even when using Vitest. Consider changing this to import { defineConfig } from 'vite' for better clarity and alignment with standard practices.

Suggested change
import { defineConfig } from 'vite-plus'
import { defineConfig } from 'vite'

Comment on lines +16 to +17
"@faasjs/dev": "file:../../packages/dev",
"vitest": "4.1.9"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the project is migrating to vite-plus (which is a dependency of @faasjs/dev), and vite-plus itself includes vitest, this direct dependency on vitest is redundant. It should be removed to keep the template's dependencies clean.

    "@faasjs/dev": "file:../../packages/dev"

Comment on lines +16 to +17
"@faasjs/dev": "file:../../packages/dev",
"vitest": "4.1.9"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

vitest is a transitive dependency of vite-plus (which is brought in via @faasjs/dev). This direct dependency is redundant and should be removed for cleaner dependency management in this template.

    "@faasjs/dev": "file:../../packages/dev"

Comment on lines +17 to +18
"@faasjs/dev": "file:../../packages/dev",
"vitest": "4.1.9"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

vitest is a transitive dependency of vite-plus (which is brought in via @faasjs/dev). This direct dependency is redundant and should be removed for cleaner dependency management in this template.

    "@faasjs/dev": "file:../../packages/dev"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant