Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to nuxt-nightly and enable compatibilityVersion: 4 #1408

Merged
merged 12 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/modules/router.ts → modules/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ export default defineNuxtModule({
addTemplate({
filename: 'routes.mjs',
async getContents () {
const files = await readRecursive(resolver.resolve('../pages'))
const files = await readRecursive(resolver.resolve('../app/pages'))
const componentNames = Object.fromEntries(
files.map(f => [f, genSafeVariableName(f)]),
)
const routes = files.map(f => {
const path = withLeadingSlash(
relative(resolver.resolve('../pages'), f).replace(
relative(resolver.resolve('../app/pages'), f).replace(
/(\/?index)?\.vue$/,
'',
),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/modules/slides.ts → modules/slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineNuxtModule({
baseURL: '/slides',
})

const talks = await import('../data/talks.json').then(r => r.default)
const talks = await import('../app/data/talks.json').then(r => r.default)

for (const talk of talks) {
if (!talk.release) continue
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default defineNuxtConfig({
},
},

future: {
compatibilityVersion: 4,
},
devtools: { enabled: true },
runtimeConfig: {
voteUrl: '',
Expand Down Expand Up @@ -83,8 +86,6 @@ export default defineNuxtConfig({
enabled: !!process.env.SYNC_DEV_TO,
},

srcDir: 'src',

nitro: {
replace: {
'import.meta.test': isTest,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"magic-string": "^0.30.10",
"masto": "^6.7.7",
"mlly": "^1.7.0",
"nuxt": "3.11.2",
"nuxt": "npm:nuxt-nightly@3.12.0-28587627.2d1ab61b",
"nuxt-time": "^0.1.3",
"partykit": "0.0.104",
"partysocket": "^1.0.1",
Expand Down
Loading