|
|
|
@ -73,8 +73,8 @@ export class CompileAndRun extends Plugin { |
|
|
|
|
|
|
|
|
|
this.on('compilerMetadata', 'artefactsUpdated', async (fileName, contract) => { |
|
|
|
|
if (this.targetFileName === contract.file) { |
|
|
|
|
if (contract.object && contract.object.devdoc['custom:dev-run-script']) { |
|
|
|
|
this.targetFileName = null |
|
|
|
|
if (contract.object && contract.object.devdoc['custom:dev-run-script']) { |
|
|
|
|
const file = contract.object.devdoc['custom:dev-run-script'] |
|
|
|
|
if (file) { |
|
|
|
|
this.runScript(file, true) |
|
|
|
|