diff --git a/.changeset/perfect-ways-marry.md b/.changeset/perfect-ways-marry.md new file mode 100644 index 0000000000..e0c52aabb8 --- /dev/null +++ b/.changeset/perfect-ways-marry.md @@ -0,0 +1,12 @@ +--- +"@janus-idp/backstage-plugin-orchestrator-common": patch +"@janus-idp/backstage-plugin-bulk-import-common": patch +"@janus-idp/backstage-plugin-topology-common": patch +"@janus-idp/backstage-plugin-tekton-common": patch +"@janus-idp/backstage-plugin-ocm-backend": patch +"@janus-idp/backstage-plugin-quay-common": patch +"@janus-idp/backstage-plugin-rbac-common": patch +"@janus-idp/backstage-plugin-ocm-common": patch +--- + +change deps to peer deps in common packages diff --git a/plugins/bulk-import-common/package.json b/plugins/bulk-import-common/package.json index 790f2f5d38..be2ec9a183 100644 --- a/plugins/bulk-import-common/package.json +++ b/plugins/bulk-import-common/package.json @@ -39,7 +39,7 @@ "prettier": "3.3.3", "@backstage/cli": "0.27.1" }, - "dependencies": { + "peerDependencies": { "@backstage/plugin-permission-common": "^0.8.1" }, "files": [ diff --git a/plugins/ocm-backend/package.json b/plugins/ocm-backend/package.json index 7ef3ac725b..63ab99911b 100644 --- a/plugins/ocm-backend/package.json +++ b/plugins/ocm-backend/package.json @@ -31,8 +31,8 @@ "scripts": { "build": "backstage-cli package build", "clean": "backstage-cli package clean", - "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package --embed-package @backstage/plugin-kubernetes-common", - "export-dynamic:clean": "janus-cli package export-dynamic-plugin --embed-package --embed-package @backstage/plugin-kubernetes-common --clean", + "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @backstage/plugin-kubernetes-common", + "export-dynamic:clean": "janus-cli package export-dynamic-plugin --embed-package @backstage/plugin-kubernetes-common --clean", "lint:check": "backstage-cli package lint", "lint:fix": "backstage-cli package lint --fix", "postpack": "backstage-cli package postpack", diff --git a/plugins/ocm-common/package.json b/plugins/ocm-common/package.json index 7be9789fa9..bd566999a0 100644 --- a/plugins/ocm-common/package.json +++ b/plugins/ocm-common/package.json @@ -54,7 +54,7 @@ ], "homepage": "https://red.ht/rhdh", "bugs": "https://github.com/janus-idp/backstage-plugins/issues", - "dependencies": { + "peerDependencies": { "@backstage/plugin-permission-common": "^0.8.1" }, "maintainers": [ diff --git a/plugins/orchestrator-common/package.json b/plugins/orchestrator-common/package.json index 603cec6ee2..2a67f15dc1 100644 --- a/plugins/orchestrator-common/package.json +++ b/plugins/orchestrator-common/package.json @@ -57,19 +57,20 @@ "openapi:check": "./scripts/openapi.sh check", "openapi:prettier:fix": "prettier --ignore-unknown --write ./src/generated/api" }, - "dependencies": { - "@backstage/types": "^1.1.1", + "peerDependencies": { "@backstage/plugin-permission-common": "^0.8.1", "@severlessworkflow/sdk-typescript": "^3.0.3", "js-yaml": "^4.1.0", - "json-schema": "^0.4.0", "axios": "^1.7.4" }, "devDependencies": { "prettier": "3.3.3", "@backstage/cli": "0.27.1", + "@backstage/types": "1.1.1", + "json-schema": "0.4.0", "@openapitools/openapi-generator-cli": "2.13.4", - "js-yaml-cli": "0.6.0" + "js-yaml-cli": "0.6.0", + "@severlessworkflow/sdk-typescript": "3.0.3" }, "maintainers": [ "@janus-idp/maintainers-plugins", diff --git a/plugins/orchestrator-common/src/types.ts b/plugins/orchestrator-common/src/types.ts index 53bf9b9671..74ee76511b 100644 --- a/plugins/orchestrator-common/src/types.ts +++ b/plugins/orchestrator-common/src/types.ts @@ -1,9 +1,9 @@ -import { JsonObject } from '@backstage/types'; +import type { JsonObject } from '@backstage/types'; -import { Specification } from '@severlessworkflow/sdk-typescript'; -import { JSONSchema7, JSONSchema7Definition } from 'json-schema'; +import type { Specification } from '@severlessworkflow/sdk-typescript'; +import type { JSONSchema7, JSONSchema7Definition } from 'json-schema'; -import { ProcessInstance, ProcessInstanceStateValues } from './models'; +import type { ProcessInstance, ProcessInstanceStateValues } from './models'; type Id = { [P in keyof T]: T[P] }; diff --git a/plugins/quay-common/package.json b/plugins/quay-common/package.json index d774556457..5ac51dc1de 100644 --- a/plugins/quay-common/package.json +++ b/plugins/quay-common/package.json @@ -53,10 +53,8 @@ "files": [ "dist" ], - "dependencies": { - "@backstage/plugin-permission-common": "^0.8.1" - }, "peerDependencies": { + "@backstage/plugin-permission-common": "^0.8.1", "react": "16.13.1 || ^17.0.0 || ^18.0.0" }, "devDependencies": { diff --git a/plugins/rbac-common/package.json b/plugins/rbac-common/package.json index 4dbaaf0c56..a4a782d2dd 100644 --- a/plugins/rbac-common/package.json +++ b/plugins/rbac-common/package.json @@ -35,7 +35,7 @@ "prepack": "backstage-cli package prepack", "postpack": "backstage-cli package postpack" }, - "dependencies": { + "peerDependencies": { "@backstage/plugin-permission-common": "^0.8.1", "@backstage/errors": "^1.2.4" }, diff --git a/plugins/tekton-common/package.json b/plugins/tekton-common/package.json index 5d206a17e5..bee4edef03 100644 --- a/plugins/tekton-common/package.json +++ b/plugins/tekton-common/package.json @@ -33,7 +33,7 @@ "prettier:check": "prettier --ignore-unknown --check .", "prettier:fix": "prettier --ignore-unknown --write ." }, - "dependencies": { + "peerDependencies": { "@backstage/plugin-permission-common": "^0.8.1" }, "devDependencies": { diff --git a/plugins/topology-common/package.json b/plugins/topology-common/package.json index e86bdbd331..cd166761e6 100644 --- a/plugins/topology-common/package.json +++ b/plugins/topology-common/package.json @@ -53,7 +53,7 @@ ], "homepage": "https://red.ht/rhdh", "bugs": "https://github.com/janus-idp/backstage-plugins/issues", - "dependencies": { + "peerDependencies": { "@backstage/plugin-permission-common": "^0.8.1" }, "maintainers": [ diff --git a/yarn.lock b/yarn.lock index 5e4d1a2aeb..e976eac23c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9229,7 +9229,7 @@ dset "^3.1.1" tiny-hashes "^1.0.1" -"@severlessworkflow/sdk-typescript@^3.0.3": +"@severlessworkflow/sdk-typescript@3.0.3", "@severlessworkflow/sdk-typescript@^3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@severlessworkflow/sdk-typescript/-/sdk-typescript-3.0.3.tgz#6fcec70e5651db77e0145697c91b8c40808d0526" integrity sha512-lrIyDa5jI+nfMZg2Q2u70cRJBRGu2FtASVgzci7/MW5YxtTFYGYfc4rRxuMEf3EHVSFCVTKrtCYp4v2rHeLQYw==