()
| 95 | } |
| 96 | |
| 97 | async emit() { |
| 98 | // ensure emit is only called when the config is changed |
| 99 | if (this.hasEmitted && this.affecteds?.hasConfigChanged) { |
| 100 | logger.debug('builder', 'Emit artifacts after config change') |
| 101 | await codegen(this.getContextOrThrow(), Array.from(this.affecteds.artifacts)) |
| 102 | } |
| 103 | |
| 104 | this.hasEmitted = true |
| 105 | } |
| 106 | |
| 107 | setupContext = async (options: SetupContextOptions) => { |
| 108 | const { configPath, cwd } = options |
no test coverage detected