Skip to content

Commit

Permalink
provide pinia to extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Jan 22, 2024
1 parent f069ce4 commit e0faa6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public-hoist-pattern[]=webdav
# @vue/component-compiler-utils
hoist-pattern[]=sass

# @vue/test-utils (@1.3.0 ?)

# eslint (public so they are picked up by IDEs)
public-hoist-pattern[]=*eslint*

Expand Down
1 change: 1 addition & 0 deletions packages/extension-sdk/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const defineConfig = (overrides = {}) => {
external: [
'vue',
'luxon',
'pinia',
'vue3-gettext',

'@ownclouders/web-client',
Expand Down
2 changes: 2 additions & 0 deletions packages/web-runtime/src/container/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { Language } from 'vue3-gettext'
import * as vue from 'vue' // eslint-disable-line
import * as luxon from 'luxon' // eslint-disable-line
import * as vueGettext from 'vue3-gettext' // eslint-disable-line
import * as pinia from 'pinia' // eslint-disable-line
import * as webPkg from '@ownclouders/web-pkg'
import * as webClient from '@ownclouders/web-client'

Expand All @@ -26,6 +27,7 @@ const { requirejs, define } = window as any
// keep in sync with packages/extension-sdk/index.mjs
const injectionMap = {
luxon,
pinia,
vue,
'vue3-gettext': vueGettext,
'@ownclouders/web-pkg': webPkg,
Expand Down

0 comments on commit e0faa6f

Please sign in to comment.