eslint-import-resolver-node 0.3.10 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -14,6 +14,10 @@ function opts(file, config, packageFilter) {
14
14
  extensions: ['.mjs', '.js', '.json', '.node'],
15
15
  // TODO: semver-major: remove this to match Node's default behavior
16
16
  preserveSymlinks: true,
17
+ // Use the consumer's engines.node to determine exports resolution behavior.
18
+ // Falls back to traditional resolution when engines.node is absent.
19
+ // Set engines: false in resolver config to opt out.
20
+ engines: true,
17
21
  }, config, {
18
22
  // path.resolve will handle paths relative to CWD
19
23
  basedir: path.dirname(path.resolve(file)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-import-resolver-node",
3
- "version": "0.3.10",
3
+ "version": "0.4.0",
4
4
  "description": "Node default behavior import resolution plugin for eslint-plugin-import.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -31,8 +31,8 @@
31
31
  "homepage": "https://github.com/import-js/eslint-plugin-import",
32
32
  "dependencies": {
33
33
  "debug": "^3.2.7",
34
- "is-core-module": "^2.16.1",
35
- "resolve": "^2.0.0-next.6"
34
+ "is-core-module": "^2.16.2",
35
+ "resolve": "^2.0.0-next.7"
36
36
  },
37
37
  "devDependencies": {
38
38
  "chai": "^3.5.0",