chore: 整理 third-party Dark Reader 目录并移除本地说明文件跟踪
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// @ts-check
|
||||
import {existsSync} from 'node:fs';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
|
||||
const lastArg = process.argv.pop();
|
||||
if (lastArg === __filename) {
|
||||
throw new Error('Error: File or directory expected as a single argument');
|
||||
}
|
||||
|
||||
process.exit(existsSync(lastArg || '') ? 0 : 1);
|
||||
Reference in New Issue
Block a user