From 55f01508540e015563e5e54fd0652e81b347b9c1 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 8 Jun 2023 11:48:29 -0400 Subject: refactor(compile): store the npm snapshot in the eszip (#19343) --- cli/npm/resolvers/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/npm/resolvers/mod.rs') diff --git a/cli/npm/resolvers/mod.rs b/cli/npm/resolvers/mod.rs index 26d954824..1b7e8891c 100644 --- a/cli/npm/resolvers/mod.rs +++ b/cli/npm/resolvers/mod.rs @@ -200,7 +200,10 @@ impl CliNpmResolver { /// Gets the state of npm for the process. pub fn get_npm_process_state(&self) -> String { serde_json::to_string(&NpmProcessState { - snapshot: self.resolution.serialized_snapshot(), + snapshot: self + .resolution + .serialized_valid_snapshot() + .into_serialized(), local_node_modules_path: self .fs_resolver .node_modules_path() -- cgit v1.2.3