fix: bundle fonts

This commit is contained in:
zhom committed 2026-10-12 14:27:25 +04:00
1 parent 3b57ace646
commit c9f2cf8a12
6 files changed
+24 -12

No files matched your search

+2
View File
@@ -40,6 +40,8 @@ const LEGACY_LICENSE_EXPRESSIONS = new Map([
["MIT/Apache-2.0", "Apache-2.0 OR MIT"],
["MIT OR Apache-2.0", "Apache-2.0 OR MIT"],
["Unlicense/MIT", "MIT OR Unlicense"],
// The bundled Geist fonts name their license in words.
["SIL OPEN FONT LICENSE", "OFL-1.1"],
]);
const HOST_ONLY_PNPM_NATIVE_PREFIXES = [
+1
View File
@@ -14,6 +14,7 @@ test("normalizes legacy dual-license metadata into SPDX expressions", () => {
normalizeLicenseExpression("MIT/Apache-2.0"),
"Apache-2.0 OR MIT",
);
assert.equal(normalizeLicenseExpression("SIL OPEN FONT LICENSE"), "OFL-1.1");
assert.equal(
normalizeLicenseExpression("Apache-2.0 OR MIT"),
"Apache-2.0 OR MIT",