util: fix findFile

This commit is contained in:
undefined committed 2021-12-20 15:27:49 +08:00
1 parent ba425c5a9c
commit f5226f154a
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.12.12", "version": "2.12.13",
"main": "package.json", "main": "package.json",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -12,7 +12,7 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
config.checker_type = cfg.checker_type || 'default'; config.checker_type = cfg.checker_type || 'default';
if (cfg.checker) { if (cfg.checker) {
if (!cfg.checker.includes('.')) { if (!cfg.checker.includes('.')) {
config.checker = findFileSync(`@hydrojudge/vendor/testlib/checkers/${cfg.checker}.cpp`, false); config.checker = findFileSync(`@hydrooj/hydrojudgejudge/vendor/testlib/checkers/${cfg.checker}.cpp`, false);
} }
if (!config.checker) config.checker = checkFile(cfg.checker, 'Cannot find checker {0}.'); if (!config.checker) config.checker = checkFile(cfg.checker, 'Cannot find checker {0}.');
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/utils", "name": "@hydrooj/utils",
"version": "1.1.8", "version": "1.1.9",
"description": "hydrooj utils", "description": "hydrooj utils",
"main": "package.json", "main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",