Lea Rosema on Nostr: IMHO npm ci shouldn't throw an error when an npm project has a package.json with zero ...
IMHO npm ci shouldn't throw an error when an npm project has a package.json with zero dependencies and thus no package-lock.json :). A return code 0 with a "package has zero dependencies, nothing to do" would be great.
This way, I could still use default github actions related to npm and javascript with packages who have zero dependencies. Right now, it requires to comment out the `npm ci`
#javascript #npm
Published at
2024-10-03 10:14:55Event JSON
{
"id": "0dc8bf8e3e8f0f9546756fd9dc9e0817f429c00065561d350c378f97c9729069",
"pubkey": "f08a637f70295418bc754097b336bb0f1c8ff89d6e2d4ad40fcd258b33000e05",
"created_at": 1727950495,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"t",
"npm"
],
[
"proxy",
"https://lea.lgbt/users/lea/statuses/113242963702305954",
"activitypub"
]
],
"content": "IMHO npm ci shouldn't throw an error when an npm project has a package.json with zero dependencies and thus no package-lock.json :). A return code 0 with a \"package has zero dependencies, nothing to do\" would be great. \n\nThis way, I could still use default github actions related to npm and javascript with packages who have zero dependencies. Right now, it requires to comment out the `npm ci`\n\n#javascript #npm",
"sig": "26ff952e51af5c110026cf0b3631c3da0eb2b7303857efb32bf628f266f31a99d3cfe037896762d0b2de30c22608b1200ea8d678737170413fdf5c9eb3f3e96f"
}