We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
npx resolve
1 parent a08d8a8 commit d56d217Copy full SHA for d56d217
bin/resolve
@@ -11,7 +11,7 @@ if (
11
!process.argv
12
|| process.argv.length < 2
13
|| (process.argv[1] !== __filename && fs.statSync(process.argv[1]).ino !== fs.statSync(__filename).ino)
14
- || (process.env._ && path.resolve(process.env._) !== __filename)
+ || (process.env._ && fs.realpathSync(path.resolve(process.env._)) !== __filename)
15
)
16
) {
17
console.error('Error: `resolve` must be run directly as an executable');
0 commit comments