Skip to content

Commit

Permalink
Use local versions of effector and effector-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jul 23, 2024
1 parent b27a7ad commit 52fcac8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions apps/website/docs/.vitepress/theme/LiveDemo.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<script setup>
import webApiRaw from '../../../../../packages/web-api/dist/web-api.js?raw';
import { Sandpack } from 'sandpack-vue3';
import repositoryPackageJson from '../../../../../package.json';
import webApiRaw from '../../../../../packages/web-api/dist/web-api.js?raw';
const repositoryVersions = {
...repositoryPackageJson.dependencies,
...repositoryPackageJson.devDependencies,
};
const props = defineProps(['demoFile']);
const files = {
Expand All @@ -11,8 +18,8 @@ const files = {
const customSetup = {
dependencies: {
effector: 'latest',
'effector-vue': 'latest',
effector: repositoryVersions['effector'],
'effector-vue': repositoryVersions['effector-vue'],
},
};
Expand Down

0 comments on commit 52fcac8

Please sign in to comment.