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]: d98c474cdc/js/libs/keycloak-admin-client/package.json (L57-L67)

Closes: #42552

Signed-off-by: Mikail Kocak <mikail.kocak@saleor.io>
This commit is contained in:
Mikail 2025-10-15 14:41:59 +02:00 committed by GitHub
parent 43ee41e8a8
commit 0f573d19bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 84 additions and 7 deletions

View File

@ -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/"
}

View File

@ -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/"
}

View File

@ -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/"
}

View File

@ -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/"
}

View File

@ -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/"
}

View File

@ -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/"
}

View File

@ -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/"
}