Open ssteinerx opened 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');
});
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.