Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support npm dist-tags in `vp env pin` (e.g. `pnpm@latest-10`)

オープン
#3,034 コメント 0 件 リアクション 3 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@liangmiQwQ がすでに取り組んでいます。

2026年10月13日 から。

  • #3047 @liangmiQwQ による — オープン

評価

この issue はまだ評価されていません。

説明

enhancement

Description

I want to pin the latest stable release of a package manager major, e.g. pnpm 10. pnpm publishes this as the latest-10 dist-tag:

$ npm view pnpm dist-tags
latest-10: 10.34.6   # stable
next-10:   10.34.7   # newer, not yet promoted to latest-10

vp env pin pnpm@10 can't express this. It picks the highest semver match (10.34.7, the next channel), or a cached version. Dist-tags aren't accepted:

$ vp env pin pnpm@latest-10
Error: Install error: Invalid argument: invalid pnpm version "latest-10": expected semver 'major.minor.patch' or a semver range

Suggested solution

Treat a non-semver version as a dist-tag and resolve it via the registry, then pin the exact version. latest already works this way (source), so this generalizes it to any tag.

$ vp env pin pnpm@latest-10
✓ Pinned package manager to [email protected]

Alternative

vp env pin "pnpm@$(npm view pnpm@latest-10 version)"

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
主要言語
Rust
スター
6k
フォーク
274
平均マージ
1日 11時間
マージ済み PR(30日)
206

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。