0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/test/e2e-cli/utils/utils.ts

10 lines
268 B
TypeScript
Raw Normal View History

2019-12-15 17:06:28 +01:00
import path from "path";
import fs from "fs";
export function copyConfigFile(rootFolder, configTemplate): string {
const configPath = path.join(rootFolder, 'verdaccio.yaml');
fs.copyFileSync(path.join(__dirname, configTemplate), configPath);
return configPath;
}