Skip to content

module: fix directory option in the enableCompileCache() API - #59931

Merged
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
joyeecheung:fix-compile-cache-api
Oct 9, 2025
Merged

module: fix directory option in the enableCompileCache() API#59931
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
joyeecheung:fix-compile-cache-api

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

The option name should be directory to be consistent with the returned result. It should also allow environment variable overrides.

This also adds documentation for the new options and improves it.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-botnodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. labels Sep 18, 2025
The option name should be `directory` to be consistent with the
returned result. It should also allow environment variable
overrides.
This also adds documentation for the new options and improves it.
@codecov

codecovBot commented Sep 18, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.48%. Comparing base (c7b0dfb) to head (8a72ff2).
⚠️ Report is 149 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #59931 +/- ##
==========================================
+ Coverage 88.23% 88.48% +0.24% 
==========================================
Files 703 703 Lines 207393 207550 +157 Branches 39888 40013 +125 ==========================================
+ Hits 183003 183645 +642 + Misses 16346 15900 -446 + Partials 8044 8005 -39 
Files with missing linesCoverage Δ
lib/internal/modules/helpers.js98.16% <100.00%> (+0.01%)⬆️

... and 79 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment threadlib/internal/modules/helpers.js Outdated

@Aditi-1400Aditi-1400 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Aditi <62544124+Aditi-1400@users.noreply.github.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@joyeecheungjoyeecheung added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Oct 9, 2025
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 9, 2025
@nodejs-github-bot
nodejs-github-bot merged commit db0121b into nodejs:mainOct 9, 2025
60 of 62 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in db0121b

@joyeecheungjoyeecheung mentioned this pull request Oct 9, 2025
9 tasks
aduh95 pushed a commit that referenced this pull request Oct 31, 2025
The option name should be `directory` to be consistent with the
returned result. It should also allow environment variable
overrides.
This also adds documentation for the new options and improves it.
PR-URL: #59931
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com>
targos pushed a commit that referenced this pull request Nov 18, 2025
The option name should be `directory` to be consistent with the
returned result. It should also allow environment variable
overrides.
This also adds documentation for the new options and improves it.
PR-URL: #59931
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.moduleIssues and PRs related to the module subsystem.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@joyeecheung@nodejs-github-bot@Aditi-1400@jsumners-nr