Skip to content

Commit

Permalink
fix(logs): Update ./bin/run to hide ExperimentalWarning (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerAldrich committed Mar 23, 2023
1 parent b9094bf commit 67eadcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env node

// Hide ExperimentalWarnings that appear from oclif when users are running earlier version of node 18
// https://github.com/netlify/cli/issues/4608#issuecomment-1452541908
process.removeAllListeners('warning');
process.on('warning', (l) => {
if (l.name !== 'ExperimentalWarning') {
console.warn(l);
}
});

require('reflect-metadata')

const oclif = require('@oclif/core')
Expand Down

0 comments on commit 67eadcb

Please sign in to comment.