Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit cacc2c7

Browse files
authored
run onFinish every time a build finishes (#1067)
1 parent d940340 commit cacc2c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/devtools-launchpad/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-launchpad",
3-
"version": "0.0.123",
3+
"version": "0.0.124",
44
"license": "MPL-2.0",
55
"description": "The Launchpad makes it easy to build a developer tool for Firefox, Chrome, and Node.",
66
"repository": {

packages/devtools-launchpad/src/tools/mc/make-bundle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function makeBundle({
3030
outputPath,
3131
projectPath,
3232
watch = false,
33-
updateAssets = false
33+
updateAssets = false,
34+
onFinish = () => {}
3435
}) {
3536
process.env.TARGET = "firefox-panel";
3637
process.env.OUTPUT_PATH = outputPath;
@@ -54,6 +55,7 @@ function makeBundle({
5455
console.log(`Done bundling`);
5556
}
5657

58+
onFinish(stats);
5759
resolve();
5860
};
5961

0 commit comments

Comments
 (0)