Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
reportCrash(error: Error) {
const { appPath, rootPath, config, options } = this.tool;
const { appName } = options;
const reporter = new CrashReporter()
.reportBinaries()
.reportProcess()
.reportSystem();
reporter
.addSection(appName)
.add('App name', appName)
.add('App path', appPath)
.add('Plugin types', Object.keys(this.tool.getRegisteredPlugins()).join(', '))
.add('Scoped package', options.scoped ? 'Yes' : 'No')
.add('Root', rootPath)
.add('Config name', options.configName)
.add('Package path', rootPath.append('package.json'))
.add('Workspaces root', options.workspaceRoot || '(Not enabled)')
.add(
'Extending configs',