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 and BobbieGoede committed Aug 25, 2024
1 parent dd776b8 commit d4ddab4
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 @@ -107,7 +107,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.4",
"@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 @@ -234,7 +234,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')

const genTemplate = (isServer: boolean, lazy?: boolean) => {
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 d4ddab4

Please sign in to comment.