File tree Expand file tree Collapse file tree
test/socket-npm-fixtures/lacking-typosquat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,10 @@ const lazyRootDistPath = () =>
108108const lazyRootPath = ( ) =>
109109 // The '@rollup/plugin-replace' will replace 'process.env.TAP' with `false` and
110110 // 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+ )
112115
113116const lazyRootPkgJsonPath = ( ) =>
114117 // Lazily access constants.rootPath.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { findRoot } from '../utils/path-resolve'
77
88const { NODE_MODULES , SOCKET_CLI_ISSUES_URL } = constants
99
10- const npmEntrypoint = realpathSync ( process . argv [ 1 ] ! )
10+ const npmEntrypoint = realpathSync . native ( process . argv [ 1 ] ! )
1111const npmRootPath = findRoot ( path . dirname ( npmEntrypoint ) )
1212if ( npmRootPath === undefined ) {
1313 console . error (
You can’t perform that action at this time.
0 commit comments