TanStack
OSS
pacer
fix: resolve symlink paths in CLI isMain guard for npx compatibility (#75) The isMain entry-point guard compared import.meta.url (which resolves symlinks) against pathToFileURL(process.argv[1]) (which preserves symlinks). When running via npx or on macOS (/tmp → /private/tmp), these never matched, so main() was silently never called. Fix by comparing resolved filesystem paths using realpathSync, wrapped in a try-catch for defensive safety. Also fix 3 pre-existing test failures caused by the same macOS /var → /private/var divergence. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
nx run-many --targets=build --exclude=examples/**
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx run-many --targets=build --exclude=examples/**
Click to copy
Linux
4 CPU cores
read
access token used
66937b22
main