mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
9 lines
268 B
TypeScript
9 lines
268 B
TypeScript
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;
|
|
}
|