We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8df72 commit 6b562b1Copy full SHA for 6b562b1
apps/doc-gen/src/app/docgen-client.ts
@@ -48,9 +48,9 @@ export class DocGenClient extends PluginClient {
48
input: input,
49
output: output
50
}
51
- const test = normalizeContractPath(fileName)
52
- this.fileName = typeof test === 'string' ? test : test[test.length - 1]
53
- this.contractPath = typeof test === 'object' ? test[0] : ''
+ const segmentedPathList = normalizeContractPath(fileName)
+ this.fileName = segmentedPathList[segmentedPathList.length - 1]
+ this.contractPath = segmentedPathList[0]
54
this.eventEmitter.emit('compilationFinished', this.build, this.fileName)
55
})
56
0 commit comments