File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ const nodePaths = NODE_PATH
48
48
. map ( p => path . resolve ( resolvedCwd , p ) )
49
49
: undefined ;
50
50
51
+ // it's temporary here
52
+ function newPath ( path : Config . Path ) : Config . RPth {
53
+ return { '@@__tag' : 'ResolvedPath' , path} ;
54
+ }
55
+
51
56
/* eslint-disable-next-line no-redeclare */
52
57
class Resolver {
53
58
private readonly _options : ResolverConfig ;
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import chalk = require('chalk');
12
12
type CoverageProvider = 'babel' | 'v8' ;
13
13
14
14
export type Path = string ;
15
+ // @@__tag is used to simulate an apaque type, useful during refactoring
16
+ // Keeping RPth of the same length as Path for now, to keep diffs to minimum
17
+ // will rename it later.
18
+ export type RPth = { "@@__tag" : "ResolvedPath" , path : string } ;
15
19
16
20
export type Glob = string ;
17
21
You can’t perform that action at this time.
0 commit comments