core: ci fix

This commit is contained in:
undefined committed 2026-08-23 14:45:30 +08:00
1 parent f27cb7e3bf
commit 42269f91ca
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@
"test": "node -r @hydrooj/register packages/common/tests/subtask.spec.ts && node test/entry.js",
"benchmark": "cross-env BENCHMARK=true node test/entry.js",
"oxlint": "cd framework/eslint-config && node -r @hydrooj/register build.ts && cd ../../ && oxlint --config framework/eslint-config/.oxlintrc.json",
"lint": "eslint --flag v10_config_lookup_from_file packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --fix",
"lint:ci": "eslint --flag v10_config_lookup_from_file packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --max-warnings=0",
"lint": "eslint packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --fix",
"lint:ci": "eslint packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --max-warnings=0",
"debug": "node --trace-warnings --async-stack-traces --trace-deprecation packages/hydrooj/bin/hydrooj --debug --template",
"start": "packages/hydrooj/bin/hydrooj.js",
"postinstall": "node build/prepare.js",
+2 -1
View File
@@ -174,7 +174,8 @@ app.plugin(Loader);
async function preload() {
global.app = await new Promise((resolve) => {
app.inject(['timer', 'i18n', '$api'], (c) => {
c.inject({ domain: { required: false } }, resolve);
c.root.domain = undefined as any;
resolve(c);
});
});
for (const a of [path.resolve(__dirname, '..'), ...getAddons()]) {