Skip to content

Commit

Permalink
chore(deps): remove @vue/apollo-composable from peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Feb 13, 2024
1 parent cacd5ff commit 91d0e9e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 54 deletions.
96 changes: 46 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"dependencies": {
"@directus/sdk": "^15.0.0",
"@nuxt/kit": "^3.10.1",
"@vue/apollo-composable": "^4.0.0",
"defu": "^6.1.4",
"nuxt-apollo": "^0.1.3"
},
Expand All @@ -51,8 +50,5 @@
"repository": {
"type": "git",
"url": "git+https://github.com/becem-gharbi/nuxt-directus.git"
},
"peerDependencies": {
"@vue/apollo-composable": "^4.0.0"
}
}
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export default defineNuxtModule<ModuleOptions>({
addPlugin(restPlugin, { append: true })

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

const graphqlPlugin = resolve(runtimeDir, './plugins/graphql')
addPlugin(graphqlPlugin, { append: true })

Expand Down

0 comments on commit 91d0e9e

Please sign in to comment.