style: format standalone configuration and build boundaries

This commit is contained in:
Sameh Khamis committed 2026-09-11 18:08:26 -07:00
1 parent 8de1018c21
commit fb67024f43
9 files changed
+111 -61

No files matched your search

+5 -1
View File
@@ -70,7 +70,11 @@ export async function checkPackageBoundaries(root) {
const input = group.exports.map((key) => {
const declaration = pkg.exports[key];
const target = node ? declaration?.node : declaration;
if (node && (typeof declaration !== 'object' || Object.keys(declaration).join() !== 'node')) {
if (
node &&
(typeof declaration !== 'object' ||
Object.keys(declaration).join() !== 'node')
) {
throw new Error(`Node export must have only a node condition: ${key}`);
}
if (