Skip to content

Commit

Permalink
feat: add workspace and jsr fields to lockfile schema (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn authored Jan 25, 2024
1 parent 0bb05cd commit fc676bb
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions schemas/lockfile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,23 @@
"description": "The full specifier as the value for the shortened specifier as the key."
}
},
"jsr": {
"type": "object",
"description": "Mapping between resolved jsr specifiers and their associated info.",
"default": {},
"additionalProperties": {
"type": "object",
"description": "Info associated with a jsr module.",
"default": {},
"properties": {
"dependencies": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
}
}
}
},
"npm": {
"type": "object",
"description": "A map of npm package names and versions to their respective hashes.",
Expand All @@ -79,6 +96,54 @@
}
}
}
},
"workspace": {
"$ref": "#/definitions/workspaceMemberConfigContent",
"default": {},
"properties": {
"members": {
"type": "object",
"default": {},
"additionalProperties": {
"type": "object",
"default": {},
"properties": {
"dependencies": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
},
"packageJson": {
"type": "object",
"default": {},
"properties": {
"dependencies": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
}
}
}
}
}
},
"dependencies": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
},
"packageJson": {
"type": "object",
"default": {},
"properties": {
"dependencies": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
}
}
}
}
}
}
}

0 comments on commit fc676bb

Please sign in to comment.