Skip to content

Commit 9249ae4

Browse files
committed
Update misc things
1 parent 70bdd56 commit 9249ae4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
"contributors": [
2727
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
2828
],
29+
"sideEffects": false,
2930
"type": "module",
30-
"module": "./index.js",
31+
"main": "index.js",
3132
"files": [
3233
"index.js"
3334
],
@@ -56,7 +57,6 @@
5657
},
5758
"xo": {
5859
"prettier": true,
59-
"ignores": [],
6060
"rules": {
6161
"no-var": "off",
6262
"prefer-arrow-callback": "off"

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212

1313
## Install
1414

15+
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c):
16+
Node 12+ is needed to use it and it must be `import`ed instead of `require`d.
17+
1518
[npm][]:
1619

1720
```sh
1821
npm install unist-util-position-from-estree
1922
```
2023

21-
Note that this package is ESM only: it must be imported instead of required.
22-
2324
## Use
2425

2526
```js
@@ -53,8 +54,7 @@ Yields:
5354

5455
## API
5556

56-
`unist-util-position-from-estree` exports the following identifiers:
57-
[`positionFromEstree`](#positionfromestreenode).
57+
This package exports the following identifiers: `positionFromEstree`.
5858
There is no default export.
5959

6060
### `positionFromEstree(node)`

0 commit comments

Comments
 (0)