Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated call #91

Open
ssteinerx opened this issue Jul 29, 2015 · 1 comment
Open

Deprecated call #91

ssteinerx opened this issue Jul 29, 2015 · 1 comment

Comments

@ssteinerx
Copy link

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
Copy link

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');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants