summaryrefslogtreecommitdiff
path: root/cli/npm/resolvers/mod.rs
diff options
context:
space:
mode:
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()