From 50dbe9aeb657bbc0d314392a722fc180d70f1171 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Wed, 27 Mar 2024 00:13:56 +0800 Subject: [PATCH] fix(ui): broken @rive dependencies (#127) * fix(ui): broken @rive dependencies Signed-off-by: Neko Ayaka * fix(git-changelog): broken external dependencies Signed-off-by: Neko Ayaka --------- Signed-off-by: Neko Ayaka --- .gitignore | 2 ++ docs/.vitepress/theme/index.ts | 2 ++ packages/ui/package.json | 1 + .../ui/src/components/NuLazyDOMRiveCanvas.vue | 17 +++++++++-------- packages/ui/src/index.ts | 10 +++++----- .../src/vite/git.ts | 5 +++++ 6 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 205e3f73..4a9bd161 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ node_modules **/.netlify/* **/.netlify/functions-serve/* + +.npmrc diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 543473c2..c988fda2 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -6,6 +6,8 @@ import { NuLazyDOMRiveCanvas } from '@nolebase/ui' import IntegrationCard from './components/IntegrationCard.vue' import HomeContent from './components/HomeContent.vue' +import 'virtual:uno.css' + import './styles/vars.css' import './styles/main.css' diff --git a/packages/ui/package.json b/packages/ui/package.json index 2343a102..1ded7511 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -66,6 +66,7 @@ "package:publish": "pnpm build && pnpm publish --access public --no-git-checks" }, "peerDependencies": { + "@rive-app/canvas-lite": "^2.10.0", "vue": "^3.2.0" }, "dependencies": { diff --git a/packages/ui/src/components/NuLazyDOMRiveCanvas.vue b/packages/ui/src/components/NuLazyDOMRiveCanvas.vue index 66c7b972..53609253 100644 --- a/packages/ui/src/components/NuLazyDOMRiveCanvas.vue +++ b/packages/ui/src/components/NuLazyDOMRiveCanvas.vue @@ -1,10 +1,10 @@