@salesforce/cli 1.12.0-dev.2 → 1.12.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run +8 -0
- package/npm-shrinkwrap.json +67017 -0
- package/oclif.manifest.json +1 -1
- package/package.json +4 -2
package/bin/run
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Since the CLI is a single process, we can have a larger amount of max listeners since
|
|
4
|
+
// the process gets shut down. Don't set it to 0 (no limit) since we should still be aware
|
|
5
|
+
// of rouge event listeners
|
|
6
|
+
process.setMaxListeners(parseInt(process.env.SF_MAX_EVENT_LISTENERS, 10) || 1000);
|
|
7
|
+
|
|
8
|
+
// Don't let other plugins override the CLI specified max listener count
|
|
9
|
+
process.setMaxListeners = () => {};
|
|
10
|
+
|
|
3
11
|
require('@oclif/core').run()
|
|
4
12
|
.then(require('@oclif/core/flush'))
|
|
5
13
|
.catch(require('@oclif/core/handle'))
|