PNPM now has support for package.yaml but half of the npm modules insist on parsing a package.json, preferably with a JSON parser from the early 2000s that doesn't support JSON-with-comments or trailing commas. Just give us an import.meta.moduleInfo(packageName) to get the package information already.
require() is completely broken but at least it's almost dead now.
package.json
andrequire()
.PNPM now has support for
package.yaml
but half of the npm modules insist on parsing apackage.json
, preferably with a JSON parser from the early 2000s that doesn't support JSON-with-comments or trailing commas. Just give us animport.meta.moduleInfo(packageName)
to get the package information already.require()
is completely broken but at least it's almost dead now.And yes, having to deal with JSON in 2021 keeps me up at night.