From 5b083241ef2021d4328198b60d3ec630a3b715c5 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 26 Jun 2024 00:36:32 +0800 Subject: [PATCH] fix --- build/prepare.js | 3 +-- packages/hydrooj/src/interface.ts | 4 ++-- packages/ui-default/components/tab/Tab.js | 1 - packages/utils/package.json | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build/prepare.js b/build/prepare.js index a10578c2e..52cd75024 100644 --- a/build/prepare.js +++ b/build/prepare.js @@ -80,7 +80,7 @@ const UIConfig = { 'packages/ui-default/public', '**/node_modules', ], - include: ['ts', 'tsx', 'vue'] + include: ['ts', 'tsx', 'vue', 'json'] .flatMap((ext) => ['plugins'] .flatMap((name) => [`${name}/**/public/**/*.${ext}`, `${name}/**/frontend/**/*.${ext}`]) .concat(`packages/ui-default/**/*.${ext}`)), @@ -91,7 +91,6 @@ const UIConfig = { allowSyntheticDefaultImports: true, baseUrl: '.', outDir: path.join(baseOutDir, 'ui'), - moduleResolution: 'bundler', paths: { 'vj/*': [ './packages/ui-default/*', diff --git a/packages/hydrooj/src/interface.ts b/packages/hydrooj/src/interface.ts index 572ea162d..34a959fbe 100644 --- a/packages/hydrooj/src/interface.ts +++ b/packages/hydrooj/src/interface.ts @@ -1,5 +1,5 @@ -import { AttestationFormat } from '@simplewebauthn/server/dist/helpers/decodeAttestationObject'; -import { AuthenticationExtensionsAuthenticatorOutputs } from '@simplewebauthn/server/dist/helpers/decodeAuthenticatorExtensions'; +import type { AttestationFormat } from '@simplewebauthn/server/dist/helpers/decodeAttestationObject'; +import type { AuthenticationExtensionsAuthenticatorOutputs } from '@simplewebauthn/server/dist/helpers/decodeAuthenticatorExtensions'; import { CredentialDeviceType } from '@simplewebauthn/typescript-types'; import type fs from 'fs'; import type { Dictionary, NumericDictionary } from 'lodash'; diff --git a/packages/ui-default/components/tab/Tab.js b/packages/ui-default/components/tab/Tab.js index 1d10129f9..b2ba79de5 100644 --- a/packages/ui-default/components/tab/Tab.js +++ b/packages/ui-default/components/tab/Tab.js @@ -1,5 +1,4 @@ import $ from 'jquery'; -import _ from 'lodash'; import DOMAttachedObject from 'vj/components/DOMAttachedObject'; const TAB_TRANSITION_DURATION = 300; diff --git a/packages/utils/package.json b/packages/utils/package.json index 7062de1fb..7273454a3 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -14,7 +14,7 @@ "js-yaml": "^4.1.0", "moment-timezone": "^0.5.45", "mongodb": "^5.9.2", - "reggol": "^1.7.0", + "reggol": "^1.6.3", "search-query-parser": "^1.6.0", "systeminformation": "^5.22.11" },