Meteor-Community-Packages / check-npm-versions

Enforces "peer" npm dependencies in Meteor 1.3+ Atmosphere packages.
MIT License
11 stars 10 forks source link

Modernize package #22

Closed copleykj closed 3 years ago

copleykj commented 4 years ago

Setup typescript, linting, and commit hooks. Also made the package server only to avoid issues when used client side.

copleykj commented 4 years ago

Ok, so I've finally gotten around and tested things out quite a bit and it's looking like that because of the way the build system works, the server does not have access to the package.json of a package unless it's imported on the server. This means that leaving the package so that it runs in both environments is probably best for usability. Unfortunately this won't give any savings to the bundle size, but I think that maybe if package authors use dynamic imports this could be accomplished on their end.