mikeedwards / po2json

Pure Javascript implementation of Uniforum message translation. Based on a great gist.
https://gist.github.com/1739769
Other
178 stars 62 forks source link

Remove invalid "main" field from package.json #97

Closed mwiencek closed 3 years ago

mwiencek commented 3 years ago

Node v16 gives the following warning when requiring po2json:

(node:11780) [DEP0128] DeprecationWarning: Invalid 'main' field in '.../node_modules/po2json/package.json' of './lib/po2json'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)

Since "./lib/po2json" doesn't exist and the true entry point is actually index.js (the default), I'm removing the field, which silences the warning.