@@ -13,7 +13,6 @@ import type {
13
13
import type {
14
14
ParcelOptions ,
15
15
RequestInvalidation ,
16
- InternalFile ,
17
16
InternalFileCreateInvalidation ,
18
17
InternalGlob ,
19
18
} from './types' ;
@@ -84,7 +83,7 @@ type SerializedRequestGraph = {|
84
83
invalidateOnBuildNodeIds : Set < NodeId > ,
85
84
| } ;
86
85
87
- type FileNode = { | id : ContentKey , + type : 'file' , value : InternalFile | } ;
86
+ type FileNode = { | id : ContentKey , + type : 'file' | } ;
88
87
type GlobNode = { | id : ContentKey , + type : 'glob' , value : InternalGlob | } ;
89
88
type FileNameNode = { |
90
89
id : ContentKey ,
@@ -167,7 +166,6 @@ export type StaticRunOpts<TResult> = {|
167
166
const nodeFromFilePath = ( filePath : ProjectPath ) : RequestGraphNode => ( {
168
167
id : fromProjectPathRelative ( filePath ) ,
169
168
type : 'file' ,
170
- value : { filePath} ,
171
169
} ) ;
172
170
173
171
const nodeFromGlob = ( glob : InternalGlob ) : RequestGraphNode => ( {
@@ -609,7 +607,7 @@ export class RequestGraph extends ContentGraph<
609
607
let node = nullthrows ( this . getNode ( nodeId ) ) ;
610
608
switch ( node . type ) {
611
609
case 'file' :
612
- return { type : 'file' , filePath : node . value . filePath } ;
610
+ return { type : 'file' , filePath : toProjectPathUnsafe ( node . id ) } ;
613
611
case 'env' :
614
612
return { type : 'env' , key : node . value . key } ;
615
613
case 'option' :
@@ -675,7 +673,7 @@ export class RequestGraph extends ContentGraph<
675
673
requestGraphEdgeTypes . invalidated_by_create_above ,
676
674
) &&
677
675
isDirectoryInside (
678
- fromProjectPathRelative ( matchNode . value . filePath ) ,
676
+ fromProjectPathRelative ( toProjectPathUnsafe ( matchNode . id ) ) ,
679
677
dirname ,
680
678
)
681
679
) {
0 commit comments