aboutsummaryrefslogtreecommitdiff
path: root/src/install/dependency.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/install/dependency.zig')
-rw-r--r--src/install/dependency.zig25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/install/dependency.zig b/src/install/dependency.zig
index d1e9e26c4..15e7b9806 100644
--- a/src/install/dependency.zig
+++ b/src/install/dependency.zig
@@ -143,9 +143,9 @@ pub fn toExternal(this: Dependency) External {
}
pub const Version = struct {
- tag: Dependency.Version.Tag = Dependency.Version.Tag.uninitialized,
- literal: String = String{},
- value: Value = Value{ .uninitialized = void{} },
+ tag: Dependency.Version.Tag = .uninitialized,
+ literal: String = .{},
+ value: Value = .{ .uninitialized = {} },
pub fn deinit(this: *Version) void {
switch (this.tag) {
@@ -156,25 +156,6 @@ pub const Version = struct {
}
}
- pub const @"0.0.0" = Version{
- .tag = Dependency.Version.Tag.npm,
- .literal = String.from("0.0.0"),
- .value = Value{
- .npm = Semver.Query.Group{
- .allocator = bun.default_allocator,
- .head = .{
- .head = .{
- .range = .{
- .left = .{
- .op = .gte,
- },
- },
- },
- },
- },
- },
- };
-
pub const zeroed = Version{};
pub fn clone(