You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The package.json is missing the main or exports fields #889
The package.json doesn't filter what files should be packaged and sent the NPM. Therefore, all the source code with .less files is being distributed.
Also, the entry point of the package is not specified using main, module, or exports. That way, it's confusing for the bundlers what should be used and usually they start picking the files from the src:
Node has already come up with the following package.json properties that allow to limit what will get published to NPM:
files - "an array of file patterns that describes the entries to be included when your package is installed as a dependency"
main - "a module ID that is the primary entry point to your program. That is, if your package is named foo, a user installs it, and then does require("foo")"
types - Set the types property to point to your bundled declaration file.
Activity