-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use module-builder stub mode for more accurate types
- Loading branch information
1 parent
44de48e
commit 515c6b9
Showing
11 changed files
with
1,559 additions
and
1,626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu( | ||
{ | ||
rules: { | ||
'node/prefer-global/process': 'off', | ||
}, | ||
export default await antfu({ | ||
rules: { | ||
'node/prefer-global/process': 'off', | ||
}, | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@byjohann/nuxt-i18n", | ||
"type": "module", | ||
"version": "1.0.3", | ||
"packageManager": "pnpm@8.10.2", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Minimal module for i18n with locale auto-imports & localized routing", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -30,34 +30,33 @@ | |
"dist" | ||
], | ||
"scripts": { | ||
"prepack": "nuxt-module-build build", | ||
"dev": "nuxi dev playground", | ||
"dev:build": "nuxi build playground", | ||
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground", | ||
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"test": "vitest", | ||
"test:types": "tsc --noEmit", | ||
"release": "bumpp --commit --push --tag", | ||
"prepare": "nuxi prepare playground", | ||
"prepack": "nuxt-module-build build" | ||
"release": "bumpp --commit --push --tag" | ||
}, | ||
"dependencies": { | ||
"@byjohann/vue-i18n": "^1.2.1", | ||
"@nuxt/kit": "^3.8.1", | ||
"@nuxt/kit": "^3.8.2", | ||
"knitwork": "^1.0.0", | ||
"pathe": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^1.1.0", | ||
"@antfu/eslint-config": "^2.3.4", | ||
"@byjohann/nuxt-i18n": "workspace:*", | ||
"@nuxt/module-builder": "^0.5.3", | ||
"@nuxt/module-builder": "^0.5.4", | ||
"@nuxt/test-utils": "^3.8.1", | ||
"@types/node": "^20.8.10", | ||
"@types/node": "^20.10.3", | ||
"bumpp": "^9.2.0", | ||
"eslint": "^8.53.0", | ||
"nuxt": "^3.8.1", | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.6", | ||
"vue-tsc": "^1.8.22" | ||
"eslint": "^8.55.0", | ||
"nuxt": "^3.8.2", | ||
"typescript": "^5.3.2", | ||
"vitest": "^1.0.1", | ||
"vue-tsc": "^1.8.25" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { useHead } from '#imports' | ||
|
||
export function useTestResult(data: any) { | ||
useHead({ | ||
script: [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{ | ||
"name": "playground", | ||
"private": true | ||
"type": "module", | ||
"private": true, | ||
"scripts": { | ||
"dev": "nuxi dev", | ||
"build": "nuxi build", | ||
"generate": "nuxi generate" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "./.nuxt/tsconfig.json" | ||
} |
Oops, something went wrong.