
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
Fix the current working directory by resolving it to its OS-canonical path before running a command.
Fix the current working directory by resolving it to its OS-canonical path before running a command.
Some tools incorrectly set process.cwd() to a path with a lowercase drive letter on Windows (e.g. c:\project instead of C:\Project). This causes issues with require.resolve, import.meta.url, import.meta.dirname, and other path-sensitive APIs. fix-cwd resolves the cwd to its true path using fs.realpathSync.native() before spawning your command.
npm install --save-dev fix-cwd
Prefix your scripts with fix-cwd:
{
"scripts": {
"dev": "fix-cwd vitest",
"build": "fix-cwd vite build"
}
}
fs.realpathSync.native(".") to get the OS-canonical path of the current directoryOn Windows, realpathSync.native calls GetFinalPathNameByHandle, which returns the true-cased path (uppercase drive letter, correct directory casing). On Linux/macOS, it's effectively a no-op.
MIT
FAQs
Fix the current working directory by resolving it to its OS-canonical path before running a command.
The npm package fix-cwd receives a total of 6 weekly downloads. As such, fix-cwd popularity was classified as not popular.
We found that fix-cwd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.