meteorhacks / npm

Complete NPM integration for Meteor
http://meteorhacks.com/complete-npm-integration-for-meteor.html
MIT License
508 stars 43 forks source link

Deprecated call #91

Open ssteinerx opened 9 years ago

ssteinerx commented 9 years ago

Using the new packagecheck(https://github.com/timothyarmes/packagecheck) shows a deprecated call in package.js.

=> Checking package npm-container... Warning: Package uses deprecated 'add_files' declaration. Use 'addFiles' instead.

adam-r-kowalski commented 9 years ago

There is an easy fix, you just need to update the call like described in the error.

// packages/npm-container/package.js - OLD VERSION
Package.onUse(function(api) {
  api.add_files('index.js', 'server');
  api.add_files('../../packages.json', 'server', {
    isAsset: true
  });
});
// packages/npm-container/package.js - NEW VERSION
Package.onUse(function(api) {
  api.add_files('index.js', 'server');
  api.addAssets('../../packages.json', 'server');
});