Skip to content

Commit

Permalink
chore(deps): add @vue/apollo-composable as peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Feb 20, 2024
1 parent 79b200d commit 196e940
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@
"repository": {
"type": "git",
"url": "git+https://github.com/becem-gharbi/nuxt-directus.git"
},
"peerDependencies": {
"@vue/apollo-composable": "^4.0.1"
}
}
2 changes: 0 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ export default defineNuxtModule<ModuleOptions>({
// #################################################

if (options.graphql.enabled) {
nuxt.options.build.transpile.push('@vue/apollo-composable')

if (options.auth.enabled) {
const graphqlPlugin = resolve(runtimeDir, './plugins/graphql')
addPlugin(graphqlPlugin, { append: true })
Expand Down

0 comments on commit 196e940

Please sign in to comment.