Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2302,14 +2302,17 @@ added:
- v18.11.0
- v16.19.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/52074
description: Watch mode is now stable.
- version:
- v19.2.0
- v18.13.0
pr-url: https://github.com/nodejs/node/pull/45214
description: Test runner now supports running in watch mode.
-->

> Stability: 1 - Experimental
> Stability: 2 - Stable

Starts Node.js in watch mode.
When in watch mode, changes in the watched files cause the Node.js process to
Expand All @@ -2331,9 +2334,13 @@ node --watch index.js
added:
- v18.11.0
- v16.19.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/52074

This comment was marked as spam.

description: Watch mode is now stable.
-->

> Stability: 1 - Experimental
> Stability: 2 - Stable

Starts Node.js in watch mode and specifies what paths to watch.
When in watch mode, changes in the watched paths cause the Node.js process to
Expand Down
2 changes: 0 additions & 2 deletions lib/internal/main/watch_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const {
exitCodes: { kNoFailure },
} = internalBinding('errors');
const { getOptionValue } = require('internal/options');
const { emitExperimentalWarning } = require('internal/util');
const { FilesWatcher } = require('internal/watch_mode/files_watcher');
const { green, blue, red, white, clear } = require('internal/util/colors');

Expand Down Expand Up @@ -117,7 +116,6 @@ async function restart() {
}
}

emitExperimentalWarning('Watch mode');
start();
watcher
.on('changed', restart)
Expand Down