summaryrefslogtreecommitdiff
path: root/cli/npm/resolvers/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-08 11:48:29 -0400
committerGitHub <noreply@github.com>2023-06-08 11:48:29 -0400
commit55f01508540e015563e5e54fd0652e81b347b9c1 (patch)
treedee62f23a86df0545801956aa4422825b940e821 /cli/npm/resolvers/mod.rs
parent976c38104569182ba41d9351a108e673f63ffb98 (diff)
refactor(compile): store the npm snapshot in the eszip (#19343)
Diffstat (limited to 'cli/npm/resolvers/mod.rs')
-rw-r--r--cli/npm/resolvers/mod.rs5
1 files changed, 4 insertions, 1 deletions
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()