mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: use new require-resolve-hook
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -3,7 +3,7 @@ require('@hydrooj/utils/lib/register');
|
||||
|
||||
const packageBasedir = require('path').resolve(__dirname, '..');
|
||||
const { homedir } = require('os');
|
||||
const { default: hook } = require('require-resolve-hook');
|
||||
const { default: hook } = require('@undefined-moe/require-resolve-hook');
|
||||
const { bypass } = hook(/^(hydrooj|@hydrooj|cordis|lodash|js-yaml)($|\/)/, (id) => {
|
||||
if (id.startsWith('hydrooj/src')) {
|
||||
console.log('module require via %s is deprecated.', id);
|
||||
@@ -33,7 +33,7 @@ const { bypass } = hook(/^(hydrooj|@hydrooj|cordis|lodash|js-yaml)($|\/)/, (id)
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}, { ignoreModuleNotFoundError: false });
|
||||
|
||||
// Replace pnpm paths.
|
||||
// Vscode will try to open a local file for links, so this doesn't work for remote-ssh, etc.
|
||||
|
||||
@@ -12,13 +12,14 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.490.0",
|
||||
"@aws-sdk/client-s3": "3.495.0",
|
||||
"@aws-sdk/lib-storage": "3.490.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.490.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.490.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.495.0",
|
||||
"@graphql-tools/schema": "^10.0.2",
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"@simplewebauthn/server": "7.4.0",
|
||||
"@undefined-moe/require-resolve-hook": "^1.1.0",
|
||||
"adm-zip": "0.5.5",
|
||||
"cac": "^6.7.14",
|
||||
"cordis": "2.8.8",
|
||||
@@ -45,7 +46,6 @@
|
||||
"notp": "^2.0.3",
|
||||
"p-queue": "^8.0.1",
|
||||
"path-to-regexp": "^6.2.1",
|
||||
"require-resolve-hook": "^1.1.0",
|
||||
"sanitize-filename": "^1.6.3",
|
||||
"saslprep": "^1.0.3",
|
||||
"schemastery": "^3.14.3",
|
||||
|
||||
Reference in new issue
Block a user