From 0f573d19bfe2a7238d22e0dd349c45ce90235c3f Mon Sep 17 00:00:00 2001 From: Mikail <6186720+NyanKiyoshi@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:41:59 +0200 Subject: [PATCH] fix: add missing NPM metadata (#42553) This adds the missing `license` metadata, as well as other fields that were only present in [js/libs/keycloak-admin-client/package.json] (author and URLs). This is problematic for license scanners as the projects were flagged as not having a license (e.g., https://www.npmjs.com/package/@keycloak/keycloak-ui-shared/v/26.3.3, we can see 'License' field having the value 'none' on the page). Other fields were also added (author and URLs) for consistency with https://www.npmjs.com/package/@keycloak/keycloak-admin-client, however they aren't critical. Packages that are private (`js/themes-vendor/package.json`, `js/package.json` and `js/apps/keycloak-server/package.json`) were also updated for consistency. [js/libs/keycloak-admin-client/package.json]: https://github.com/keycloak/keycloak/blob/d98c474cdc68be28f67e8153c746bfb2d82f800a/js/libs/keycloak-admin-client/package.json#L57-L67 Closes: #42552 Signed-off-by: Mikail Kocak --- js/apps/account-ui/package.json | 13 ++++++++++++- js/apps/admin-ui/package.json | 13 ++++++++++++- js/apps/create-keycloak-theme/package.json | 13 ++++++++++++- js/apps/keycloak-server/package.json | 13 ++++++++++++- js/libs/ui-shared/package.json | 13 ++++++++++++- js/package.json | 13 ++++++++++++- js/themes-vendor/package.json | 13 ++++++++++++- 7 files changed, 84 insertions(+), 7 deletions(-) diff --git a/js/apps/account-ui/package.json b/js/apps/account-ui/package.json index 35fb97afc9d..8609b631cac 100644 --- a/js/apps/account-ui/package.json +++ b/js/apps/account-ui/package.json @@ -104,5 +104,16 @@ "../../libs/keycloak-admin-client:build" ] } - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/apps/account-ui" + }, + "homepage": "https://www.keycloak.org/" } diff --git a/js/apps/admin-ui/package.json b/js/apps/admin-ui/package.json index 8ad32bd83e4..031d3aa0b39 100644 --- a/js/apps/admin-ui/package.json +++ b/js/apps/admin-ui/package.json @@ -133,5 +133,16 @@ "vite-plugin-checker": "^0.10.3", "vite-plugin-dts": "^4.5.4", "vitest": "^3.2.4" - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/apps/admin-ui" + }, + "homepage": "https://www.keycloak.org/" } diff --git a/js/apps/create-keycloak-theme/package.json b/js/apps/create-keycloak-theme/package.json index 5c6d7fc58e7..5d014052260 100644 --- a/js/apps/create-keycloak-theme/package.json +++ b/js/apps/create-keycloak-theme/package.json @@ -19,5 +19,16 @@ "fs-extra": "^11.3.2", "mustache": "^4.2.0", "simple-git": "^3.28.0" - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/apps/create-keycloak-theme" + }, + "homepage": "https://www.keycloak.org/" } diff --git a/js/apps/keycloak-server/package.json b/js/apps/keycloak-server/package.json index 7335135a28a..3dbf1cbbf38 100644 --- a/js/apps/keycloak-server/package.json +++ b/js/apps/keycloak-server/package.json @@ -13,5 +13,16 @@ "@types/tar-fs": "^2.0.4", "gunzip-maybe": "^1.4.2", "tar-fs": "^3.1.1" - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/apps/keycloak-server" + }, + "homepage": "https://www.keycloak.org/" } diff --git a/js/libs/ui-shared/package.json b/js/libs/ui-shared/package.json index 036f006077e..778fea3c90e 100644 --- a/js/libs/ui-shared/package.json +++ b/js/libs/ui-shared/package.json @@ -67,5 +67,16 @@ "vite-plugin-dts": "^4.5.4", "vite-plugin-lib-inject-css": "^2.2.2", "vitest": "^3.2.4" - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/libs/ui-shared" + }, + "homepage": "https://www.keycloak.org/" } diff --git a/js/package.json b/js/package.json index e313cbaab0c..eb641f3e879 100644 --- a/js/package.json +++ b/js/package.json @@ -41,5 +41,16 @@ }, "lint-staged": { "*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix" - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/" + }, + "homepage": "https://www.keycloak.org/" } diff --git a/js/themes-vendor/package.json b/js/themes-vendor/package.json index bbeccf659ed..11a3d1ca96e 100644 --- a/js/themes-vendor/package.json +++ b/js/themes-vendor/package.json @@ -36,5 +36,16 @@ "@rollup/plugin-replace": "^6.0.2", "@rollup/plugin-terser": "^0.4.4", "rollup": "^4.52.2" - } + }, + "author": { + "name": "Red Hat, Inc.", + "url": "https://www.keycloak.org/" + }, + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/keycloak/keycloak.git", + "directory": "js/themes-vendor" + }, + "homepage": "https://www.keycloak.org/" }