mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: ci fix
This commit is contained in:
2 files changed
+4
-3
No files matched your search
+2
-2
@@ -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",
|
||||
|
||||
@@ -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()]) {
|
||||
|
||||
Reference in new issue
Block a user