Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
// create bom from node-managed dependencies, cyclonedx uses read-installed on the backend
cyclonedx__bom.createbom("1.1", true, process.cwd(), { dev: this.devDependencies }, (err: any, out: any) => {
if (err) {
reject(err);
}
resolve(out);
});
});
}