@@ -22,11 +22,11 @@ export class CompilerMetadata extends Plugin {
22
22
}
23
23
24
24
_JSONFileName ( path , contractName ) {
25
- return this . joinPath ( path , this . innerPath , contractName + '.json' )
25
+ return this . joinPath ( this . innerPath , contractName + '.json' )
26
26
}
27
27
28
28
_MetadataFileName ( path , contractName ) {
29
- return this . joinPath ( path , this . innerPath , contractName + '_metadata.json' )
29
+ return this . joinPath ( this . innerPath , contractName + '_metadata.json' )
30
30
}
31
31
32
32
onActivation ( ) {
@@ -53,7 +53,7 @@ export class CompilerMetadata extends Plugin {
53
53
// Access each file in build-info, check the input sources
54
54
// If they are all same as in current compiled file and sources includes the path of compiled file, remove old build file
55
55
async removeStoredBuildInfo ( currentInput , path , filePath ) {
56
- const buildDir = this . joinPath ( path , this . innerPath , 'build-info/' )
56
+ const buildDir = this . joinPath ( this . innerPath , 'build-info/' )
57
57
if ( await this . call ( 'fileManager' , 'exists' , buildDir ) ) {
58
58
const allBuildFiles = await this . call ( 'fileManager' , 'fileList' , buildDir )
59
59
const currentInputFileNames = Object . keys ( currentInput . sources )
@@ -79,7 +79,7 @@ export class CompilerMetadata extends Plugin {
79
79
input
80
80
} )
81
81
const id = createHash ( 'md5' ) . update ( Buffer . from ( json ) ) . digest ( ) . toString ( 'hex' )
82
- const buildFilename = this . joinPath ( path , this . innerPath , 'build-info/' + id + '.json' )
82
+ const buildFilename = this . joinPath ( this . innerPath , 'build-info/' + id + '.json' )
83
83
// If there are no file in buildInfoNames,it means compilation is running first time after loading Remix
84
84
if ( ! this . buildInfoNames [ filePath ] ) {
85
85
// Check the existing build-info and delete all the previous build files for compiled file
0 commit comments