summaryrefslogtreecommitdiff
path: root/cli/npm/semver/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-28 13:04:16 -0400
committerGitHub <noreply@github.com>2022-09-28 13:04:16 -0400
commitd677ba67f50e5edb0491d8ed1e4171473d662081 (patch)
tree9f8740666298ac8e1041fa3e169d8f3a9e074448 /cli/npm/semver/mod.rs
parent23125b275f282f96a6316d11f97e5603dab0d009 (diff)
feat(npm): functionality to support child_process.fork (#15891)
Diffstat (limited to 'cli/npm/semver/mod.rs')
-rw-r--r--cli/npm/semver/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/npm/semver/mod.rs b/cli/npm/semver/mod.rs
index 53f0f199f..dd6ca03db 100644
--- a/cli/npm/semver/mod.rs
+++ b/cli/npm/semver/mod.rs
@@ -6,6 +6,8 @@ use std::fmt;
use deno_core::anyhow::Context;
use deno_core::error::AnyError;
use monch::*;
+use serde::Deserialize;
+use serde::Serialize;
use crate::npm::resolution::NpmVersionMatcher;
@@ -25,7 +27,9 @@ mod specifier;
// A lot of the below is a re-implementation of parts of https://github.com/npm/node-semver
// which is Copyright (c) Isaac Z. Schlueter and Contributors (ISC License)
-#[derive(Clone, Debug, PartialEq, Eq, Default, Hash)]
+#[derive(
+ Clone, Debug, PartialEq, Eq, Default, Hash, Serialize, Deserialize,
+)]
pub struct NpmVersion {
pub major: u64,
pub minor: u64,