Skip to content

Commit

Permalink
Add section on package requirements to importSync documentation
Browse files Browse the repository at this point in the history
Hopefully this will save someone else some time, especially the bit
about ember-auto-import being required.
  • Loading branch information
jrjohnson committed Feb 3, 2022
1 parent eaec307 commit c592e2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ let foo = importSync('foo');
let foo = require('foo');
```

#### hint

When using `importSync` on non ember-addon packages both the package being imported from *and* `ember-auto-import` *must* be in the `dependencies` of your addons `package.json`.

### dependencySatisfies

Tests whether a given dependency is present and satisfies the given semver range. Both arguments must be strings and the second argument will be passed into [semver's satisfies](https://github.com/npm/node-semver#usage) method.
Expand Down

0 comments on commit c592e2f

Please sign in to comment.