From 824c53f13044d7e37c29286e943e4929039fb7ac Mon Sep 17 00:00:00 2001 From: Paul Murray Date: Tue, 27 Jul 2021 00:27:20 -0400 Subject: [PATCH] Fix incorrect watcher event documentation (#4191) The watcher event has an `output` property, not an `outputFiles` property --- docs/02-javascript-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-javascript-api.md b/docs/02-javascript-api.md index bb008125c4a..a3ba412a9c0 100755 --- a/docs/02-javascript-api.md +++ b/docs/02-javascript-api.md @@ -181,11 +181,11 @@ watcher.on('event', event => { // START — the watcher is (re)starting // BUNDLE_START — building an individual bundle // * event.input will be the input options object if present - // * event.outputFiles cantains an array of the "file" or + // * event.output contains an array of the "file" or // "dir" option values of the generated outputs // BUNDLE_END — finished building a bundle // * event.input will be the input options object if present - // * event.outputFiles cantains an array of the "file" or + // * event.output contains an array of the "file" or // "dir" option values of the generated outputs // * event.duration is the build duration in milliseconds // * event.result contains the bundle object that can be