Skip to content

pnpm@11.5.3 breaks scripts as it prints warnings to stdout #12432

Description

@felipecrs

Last pnpm version that worked

11.5.2

pnpm version

11.5.3

Description

#12262 added a very annoying warning to every pnpm invocation in the Renovate repository as shown below.

These warnings are not actionable as they're not in Renovate itself but in @yarnpkg/core, esbuild, and vite.

Does it really make sense to have such warnings for remote dependencies?

Worse, this warning is printed to stdout, which causes scripts to fail.

$ git clone https://github.com/renovatebot/renovate

# swap pnpm version in package.json > packageManager

# 11.5.2
# All good
$ pnpm build
$ run-s clean 'generate:*' 'compile:*' create-json-schema
$ rimraf dist tmp
$ node tools/generate-imports.mjs
$ tsdown
...

# 11.5.3
$ pnpm build
[WARN] The "$" version reference syntax in overrides is deprecated (used by: @yarnpkg/core@4.5.0>tar, esbuild, vite). Define the version in a catalog and reference it with the "catalog:" protocol instead. See https://pnpm.io/catalogs
$ run-s clean 'generate:*' 'compile:*' create-json-schema
[WARN] The "$" version reference syntax in overrides is deprecated (used by: @yarnpkg/core@4.5.0>tar, esbuild, vite). Define the version in a catalog and reference it with the "catalog:" protocol instead. See https://pnpm.io/catalogs
$ rimraf dist tmp
[WARN] The "$" version reference syntax in overrides is deprecated (used by: @yarnpkg/core@4.5.0>tar, esbuild, vite). Define the version in a catalog and reference it with the "catalog:" protocol instead. See https://pnpm.io/catalogs
$ node tools/generate-imports.mjs
[WARN] The "$" version reference syntax in overrides is deprecated (used by: @yarnpkg/core@4.5.0>tar, esbuild, vite). Define the version in a catalog and reference it with the "catalog:" protocol instead. See https://pnpm.io/catalogs
$ tsdown
$ PNPM_STORE=$(pnpm store path)

$ echo "$PNPM_STORE"
[WARN] The "$" version reference syntax in overrides is deprecated (used by: @yarnpkg/core@4.5.0>tar, esbuild, vite). Define the version in a catalog and reference it with the "catalog:" protocol instead. See https://pnpm.io/catalogs
/home/felipecrs/.local/share/pnpm/store/v11

Node.js version

24.16.0

Operating System

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions