-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Thank you for this tool - it is very useful to me :)
Linked local packages in package-lock.json cause an error due to missing version field:
$ git diff
Note: Could not parse /var/folders/8b/xjb2221d1c307gt0k8z_8tjr0000gn/T/git-blob-DRaJ5G/package-lock.json: missing field `version` at line 9604 column 5
Note: Could not parse package-lock.json: missing field `version` at line 9639 column 5
The links are created via the workspaces option in package.json:
{
...
"workspaces": [
"extensions/*"
],
...
}
The entries in the lock-file look like this:
"node_modules/some-local-package": {
"resolved": "extensions/some-local-package",
"link": true
},I don't believe that version is expected here, since all the information is carried on the package.json in the referenced directory (which does have a version).
Version: lockdiff 2.0.2
Metadata
Metadata
Assignees
Labels
No labels