File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/cli/src/compiler Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphprotocol/graph-cli ' : patch
3
+ ---
4
+
5
+ Fix build files being placed outside the build directory
Original file line number Diff line number Diff line change @@ -231,8 +231,8 @@ export default class Compiler {
231
231
spinner : Spinner ,
232
232
) {
233
233
const absoluteSourceFile = path . resolve ( sourceDir , maybeRelativeFile ) ;
234
- const relativeSourceFile = path . relative ( sourceDir , absoluteSourceFile ) ;
235
- const targetFile = path . join ( targetDir , relativeSourceFile ) ;
234
+ const baseName = path . basename ( absoluteSourceFile ) ;
235
+ const targetFile = path . join ( targetDir , baseName ) ;
236
236
step ( spinner , 'Write subgraph file' , this . displayPath ( targetFile ) ) ;
237
237
fs . mkdirsSync ( path . dirname ( targetFile ) ) ;
238
238
fs . writeFileSync ( targetFile , data ) ;
You can’t perform that action at this time.
0 commit comments