From 2a68adf3c02380e0f39a1228ece718234f0cb611 Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Wed, 4 Sep 2024 19:50:10 -0700 Subject: [PATCH] chore: fix namespace --- examples/vue/simple/src/main.ts | 2 +- examples/vue/simple/vite.config.ts | 2 +- knip.json | 3 ++- packages/vue-redux/src/use-dispatch.ts | 2 +- packages/vue-redux/src/use-selector.ts | 2 +- packages/vue-redux/src/use-store.ts | 2 +- scripts/generateDocs.js | 2 +- scripts/publish.js | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/vue/simple/src/main.ts b/examples/vue/simple/src/main.ts index 6a15b16..055270e 100644 --- a/examples/vue/simple/src/main.ts +++ b/examples/vue/simple/src/main.ts @@ -1,5 +1,5 @@ import { createApp } from 'vue' -import { provideStoreToApp } from 'vue-redux' +import { provideStoreToApp } from '@reduxjs/vue-redux' import { store } from './store' import App from './App.vue' diff --git a/examples/vue/simple/vite.config.ts b/examples/vue/simple/vite.config.ts index 9321cd6..5aca93e 100644 --- a/examples/vue/simple/vite.config.ts +++ b/examples/vue/simple/vite.config.ts @@ -5,6 +5,6 @@ import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], optimizeDeps: { - exclude: ['vue-redux'], + exclude: ['@reduxjs/vue-redux'], }, }) diff --git a/knip.json b/knip.json index 639c5df..954a15e 100644 --- a/knip.json +++ b/knip.json @@ -1,4 +1,5 @@ { "$schema": "https://unpkg.com/knip@5/schema.json", - "ignoreWorkspaces": ["examples/**"] + "ignoreWorkspaces": ["examples/**"], + "ignoreDependencies": ["redux"] } diff --git a/packages/vue-redux/src/use-dispatch.ts b/packages/vue-redux/src/use-dispatch.ts index fa259ec..db4370d 100644 --- a/packages/vue-redux/src/use-dispatch.ts +++ b/packages/vue-redux/src/use-dispatch.ts @@ -69,7 +69,7 @@ export function createDispatchComposition< * * @example * - * import { useDispatch } from 'vue-redux' + * import { useDispatch } from '@reduxjs/vue-redux' * * export const CounterComponent = ({ value }) => { * const dispatch = useDispatch() diff --git a/packages/vue-redux/src/use-selector.ts b/packages/vue-redux/src/use-selector.ts index 764649b..55d403d 100644 --- a/packages/vue-redux/src/use-selector.ts +++ b/packages/vue-redux/src/use-selector.ts @@ -129,7 +129,7 @@ export function createSelectorComposition(): UseSelector { * * @example * - * import { useSelector } from 'vue-redux' + * import { useSelector } from '@reduxjs/vue-redux' * * export const CounterComponent = () => { * const counter = useSelector(state => state.counter) diff --git a/packages/vue-redux/src/use-store.ts b/packages/vue-redux/src/use-store.ts index 01c9adc..b7cb770 100644 --- a/packages/vue-redux/src/use-store.ts +++ b/packages/vue-redux/src/use-store.ts @@ -93,7 +93,7 @@ export function createStoreComposition< * * @example * - * import { useStore } from 'vue-redux' + * import { useStore } from '@reduxjs/vue-redux' * * export const ExampleComponent = () => { * const store = useStore() diff --git a/scripts/generateDocs.js b/scripts/generateDocs.js index fd22c64..a60f5b3 100644 --- a/scripts/generateDocs.js +++ b/scripts/generateDocs.js @@ -7,7 +7,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url)) /** @type {import('@tanstack/config/typedoc').Package[]} */ const packages = [ { - name: 'vue-redux', + name: '@reduxjs/vue-redux', entryPoints: [resolve(__dirname, '../packages/vue-redux/src/index.ts')], tsconfig: resolve(__dirname, '../packages/vue-redux/tsconfig.docs.json'), outputDir: resolve(__dirname, '../docs/reference') diff --git a/scripts/publish.js b/scripts/publish.js index f81ae83..61cbff5 100644 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -9,7 +9,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url)) await publish({ packages: [ { - name: 'vue-redux', + name: '@reduxjs/vue-redux', packageDir: 'packages/vue-redux', } ],