chore: add yarn command to put compiled stylesheets into builds folder

This commit is contained in:
Nelson Jovel 2024-01-10 10:58:08 -08:00
parent 7ae453a61c
commit 6e46b46074
6788 changed files with 697992 additions and 12 deletions

View file

@ -0,0 +1,17 @@
import { isScalar } from '../nodes/identity.js';
function mapIncludes(ctx, items, search) {
const { uniqueKeys } = ctx.options;
if (uniqueKeys === false)
return false;
const isEqual = typeof uniqueKeys === 'function'
? uniqueKeys
: (a, b) => a === b ||
(isScalar(a) &&
isScalar(b) &&
a.value === b.value &&
!(a.value === '<<' && ctx.schema.merge));
return items.some(pair => isEqual(pair.key, search));
}
export { mapIncludes };