Skip to content

Commit dafbb44

Browse files
meili-bors[bot]flevi29Strift
authored
Merge #1847
1847: Update Vite and Vitest r=Strift a=flevi29 # Pull Request ## What does this PR do? - updates Vite and Vitest to latest version - changes TypeScript config so that it can handle JSON as well with import assertions - changes Vite config so that it can be type checked and compatible with latest Vitest ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: F. Levi <55688616+flevi29@users.noreply.github.com> Co-authored-by: Laurent Cazanove <lau.cazanove@gmail.com>
2 parents 7216ee9 + 5b4e6ee commit dafbb44

File tree

4 files changed

+481
-310
lines changed

4 files changed

+481
-310
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@
8080
"devDependencies": {
8181
"@eslint/js": "^9.19.0",
8282
"@types/eslint__js": "^8.42.3",
83-
"@vitest/coverage-v8": "2.0.5",
83+
"@vitest/coverage-v8": "^3.0.7",
8484
"@types/node": "^22.13.8",
8585
"eslint": "^9.21.0",
8686
"eslint-plugin-tsdoc": "^0.4.0",
8787
"@vitest/eslint-plugin": "^1.1.25",
8888
"eslint-config-prettier": "^10.0.2",
89-
"typescript": "^5.7.3",
90-
"vite": "^6.0.9",
89+
"typescript": "^5.8.2",
90+
"vite": "^6.2.0",
9191
"@typescript-eslint/utils": "^8.22.0",
9292
"globals": "^16.0.0",
9393
"lint-staged": "15.4.3",
9494
"prettier": "^3.5.2",
9595
"prettier-plugin-jsdoc": "^1.3.2",
9696
"typedoc": "^0.27.9",
9797
"typescript-eslint": "^8.25.0",
98-
"vitest": "2.0.5"
98+
"vitest": "^3.0.7"
9999
},
100100
"packageManager": "yarn@1.22.22"
101101
}

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"compilerOptions": {
33
// We don't want to check node_modules
44
"skipLibCheck": true,
5-
"module": "node16",
5+
"module": "node18",
66
// Node.js 18 supports up to ES2022 according to https://www.npmjs.com/package/@tsconfig/node18
77
"target": "es2022",
88
"lib": ["ESNext", "dom"],
9+
"resolveJsonModule": true,
910
"strict": true,
1011
"verbatimModuleSyntax": true
1112
}

vite.config.js renamed to vite.config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ export default defineConfig(({ mode }) => {
5555
},
5656
},
5757
test: {
58-
include: "tests/**/*.test.ts",
59-
exclude: "tests/env/**",
58+
include: ["tests/**/*.test.ts"],
59+
exclude: ["tests/env/**"],
6060
fileParallelism: false,
6161
testTimeout: 100_000, // 100 seconds
62-
coverage: { include: "src/**/*.ts" },
62+
coverage: { include: ["src/**/*.ts"] },
6363
},
6464
};
6565
});

0 commit comments

Comments
 (0)