Skip to content

Commit 42269f9

Browse files
committed
core: ci fix
1 parent f27cb7e commit 42269f9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"test": "node -r @hydrooj/register packages/common/tests/subtask.spec.ts && node test/entry.js",
2424
"benchmark": "cross-env BENCHMARK=true node test/entry.js",
2525
"oxlint": "cd framework/eslint-config && node -r @hydrooj/register build.ts && cd ../../ && oxlint --config framework/eslint-config/.oxlintrc.json",
26-
"lint": "eslint --flag v10_config_lookup_from_file packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --fix",
27-
"lint:ci": "eslint --flag v10_config_lookup_from_file packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --max-warnings=0",
26+
"lint": "eslint packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --fix",
27+
"lint:ci": "eslint packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --max-warnings=0",
2828
"debug": "node --trace-warnings --async-stack-traces --trace-deprecation packages/hydrooj/bin/hydrooj --debug --template",
2929
"start": "packages/hydrooj/bin/hydrooj.js",
3030
"postinstall": "node build/prepare.js",

packages/hydrooj/src/loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ app.plugin(Loader);
174174
async function preload() {
175175
global.app = await new Promise((resolve) => {
176176
app.inject(['timer', 'i18n', '$api'], (c) => {
177-
c.inject({ domain: { required: false } }, resolve);
177+
c.root.domain = undefined as any;
178+
resolve(c);
178179
});
179180
});
180181
for (const a of [path.resolve(__dirname, '..'), ...getAddons()]) {

0 commit comments

Comments
 (0)