Skip to content

Allow @parcel/watcher build script in Jupyter template - #181

Merged
timkpaine merged 1 commit into
mainfrom
tkp/jupyter-allow-parcel-watcher
Aug 29, 2026
Merged

Allow @parcel/watcher build script in Jupyter template#181
timkpaine merged 1 commit into
mainfrom
tkp/jupyter-allow-parcel-watcher

Conversation

@timkpaine

Copy link
Copy Markdown
Member

The Jupyter template's make requirements-js currently fails on pnpm install:

[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: @parcel/watcher@2.6.0
Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.
make[1]: *** [Makefile:19: requirements-js] Error 1

jest@30.5.0 now pulls @parcel/watcher in through jest-haste-map (confirmed with pnpm why). It has a build script, and pnpm refuses to skip one silently unless the package is listed in allowBuilds, so the install exits non-zero.

Adding it alongside the existing entries fixes it. @parcel/watcher resolves a prebuilt platform package rather than compiling, so this does not add a native build step.

This is dependency drift rather than a regression from any particular change: main was green on 2026-08-27 and the same failure now reproduces on unrelated branches. Only the Jupyter template is affected; the other JavaScript templates allow just esbuild and are unaffected.

Verified with make gen-jupyter, then in the generated project: pnpm install succeeds, pnpm lint passes, and pnpm test passes 2/2. Also confirmed @parcel/watcher loads at runtime.

jest 30.5.0 pulls in @parcel/watcher through jest-haste-map. pnpm refuses
to silently skip its build script, so pnpm install fails with
ERR_PNPM_IGNORED_BUILDS and the requirements-js target errors out.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine merged commit d61fdf1 into main Aug 29, 2026
19 checks passed
@timkpaine
timkpaine deleted the tkp/jupyter-allow-parcel-watcher branch August 29, 2026 23:22
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