Skip to content

Commit

Permalink
Merge pull request #34 from bloczjs/task/34-peer-deps
Browse files Browse the repository at this point in the history
Mark @mdx-js/mdx as peer dep
  • Loading branch information
Ayc0 authored Jul 13, 2022
2 parents f5f6600 + c5ee521 commit 6d35c8b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/mdx-live/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ You can also provide a scope for all the variables and components used in the MD

Since the v0.2.0, it's based on MDX v2. It you want to use it with MDX v1, you can look at the [v0.1.0](https://github.com/bloczjs/mdx/tree/v0.1.0).

This package requires you to also install `@mdx-js/mdx`:

```bash
yarn add @mdx-js/mdx @blocz/mdx-live
```

## ESM

⚠️ This package is only published as an ESM package, it doesn't provide any CJS exports.
Expand Down
15 changes: 8 additions & 7 deletions packages/mdx-live/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@
"build": "rm -rf lib/ && microbundle -f modern,esm",
"test": "ava"
},
"dependencies": {
"unist-util-select": "^4.0.1"
},
"peerDependencies": {
"@mdx-js/mdx": "^2.0.0",
"react": ">=16.8.0"
},
"devDependencies": {
"@happy-dom/global-registrator": "^6.0.2",
"@mdx-js/mdx": "^2.1.2",
"@testing-library/react": "^12.1.5",
"@testing-library/react-hooks": "^8.0.1",
"@types/estree": "^0.0.52",
Expand All @@ -46,10 +54,6 @@
"ts-node": "^10.8.2",
"vfile": "^5.3.4"
},
"dependencies": {
"@mdx-js/mdx": "^2.1.2",
"unist-util-select": "^4.0.1"
},
"ava": {
"extensions": {
"ts": "module",
Expand All @@ -60,8 +64,5 @@
"nodeArguments": [
"--loader=ts-node/esm/transpile-only"
]
},
"peerDependencies": {
"react": ">=16.8.0"
}
}
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,7 @@ __metadata:
unist-util-select: ^4.0.1
vfile: ^5.3.4
peerDependencies:
"@mdx-js/mdx": ^2.0.0
react: ">=16.8.0"
languageName: unknown
linkType: soft
Expand Down

0 comments on commit 6d35c8b

Please sign in to comment.