Skip to content

Commit

Permalink
build: update @nuxt/module-builder (#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Aug 25, 2024
1 parent 526ebcc commit 4df3491
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 90 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"./package.json": "./package.json"
},
"imports": {
"#i18n": "./dist/runtime/composables/index.mjs"
"#i18n": "./dist/runtime/composables/index.js"
},
"main": "./dist/module.cjs",
"module": "./dist/module.mjs",
Expand Down Expand Up @@ -105,7 +105,7 @@
"@babel/plugin-syntax-import-assertions": "^7.24.7",
"@babel/types": "^7.24.7",
"@eslint/js": "9.5.0",
"@nuxt/module-builder": "^0.6.0",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.12.3",
"@types/debug": "^4.1.9",
"@types/eslint": "^8.56.6",
Expand Down
122 changes: 36 additions & 86 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default defineNuxtModule<NuxtI18nOptions>({
addPlugin(resolve(runtimeDir, 'plugins/switch-locale-path-ssr'))

// for composables
nuxt.options.alias['#i18n'] = resolve(distDir, 'runtime/composables/index.mjs')
nuxt.options.alias['#i18n'] = resolve(distDir, 'runtime/composables/index.js')
nuxt.options.build.transpile.push('#i18n')
nuxt.options.build.transpile.push(VIRTUAL_NUXT_I18N_LOGGER)

Expand Down
10 changes: 9 additions & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"extends": "./tsconfig.json",
"exclude": ["**/.nuxt/**", "**/*/dist/*", "docs/**", "playground/**", "specs/**", "src/runtime/templates/**"]
"exclude": [
"**/.nuxt/**",
"**/*/dist/*",
"dist/**",
"docs/**",
"playground/**",
"specs/**",
"src/runtime/templates/**"
]
}

0 comments on commit 4df3491

Please sign in to comment.