@kosdev-code/kos-codegen-core 0.1.0-next.806 → 0.1.0-next.807
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/index.js +10 -4
- package/index.js.map +1 -1
- package/index.mjs +10 -4
- package/index.mjs.map +1 -1
- package/lib/generators/kab-targets.d.ts +6 -2
- package/lib/generators/kab-targets.d.ts.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -915,17 +915,23 @@ function buildKabTargets(options) {
|
|
|
915
915
|
options: {},
|
|
916
916
|
dependsOn: []
|
|
917
917
|
};
|
|
918
|
-
targets.sbom = buildSbomTarget();
|
|
918
|
+
targets.sbom = buildSbomTarget({ outputPath });
|
|
919
919
|
targets.kab.dependsOn = [...targets.kab.dependsOn ?? [], "sbom"];
|
|
920
920
|
return targets;
|
|
921
921
|
}
|
|
922
|
-
function buildSbomTarget(
|
|
922
|
+
function buildSbomTarget({
|
|
923
|
+
outputPath
|
|
924
|
+
}) {
|
|
925
|
+
const dir = outputPath.replace(/\/+$/, "");
|
|
923
926
|
return {
|
|
924
927
|
executor: "@kosdev-code/kos-nx-plugin:sbom",
|
|
925
|
-
outputs: [
|
|
928
|
+
outputs: [
|
|
929
|
+
`{workspaceRoot}/${dir}/sbom.spdx.json`,
|
|
930
|
+
`{workspaceRoot}/${dir}/sbom.cyclonedx.json`
|
|
931
|
+
],
|
|
926
932
|
cache: true,
|
|
927
933
|
inputs: ["production", "^production", "{workspaceRoot}/package-lock.json"],
|
|
928
|
-
options: {}
|
|
934
|
+
options: { outputPath: dir, softFail: true }
|
|
929
935
|
};
|
|
930
936
|
}
|
|
931
937
|
const UPDATE_RELEASE_VERSION_SCRIPT = `import devkit from "@nx/devkit";
|