Problem: package.json doesn’t support comments


Problem: package.json doesn’t support comments.

Solution: Create a key that starts with // and ends with the target key. Put the comment in the value.

I just used this technique to document an override.

#javascript #npm

View original on X