judge: fix cac load (close #1154)

This commit is contained in:
undefined committed 2026-05-03 11:48:11 +08:00
1 parent 47ca8884bd
commit 7bb29b8c2a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env node #!/usr/bin/env node
const argv = require('cac')().parse(); const argv = require('cac')().cac().parse();
require('@hydrooj/register'); require('@hydrooj/register');
if (argv.args[0] === 'cache') require('../src/cache')(); if (argv.args[0] === 'cache') require('../src/cache')();
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "4.0.0", "version": "4.0.1",
"main": "./src/index.ts", "main": "./src/index.ts",
"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",