Skip to content

Commit

Permalink
Move mdast types to dev dependencies
Browse files Browse the repository at this point in the history
Closes GH-41.

Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
ChristianMurphy authored May 1, 2020
1 parent 8548e60 commit 3e30b29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
],
"types": "types/index.d.ts",
"dependencies": {
"@types/mdast": "^3.0.0",
"collapse-white-space": "^1.0.0",
"detab": "^2.0.0",
"mdast-util-definitions": "^3.0.0",
Expand All @@ -43,6 +42,7 @@
"unist-util-visit": "^2.0.0"
},
"devDependencies": {
"@types/mdast": "^3.0.0",
"browserify": "^16.0.0",
"dtslint": "^3.0.0",
"nyc": "^15.0.0",
Expand Down
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
npm install mdast-util-to-hast
```

[npm][] with [TypeScript][] support:

```sh
npm install mdast-util-to-hast @types/mdast
```

## Use

Say we have the following `example.md`:
Expand Down Expand Up @@ -340,6 +346,8 @@ abide by its terms.

[npm]: https://docs.npmjs.com/cli/install

[typescript]: https://www.typescriptlang.org

[license]: license

[author]: https://wooorm.com
Expand Down

0 comments on commit 3e30b29

Please sign in to comment.