Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 7d71397

Browse files
BekaValentinerobrix
andcommitted
Removes unneeded guard exports in package.json
Co-Authored-By: Rob Rix <robrix@github.com>
1 parent fb9dc1c commit 7d71397

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎languages/tree-sitter-stack-graphs-javascript/rust/npm_package.rs‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,6 @@ impl FileAnalyzer for NpmPackageAnalyzer {
114114
let main_push =
115115
add_module_pushes(graph, file, &main, pkg_internal_name_push, "main_push");
116116

117-
// reach main exports directly via package name (with precedence)
118-
//
119-
// [pop pkg_name] -1-> [pop "GUARD:EXPORTS"] -> [push "GUARD:EXPORTS"] -> [push main]* -> [push pkg_internal_name]
120-
//
121-
let exports_guard_pop = add_pop(
122-
graph,
123-
file,
124-
pkg_name_pop,
125-
EXPORTS_GUARD,
126-
"exports_guard_pop",
127-
);
128-
let exports_guard_push =
129-
add_push(graph, file, main_push, EXPORTS_GUARD, "exports_guard_push");
130-
add_edge(graph, exports_guard_pop, exports_guard_push, 0);
131-
132117
// reach main directly via package name (with precedence)
133118
//
134119
// [pop pkg_name] -1-> [push main]* -> [push pkg_internal_name]

‎languages/tree-sitter-stack-graphs-javascript/rust/util.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use stack_graphs::arena::Handle;
1414
use stack_graphs::graph::File;
1515
use stack_graphs::graph::StackGraph;
1616

17-
pub const EXPORTS_GUARD: &str = "GUARD:EXPORTS";
1817
pub const PKG_GUARD: &str = "GUARD:PKG";
1918
pub const PKG_INTERNAL_GUARD: &str = "GUARD:PKG_INTERNAL";
2019

0 commit comments

Comments
 (0)