Skip to content

Commit

Permalink
chore(nuxt): bump nuxt dependencies (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsijie authored Dec 27, 2024
1 parent f8a2559 commit 01524a7
Show file tree
Hide file tree
Showing 5 changed files with 2,349 additions and 1,727 deletions.
16 changes: 8 additions & 8 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@
"prepack": "pnpm build"
},
"devDependencies": {
"@nuxt/module-builder": "^0.8.0",
"@nuxt/test-utils": "^3.12.1",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/test-utils": "^3.15.1",
"@silverhand/eslint-config": "^6.0.1",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/coverage-v8": "^2.1.8",
"@vue/test-utils": "^2.4.4",
"eslint": "^8.57.0",
"h3": "^1.11.1",
"h3": "^1.13.0",
"happy-dom": "^15.10.2",
"lint-staged": "^15.0.0",
"nuxt": "^3.12.4",
"nuxt": "^3.15.0",
"prettier": "^3.0.0",
"typescript": "^5.3.3",
"vitest": "^1.6.0",
"vue": "^3.4.19"
"vitest": "^2.1.8",
"vue": "^3.5.13"
},
"eslintConfig": {
"extends": "@silverhand"
Expand All @@ -54,7 +54,7 @@
},
"dependencies": {
"@logto/node": "workspace:^",
"@nuxt/kit": "^3.10.2",
"@nuxt/kit": "^3.15.0",
"@silverhand/essentials": "^2.9.2",
"defu": "^6.1.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt/playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export default defineNuxtConfig({
},
modules: ['../src/module'],
devtools: { enabled: true },
compatibilityDate: '2024-12-26',
});
3 changes: 2 additions & 1 deletion packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const logtoModule: NuxtModule<LogtoRuntimeConfigInput> = defineNuxtModule<LogtoR
setup(options, nuxt) {
// Merge runtimeConfig with module options (options already merged with defaults)
const runtimeConfig = defu<LogtoRuntimeConfig, LogtoRuntimeConfigInput[]>(
nuxt.options.runtimeConfig.logto,
// eslint-disable-next-line no-restricted-syntax
nuxt.options.runtimeConfig.logto as LogtoRuntimeConfig,
options,
{
fetchUserInfo: false,
Expand Down
4 changes: 3 additions & 1 deletion packages/nuxt/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"extends": "./.nuxt/tsconfig",
"compilerOptions": {
"outDir": "dist",
}
"skipLibCheck": true
},
"exclude": ["node_modules", ".nuxt"]
}
Loading

0 comments on commit 01524a7

Please sign in to comment.