mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
style: format standalone configuration and build boundaries
This commit is contained in:
1 parent
8de1018c21
commit
fb67024f43
9 files changed
+111
-61
No files matched your search
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user