mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-03 23:09:17 -05:00
9 lines
271 B
TypeScript
9 lines
271 B
TypeScript
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
export function copyConfigFile(rootFolder, configTemplate): string {
|
|
const configPath = path.join(rootFolder, 'verdaccio.yaml');
|
|
fs.copyFileSync(path.join(__dirname, configTemplate), configPath);
|
|
|
|
return configPath;
|
|
}
|