1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-19 23:59:30 +08:00
Files
Alas/webapp/packages/common/utils/checkIsFirst.ts
2023-04-25 18:55:23 +08:00

8 lines
247 B
TypeScript

import getAlasABSPath from './getAlasABSPath';
import fs from 'fs';
import {join} from 'path';
export function checkIsFirst(): boolean {
const absPath = getAlasABSPath();
return fs.existsSync(join(absPath + '/config/deploy.template.yaml'));
}