镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Declare the MIT license in the published npm packages - #7427

Open
lanjak wants to merge 1 commit into
get-bb:mainfrom
lanjak:fix-npm-license-metadata
Open

lanjak wants to merge 1 commit into
get-bb:mainfrom
lanjak:fix-npm-license-metadata

Conversation

@lanjak

@lanjak lanjak commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

packages/bb-app/package.json and packages/plugin-sdk/package.json have no license field, and neither package directory has a LICENSE file. The published bb-app and @get-bb/plugin-sdk tarballs therefore have no license metadata or notice, and license audits report them as unknown, although the repository is MIT (#6662).

What changed

  • packages/bb-app/package.json and packages/plugin-sdk/package.json: add "license": "MIT" after version.
  • packages/bb-app/LICENSE and packages/plugin-sdk/LICENSE: copies of the repository LICENSE, byte for byte. npm always packs LICENSE from the package root, whatever the files list is.

@get-bb/plugin-sdk needs no version bump: 0.6.140 is not on npm yet (the latest is 0.6.138), so the next publish ships this content. The bb-app prepack step prunes only bb-chunks and keeps LICENSE.

No wire, CLI or runtime change.

How you verified

  • npm pack --dry-run --json --ignore-scripts in each package directory lists LICENSE in both tarballs.
  • node packages/plugin-sdk/scripts/check-npm-version-guard.mjs: PASS — @get-bb/plugin-sdk@0.6.140 is not on npm yet.
  • pnpm exec turbo run test lint --filter=@get-bb/plugin-sdk --filter=bb-app passes: 7 of 7 tasks, 35 and 23 test files. oxfmt --check passes on both manifests. cmp shows that both copies are identical to the repository LICENSE.

Fixes #6662

AGENT GENERATED

bb-app and @get-bb/plugin-sdk had no license field and shipped no
LICENSE file, so license audits reported them as unknown. Add
"license": "MIT" to both manifests and a copy of the repository
LICENSE to each package root, which npm always packs.

Fixes get-bb#6662

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm packages bb-app and @get-bb/plugin-sdk are published without a license field or LICENSE file (repo is MIT)

1 participant