Skip to content

Fix spec formatting without requiring pnpm - #3

Open
CryptAm wants to merge 1 commit into
ProjectOpenSea:mainfrom
CryptAm:patch-1
Open

CryptAm wants to merge 1 commit into
ProjectOpenSea:mainfrom
CryptAm:patch-1

Conversation

@CryptAm

@CryptAm CryptAm commented Oct 3, 2026

Copy link
Copy Markdown

Motivation

scripts/update-spec.mjs currently runs Biome through pnpm exec.

The package does not declare pnpm as a dependency, while the update workflow is exposed through npm run update-spec. On Windows, when pnpm is unavailable, the formatting step fails with:

spawnSync pnpm ENOENT

The script continues after this error, leaving opensea-api.json unformatted and causing unnecessary formatting noise in the diff.

Reproduction

With pnpm unavailable:

biome format failed (continuing): spawnSync pnpm ENOENT

This resulted in a large formatting diff in opensea-api.json:

3966 additions / 1157 deletions

Solution

Replace the pnpm exec invocation with npm exec -- biome in scripts/update-spec.mjs.

This uses the existing @biomejs/biome devDependency and removes the undeclared pnpm requirement from the spec update workflow.

`scripts/update-spec.mjs` currently runs Biome through `pnpm exec`.

The package does not declare `pnpm` as a dependency, while the update workflow is exposed through `npm run update-spec`. On Windows, when `pnpm` is unavailable, the formatting step fails with:

`spawnSync pnpm ENOENT`

The script continues after this error, leaving `opensea-api.json` unformatted and causing unnecessary formatting noise in the diff.

### Reproduction

With `pnpm` unavailable:

```text
biome format failed (continuing): spawnSync pnpm ENOENT
```

This resulted in a large formatting diff in `opensea-api.json`:

```text
3966 additions / 1157 deletions
```

### Change

Replace the `pnpm exec` invocation with `npm exec -- biome` in `scripts/update-spec.mjs`.

This uses the existing `@biomejs/biome` devDependency and removes the undeclared `pnpm` requirement from the spec update workflow.
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