Skip to content

Commit

Permalink
feat(devtools): own export
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Aksamitov committed Nov 2, 2021
1 parent 938bdcf commit 587f47c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## Next
* Moved devtools to own export.

## 0.2.0
* Added Vue Devtools support.
* Updated dependencies.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ in selected component and add their states to the **component inspector**.

```js
import { createApp } from 'vue'
import { devtools } from '@nanostores/vue'
import { devtools } from '@nanostores/vue/devtools'

import { User } from '../stores/user.js'

Expand All @@ -71,7 +71,7 @@ and see their builds, lifecycles and changes on the **timeline**.

```js
import { createApp } from 'vue'
import { devtools, attachStores } from '@nanostores/vue'
import { devtools, attachStores } from '@nanostores/vue/devtools'

import { User } from '../stores/user.js'

Expand Down
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { attachStores, devtools, StoreNameGetter } from './devtools/index.js'
export { useStore } from './composable/index.js'
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { devtools, attachStores } from './devtools/index.js'
export { useStore } from './composable/index.js'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"types": "./index.d.ts",
"exports": {
".": "./index.js",
"./devtools": "./devtools/index.js",
"./package.json": "./package.json"
},
"engines": {
Expand Down

0 comments on commit 587f47c

Please sign in to comment.