From 587f47c4fc11677c43bd43b329f84d8130691f47 Mon Sep 17 00:00:00 2001 From: Eduard Aksamitov Date: Tue, 2 Nov 2021 19:53:46 +0300 Subject: [PATCH] feat(devtools): own export --- CHANGELOG.md | 3 +++ README.md | 4 ++-- index.d.ts | 1 - index.js | 1 - package.json | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c793403..223b398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 0785eb4..5c4fef4 100644 --- a/README.md +++ b/README.md @@ -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' @@ -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' diff --git a/index.d.ts b/index.d.ts index 8c9f2d1..cc93668 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,2 +1 @@ -export { attachStores, devtools, StoreNameGetter } from './devtools/index.js' export { useStore } from './composable/index.js' diff --git a/index.js b/index.js index 002554b..cc93668 100644 --- a/index.js +++ b/index.js @@ -1,2 +1 @@ -export { devtools, attachStores } from './devtools/index.js' export { useStore } from './composable/index.js' diff --git a/package.json b/package.json index d672f24..ac50f99 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "types": "./index.d.ts", "exports": { ".": "./index.js", + "./devtools": "./devtools/index.js", "./package.json": "./package.json" }, "engines": {