Skip to content

chore: vp migrate v2#11

Draft
fengmk2 wants to merge 1 commit into
devfrom
chore/vp-migrate-test-v2
Draft

chore: vp migrate v2#11
fengmk2 wants to merge 1 commit into
devfrom
chore/vp-migrate-test-v2

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Checklist

List of tasks you have already done and plan to do.

  • Fix linting errors
  • Tests have been added / updated (or snapshots)

Change information

Describe your modifications here.

Issues

The issues you want to close, formatted as close #1.

Related Links

Links related to this pr.

@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 updates the repository to use a specific commit version of vite (aliased to @voidzero-dev/vite-plus-core) and vite-plus across multiple packages, and configures .npmrc to use the vite-plus preview build registry bridge. In packages/varlet-cli/src/module.d.ts, the runCLI constant was modified to be exported. However, using export declare inside an ambient module declaration is redundant and causes a TypeScript compiler error (TS1038); it should be simplified to export const runCLI: any.

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.


declare module 'jest' {
declare const runCLI: any
export declare const runCLI: any

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Using the declare modifier inside an ambient module declaration (declare module '...') is redundant and causes a TypeScript compiler error: TS1038: A 'declare' modifier cannot be used in an already ambient context.

To resolve this, remove the declare keyword and simply export the constant.

  export const runCLI: any

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@varlet/cli

npm i https://pkg.pr.new/@varlet/cli@11

@varlet/icons

npm i https://pkg.pr.new/@varlet/icons@11

@varlet/import-resolver

npm i https://pkg.pr.new/@varlet/import-resolver@11

@varlet/preset-tailwindcss

npm i https://pkg.pr.new/@varlet/preset-tailwindcss@11

@varlet/preset-unocss

npm i https://pkg.pr.new/@varlet/preset-unocss@11

@varlet/shared

npm i https://pkg.pr.new/@varlet/shared@11

@varlet/touch-emulator

npm i https://pkg.pr.new/@varlet/touch-emulator@11

@varlet/ui

npm i https://pkg.pr.new/@varlet/ui@11

@varlet/use

npm i https://pkg.pr.new/@varlet/use@11

@varlet/vite-plugins

npm i https://pkg.pr.new/@varlet/vite-plugins@11

commit: f213a24

@fengmk2 fengmk2 force-pushed the chore/vp-migrate-test-v2 branch from fe21eef to c40ba9f Compare July 1, 2026 11:38
Comment thread package.json Outdated
@fengmk2 fengmk2 force-pushed the chore/vp-migrate-test-v2 branch from c40ba9f to 7365899 Compare July 1, 2026 15:26
@fengmk2 fengmk2 force-pushed the chore/vp-migrate-test-v2 branch from 858b0dc to f213a24 Compare July 1, 2026 18:32
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