From 3e30b298dd367967b965ad715a4da8a3ad232b60 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Fri, 1 May 2020 02:06:51 -0700 Subject: [PATCH] Move mdast types to dev dependencies Closes GH-41. Reviewed-by: Titus Wormer --- package.json | 2 +- readme.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e0b1b9c..db18b8f 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/readme.md b/readme.md index 2b50bfc..b2a6c52 100644 --- a/readme.md +++ b/readme.md @@ -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`: @@ -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