Skip to content

Commit 40be14d

Browse files
committed
style: sort requires in headers-inventory.js (eslint sort-imports, max-warnings 0)
1 parent 07de525 commit 40be14d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/react-native/scripts/ios-prebuild/headers-inventory.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
*/
3131

3232
const {getHeaderFilesFromPodspecs} = require('./headers');
33+
// headers-spec.js requires only fs/path, so this cannot cycle.
34+
const {DEPS_NAMESPACES} = require('./headers-spec');
3335
const fs = require('fs');
3436
const path = require('path');
3537

@@ -70,14 +72,11 @@ type HeaderEntry = {
7072
},
7173
};
7274
*/
73-
7475
// Third-party C++ libraries that RN's public headers re-expose (Tier 3 of the
7576
// modularization doc). Keyed by the first include-path segment. Single source
7677
// of truth: the spec's DEPS_NAMESPACES (the namespaces relocated into
7778
// ReactNativeHeaders) — a new third-party dep is declared ONCE and both the
78-
// include classifier and the compose step follow. (headers-spec.js requires
79-
// only fs/path, so this cannot cycle.)
80-
const {DEPS_NAMESPACES} = require('./headers-spec');
79+
// include classifier and the compose step follow.
8180
const THIRD_PARTY_LIBS /*: Set<string> */ = new Set(DEPS_NAMESPACES);
8281

8382
// Apple SDK / platform include roots (first path segment). Includes resolving

0 commit comments

Comments
 (0)