Skip to content

fix(smoke): install the tarball with an empty user npmrc - #65

Merged
matinfo merged 1 commit into
mainfrom
fix/smoke-pack-userconfig
Nov 28, 2026
Merged

matinfo merged 1 commit into
mainfrom
fix/smoke-pack-userconfig

Conversation

@matinfo

@matinfo matinfo commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

npm run smoke:pack failed locally at the install step: a user ~/.npmrc with allow-scripts=… makes newer npm stop with EALLOWSCRIPTS ("--allow-scripts is not allowed in project-scoped installs"). CI never saw it, because it has no user npmrc.

The install step now sets npm_config_userconfig to an empty file in the smoke temp folder, so the tarball installs as it would for a fresh user, whatever the developer's npm settings. Only the install step changes. Packing still uses the normal config.

Checked on macOS with that ~/.npmrc: all six smoke checks pass, including the PDF export, and lint is clean. No CHANGELOG entry, because the script is not part of the package.

A user ~/.npmrc with allow-scripts made the install step fail with EALLOWSCRIPTS: newer npm refuses that setting in project installs. The smoke install now points npm_config_userconfig at an empty file, so it installs like a fresh user, whatever the developer's npm settings.
@matinfo
matinfo merged commit 6c04d61 into main Nov 28, 2026
13 checks passed
@matinfo
matinfo deleted the fix/smoke-pack-userconfig branch November 28, 2026 23:15
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