Skip to content

Commit 547a481

Browse files
wayfarer3130claude
andcommitted
fix: restore the author metadata that npm drops from the package
package.json declared the author as an array: "author": ["Michael Martinez", "Helmut Dersch"] npm does not accept an array there. `author` names one person, and `contributors` is the array. npm therefore dropped the field, and the published 2.2.0 carries no author at all: $ npm view @cornerstonejs/jpeg-lossless-decoder-js author --json {} So the package lost the attribution to the two people who wrote the decoder. The unscoped jpeg-lossless-decoder-js has the same defect, and this fork inherited it. Both names are kept, in the shape npm reads: "author": "Michael Martinez", "contributors": ["Helmut Dersch"] Michael Martinez wrote the JavaScript port and the selection value 2 to 7 support; Helmut Dersch wrote the original Java decoder. README.md's acknowledgments section is the source for both. Verified: `npm pkg get` normalizes the manifest to a string author and a contributors array, the packed tarball's package.json carries both, the lint passes and all 54 tests pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 1bf9c75 commit 547a481

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"1.2.840.10008.1.2.4.57",
5252
"1.2.840.10008.1.2.4.70"
5353
],
54-
"author": [
55-
"Michael Martinez",
54+
"author": "Michael Martinez",
55+
"contributors": [
5656
"Helmut Dersch"
5757
],
5858
"license": "MIT",

0 commit comments

Comments
 (0)