File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
test/socket-npm-fixtures/lacking-typosquat Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,10 @@ const lazyRootDistPath = () =>
108
108
const lazyRootPath = ( ) =>
109
109
// The '@rollup/plugin-replace' will replace 'process.env.TAP' with `false` and
110
110
// it will be dead code eliminated by Rollup.
111
- path . resolve ( realpathSync ( __dirname ) , process . env [ 'TAP' ] ? '../..' : '..' )
111
+ path . resolve (
112
+ realpathSync . native ( __dirname ) ,
113
+ process . env [ 'TAP' ] ? '../..' : '..'
114
+ )
112
115
113
116
const lazyRootPkgJsonPath = ( ) =>
114
117
// Lazily access constants.rootPath.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { findRoot } from '../utils/path-resolve'
7
7
8
8
const { NODE_MODULES , SOCKET_CLI_ISSUES_URL } = constants
9
9
10
- const npmEntrypoint = realpathSync ( process . argv [ 1 ] ! )
10
+ const npmEntrypoint = realpathSync . native ( process . argv [ 1 ] ! )
11
11
const npmRootPath = findRoot ( path . dirname ( npmEntrypoint ) )
12
12
if ( npmRootPath === undefined ) {
13
13
console . error (
You can’t perform that action at this time.
0 commit comments