Check File Dependencies
Takes a file path and checks to see if the modules it requires match the package.json
Usage
var checkFileDependencies = require('@mapbox/check-file-dependencies');
checkFileDependencies(path.join(__dirname, 'path', 'to', 'file.js'), function(err) {
if (err) console.log(err.message);
if (err) process.exit(1);
})
Or as a CLI
check-file-dependencies ./path/to/file.js
Contributing
- Open a PR
- Include changes in Changelog.md
- Merge PR
- Locally switch to master
npm version [major, minor, patch]
git push origin master --tags
npm publish