mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
upgrade to typescript@5.6 and cordis@3.18
This commit is contained in:
22 files changed
+52
-46
No files matched your search
@@ -138,6 +138,7 @@ export async function apply(ctx: Context) {
|
||||
cors: system.get('server.cors') || '',
|
||||
upload: system.get('server.upload') || '256m',
|
||||
port: argv.options.port || system.get('server.port'),
|
||||
host: argv.options.host || system.get('server.host'),
|
||||
xff: system.get('server.xff'),
|
||||
xhost: system.get('server.xhost'),
|
||||
});
|
||||
|
||||
@@ -49,8 +49,9 @@ export default class Watcher extends Service {
|
||||
if (process.env.WATCH_ROOT) roots.push(process.env.WATCH_ROOT);
|
||||
this.watcher = watch(roots, {
|
||||
...this.config,
|
||||
ignored: ['node_modules', '.git', 'logs', '.cache', '.yarn']
|
||||
.map((i) => `**/${i}/**`).concat('**/tsconfig.tsbuildinfo'),
|
||||
ignored: (file) => [
|
||||
'node_modules', '.git', 'logs', '.cache', '.yarn', 'tsconfig.tsbuildinfo',
|
||||
].some((rule) => file.startsWith(`${rule}/`) || file.endsWith(`/${rule}`) || file.includes(`/${rule}/`)),
|
||||
});
|
||||
logger.info(`Start watching changes in ${this.root}`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user