release: WRNexusJS 0.8.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import console from "node:console";
|
||||
import { createHash } from "node:crypto";
|
||||
import { readFileSync, readdirSync, writeFileSync } from "node:fs";
|
||||
import { mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
||||
import { dirname, join, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
@@ -107,6 +107,8 @@ const document = {
|
||||
},
|
||||
components,
|
||||
};
|
||||
const file = join(root, `SBOM-${version}.cdx.json`);
|
||||
const reportDir = join(root, ".wrnexus", "reports");
|
||||
mkdirSync(reportDir, { recursive: true });
|
||||
const file = join(reportDir, `SBOM-${version}.cdx.json`);
|
||||
writeFileSync(file, `${JSON.stringify(document, null, 2)}\n`);
|
||||
console.log(`Generated ${file} with ${components.length} workspace and transitive components.`);
|
||||
|
||||
Reference in New Issue
Block a user