diff --git a/README.md b/README.md index b2f2904..c5ca637 100644 --- a/README.md +++ b/README.md @@ -124,8 +124,10 @@ and add `.unlighthouse/` to the site's `.gitignore`. `site-ci.yml` runs `bun run check:licenses` when the lockfile or `scripts/` change. Sites implement that script with the shared check, which runs -`license-checker` in the site's repo root and fails on GPL, AGPL, SSPL and -similar copyleft licenses (LGPL is allowed). +`license-checker-rseidelsohn` in the site's repo root and fails on GPL, AGPL, +SSPL and similar copyleft licenses (LGPL is allowed). The site needs +`license-checker-rseidelsohn` as a devDependency so the bin resolves from its +own `node_modules`. With `@taraxvoid/voidflow` as a devDependency, call the bin from the site's `package.json`: diff --git a/scripts/check-licenses.ts b/scripts/check-licenses.ts index 3ded0dc..5758c92 100755 --- a/scripts/check-licenses.ts +++ b/scripts/check-licenses.ts @@ -2,7 +2,7 @@ /** * Shared license policy check for the Astro/bun site stack: fail on GPL kudzu. * - * Runs `license-checker` against the current working directory (the caller's + * Runs `license-checker-rseidelsohn` against the current working directory (the caller's * repo root) and exits non-zero if any installed package carries a blocked * license. * @@ -43,13 +43,13 @@ export const FAIL_ON = [ const result = spawnSync( 'bunx', - ['license-checker', '--summary', '--failOn', FAIL_ON], + ['license-checker-rseidelsohn', '--summary', '--failOn', FAIL_ON], { cwd: process.cwd(), stdio: 'inherit' }, ) if (result.error) { console.error( - `\ncheck:licenses failed - could not run license-checker: ${result.error.message}`, + `\ncheck:licenses failed - could not run license-checker-rseidelsohn: ${result.error.message}`, ) process.exit(1) }