diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-08 11:48:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 11:48:29 -0400 |
commit | 55f01508540e015563e5e54fd0652e81b347b9c1 (patch) | |
tree | dee62f23a86df0545801956aa4422825b940e821 /cli/npm/resolvers/mod.rs | |
parent | 976c38104569182ba41d9351a108e673f63ffb98 (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.rs | 5 |
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() |