adapter-stellar: the published package runs a maintainer-only postinstall, so pnpm 11 consumers get ERR_PNPM_IGNORED_BUILDS unless they allow-list it
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
- Domain
- build-system, developer-experience
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-stellargetsERR_PNPM_IGNORED_BUILDSonpnpm 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenZeppelin/openzeppelin-adapters
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OpenZeppelin/openzeppelin-adapters#90 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
OpenZeppelin/openzeppelin-adapters#72 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenZeppelin/openzeppelin-adapters#47 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
OpenZeppelin/openzeppelin-adapters#116 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
OpenZeppelin/openzeppelin-adapters#115 ·
Maintainers usually reply within 1 day
All issues in OpenZeppelin/openzeppelin-adapters
Similar issues
-
Codex使用可 かんたん コード
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ryuki-moro/Nicomaru#348 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day