Skip to content

Commit

Permalink
Publish the dependency graph in eleventy.after args
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Mar 22, 2023
1 parent 67ce615 commit 916805e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@ Arguments:
outputMode: to,
incremental: this.isIncremental,
};

await this.config.events.emit("beforeBuild", eventsArg);
await this.config.events.emit("eleventy.before", eventsArg);

Expand Down Expand Up @@ -1203,6 +1204,7 @@ Arguments:
ret = this.logger.closeStream(to);
}

eventsArg.uses = this.eleventyConfig.usesGraph.map;
await this.config.events.emit("afterBuild", eventsArg);
await this.config.events.emit("eleventy.after", eventsArg);
} catch (e) {
Expand Down

0 comments on commit 916805e

Please sign in to comment.