File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -73,4 +73,9 @@ test_script:
73
73
- node --version
74
74
- npm --version
75
75
# run tests
76
+ - cd
77
+ - npm run tests-only
78
+ - ' subst X: ..'
79
+ - ' cd /d X:\resolve'
80
+ - cd
76
81
- npm run tests-only
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var nodeModulesPaths = require('./node-modules-paths');
6
6
var normalizeOptions = require ( './normalize-options' ) ;
7
7
var isCore = require ( 'is-core-module' ) ;
8
8
9
- var realpathFS = fs . realpath && typeof fs . realpath . native === 'function' ? fs . realpath . native : fs . realpath ;
9
+ var realpathFS = process . platform !== 'win32' && fs . realpath && typeof fs . realpath . native === 'function' ? fs . realpath . native : fs . realpath ;
10
10
11
11
var homedir = getHomedir ( ) ;
12
12
var defaultPaths = function ( ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var caller = require('./caller');
6
6
var nodeModulesPaths = require ( './node-modules-paths' ) ;
7
7
var normalizeOptions = require ( './normalize-options' ) ;
8
8
9
- var realpathFS = fs . realpathSync && typeof fs . realpathSync . native === 'function' ? fs . realpathSync . native : fs . realpathSync ;
9
+ var realpathFS = process . platform !== 'win32' && fs . realpathSync && typeof fs . realpathSync . native === 'function' ? fs . realpathSync . native : fs . realpathSync ;
10
10
11
11
var homedir = getHomedir ( ) ;
12
12
var defaultPaths = function ( ) {
You can’t perform that action at this time.
0 commit comments