adapter-stellar: the published package runs a maintainer-only postinstall, so pnpm 11 consumers get ERR_PNPM_IGNORED_BUILDS unless they allow-list it

Open Beginner friendly
#114 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with packages/adapter-stellar/package.json, especially the postinstall script and files list, then check other adapter manifests for the same pattern. Inspect how the package is packed and how the Stellar type check is run for maintainers. Done means published installs no longer trigger the maintainer-only script or pnpm ignored-build warning, while maintainers can still run the check.

Written by the indexing model from the issue text.

Description

What happens

@openzeppelin/adapter-stellar declares a postinstall script (package.json L47-L48):

"postinstall": "pnpm validate-stellar-types || echo '⚠️  Stellar SDK type validation warnings detected'"

It runs scripts/check-stellar-sdk-types.js, a check meant for maintainers of this repo. That script is not in the published files (files is dist and src, L20-L23), so in a consumer it can never run and only prints the warning.

The script has been there since ec7fb58 and ships in the published 6.0.2.

Why it matters

  • pnpm 11 blocks dependency build scripts unless they are allow-listed. A consumer that has not allow-listed @openzeppelin/adapter-stellar gets ERR_PNPM_IGNORED_BUILDS on pnpm install.
  • A consumer that does allow-list it runs a script that does nothing useful. With npm or yarn it also calls pnpm, which may not be installed.

Seen in a consumer app installing a packed adapter-stellar build: pnpm skipped the script and showed the type-check warning. The app allow-lists the package by name.

Suggested fix

Keep the check for maintainers, but take it out of the published manifest: run it from a workspace script, CI or prepare instead of postinstall, or strip postinstall at pack time. Check the other adapters for the same pattern.

Dominant language
TypeScript
Stars
2
Forks
2
Avg merge
6h 33m
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenZeppelin/openzeppelin-adapters

All issues in OpenZeppelin/openzeppelin-adapters

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.