Skip to content

Commit a9fc60f

Browse files
committed
Add DeprecationWarning to nodeNoWarningsFlags
1 parent 00bbdf2 commit a9fc60f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare const nodeNoWarningsFlags: readonly [
22
'--disable-warning',
3+
'DeprecationWarning',
34
'ExperimentalWarning'
45
]
56
export = nodeNoWarningsFlags

registry/lib/constants/node-no-warnings-flags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const SUPPORTS_NODE_DISABLE_WARNING_FLAG = /*@__PURE__*/ require('./supports-nod
66

77
module.exports = ObjectFreeze(
88
SUPPORTS_NODE_DISABLE_WARNING_FLAG
9-
? ['--disable-warning', 'ExperimentalWarning']
9+
? ['--disable-warning', 'DeprecationWarning', 'ExperimentalWarning']
1010
: ['--no-warnings']
1111
)

0 commit comments

Comments
 (0)