mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-06-10 04:44:52 +00:00
Upload code
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import getAlasABSPath from './getAlasABSPath';
|
||||
import fs from 'fs';
|
||||
import {join} from 'path';
|
||||
import {ALAS_CONFIG_TEMPLATE_YAML, ALAS_CONFIG_TEST_TEMPLATE_YAML} from '../constant/config';
|
||||
export function checkIsFirst(): boolean {
|
||||
const absPath = getAlasABSPath();
|
||||
return fs.existsSync(
|
||||
join(
|
||||
absPath,
|
||||
`/config/${import.meta.env.DEV ? ALAS_CONFIG_TEST_TEMPLATE_YAML : ALAS_CONFIG_TEMPLATE_YAML}`,
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user