chore: 整理 third-party Dark Reader 目录并移除本地说明文件跟踪

This commit is contained in:
2026-08-08 17:38:08 +08:00
parent 202ab537d1
commit 0bb552b026
1004 changed files with 115066 additions and 20081 deletions
+21
View File
@@ -0,0 +1,21 @@
import {dirname, join} from 'node:path';
export const rootDir: string = dirname(require.resolve('../../package.json'));
export function rootPath(...paths: string[]): string {
return join(rootDir, ...paths);
}
export function multiline(...lines: string[]): string {
if (lines.length < 1) {
return '\n';
}
if (lines[lines.length - 1] !== '') {
lines.push('');
}
return lines.join('\n');
}
export function timeout(delay: number): Promise<void> {
return new Promise<void>((resolve) => setTimeout(resolve, delay));
}