@bemedev/cli-test
Version:
A library for testing CLI libraries (INCEPTION !!)
14 lines (11 loc) • 385 B
JavaScript
import { existsSync } from 'fs';
import { join } from 'node:path';
import { SETUP_FILE } from '../constants.js';
const getSetupFile = () => {
const isSrcExists = existsSync('./src');
const first = `${isSrcExists ? './src/' : './'}${SETUP_FILE}`;
const out = join(process.cwd(), first);
return out;
};
export { getSetupFile };
//# sourceMappingURL=getSetupFile.js.map