mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-28 01:14:36 +02:00
* refactor(gh): CI用スクリプトをpackageとして整理 * fix * fix * fix * fix * fix * fix * fix * remove old scripts * migrate * refactor 1 * refactor 2 * fix comment * fix * fix * fix * fix * remove vite-node from changelog-checker * fix lint * fix * refactor * update deps * fix * spec: rename packages
28 lines
788 B
TypeScript
28 lines
788 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { resolve } from 'node:path';
|
|
import { compareBackendMemory } from './compare';
|
|
|
|
const [baseDirArg, headDirArg, baseOutputArg, headOutputArg] = process.argv.slice(2);
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
if (baseDirArg == null || headDirArg == null || baseOutputArg == null || headOutputArg == null) {
|
|
console.error('Usage: inspect <baseDir> <headDir> <baseOutput> <headOutput>');
|
|
process.exit(1);
|
|
}
|
|
|
|
try {
|
|
await compareBackendMemory({
|
|
baseDir: resolve(baseDirArg),
|
|
headDir: resolve(headDirArg),
|
|
baseOutput: resolve(baseOutputArg),
|
|
headOutput: resolve(headOutputArg),
|
|
});
|
|
} catch (err) {
|
|
console.error(err);
|
|
process.exit(1);
|
|
}
|