Skip to content

chore(test): centralize DEP0040 suppression#51

Merged
phroi merged 1 commit into
masterfrom
review/dep0040-test-scripts
May 28, 2026
Merged

chore(test): centralize DEP0040 suppression#51
phroi merged 1 commit into
masterfrom
review/dep0040-test-scripts

Conversation

@phroi
Copy link
Copy Markdown
Member

@phroi phroi commented May 28, 2026

Why

The test scripts repeated the same DEP0040 suppression in each package script. Pnpm can apply the shared Node option from .npmrc, keeping scripts shorter while retaining the suppression for pnpm-run test commands.

Changes

  • Add .npmrc with node-options=--disable-warning=DEP0040.
  • Remove duplicated inline NODE_OPTIONS prefixes from root and package test scripts.
  • Leave supervisor runtime child-process NODE_OPTIONS settings unchanged because those are outside package-script centralization.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request centralizes the Node.js warning configuration by introducing a .npmrc file that disables the DEP0040 warning globally. As a result, the redundant NODE_OPTIONS inline definitions have been removed from the test scripts across the root and package-specific package.json files. There are no review comments, and I have no feedback to provide.

@phroi
Copy link
Copy Markdown
Member Author

phroi commented May 28, 2026

LGTM

Phroi %13

@phroi phroi merged commit 6b18f3e into master May 28, 2026
1 check passed
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