@kosdev-code/kos-codegen-core 0.1.0-next.800 → 0.1.0-next.806

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.mjs CHANGED
@@ -893,8 +893,19 @@ function buildKabTargets(options) {
893
893
  options: {},
894
894
  dependsOn: []
895
895
  };
896
+ targets.sbom = buildSbomTarget();
897
+ targets.kab.dependsOn = [...targets.kab.dependsOn ?? [], "sbom"];
896
898
  return targets;
897
899
  }
900
+ function buildSbomTarget() {
901
+ return {
902
+ executor: "@kosdev-code/kos-nx-plugin:sbom",
903
+ outputs: ["{workspaceRoot}/dist/sbom/{projectRoot}"],
904
+ cache: true,
905
+ inputs: ["production", "^production", "{workspaceRoot}/package-lock.json"],
906
+ options: {}
907
+ };
908
+ }
898
909
  const UPDATE_RELEASE_VERSION_SCRIPT = `import devkit from "@nx/devkit";
899
910
  import { resolve } from "path";
900
911
  import { readFileSync, writeFileSync } from "fs";
@@ -3389,6 +3400,7 @@ export {
3389
3400
  addTopicHandlerToModel,
3390
3401
  appendBarrelExport,
3391
3402
  buildKabTargets,
3403
+ buildSbomTarget,
3392
3404
  camelCase,
3393
3405
  constantCase,
3394
3406
  dashCase,