@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.mjs
CHANGED
|
@@ -893,17 +893,23 @@ function buildKabTargets(options) {
|
|
|
893
893
|
options: {},
|
|
894
894
|
dependsOn: []
|
|
895
895
|
};
|
|
896
|
-
targets.sbom = buildSbomTarget();
|
|
896
|
+
targets.sbom = buildSbomTarget({ outputPath });
|
|
897
897
|
targets.kab.dependsOn = [...targets.kab.dependsOn ?? [], "sbom"];
|
|
898
898
|
return targets;
|
|
899
899
|
}
|
|
900
|
-
function buildSbomTarget(
|
|
900
|
+
function buildSbomTarget({
|
|
901
|
+
outputPath
|
|
902
|
+
}) {
|
|
903
|
+
const dir = outputPath.replace(/\/+$/, "");
|
|
901
904
|
return {
|
|
902
905
|
executor: "@kosdev-code/kos-nx-plugin:sbom",
|
|
903
|
-
outputs: [
|
|
906
|
+
outputs: [
|
|
907
|
+
`{workspaceRoot}/${dir}/sbom.spdx.json`,
|
|
908
|
+
`{workspaceRoot}/${dir}/sbom.cyclonedx.json`
|
|
909
|
+
],
|
|
904
910
|
cache: true,
|
|
905
911
|
inputs: ["production", "^production", "{workspaceRoot}/package-lock.json"],
|
|
906
|
-
options: {}
|
|
912
|
+
options: { outputPath: dir, softFail: true }
|
|
907
913
|
};
|
|
908
914
|
}
|
|
909
915
|
const UPDATE_RELEASE_VERSION_SCRIPT = `import devkit from "@nx/devkit";
|