forked from hazza/dspace-angular
12 lines
390 B
TypeScript
12 lines
390 B
TypeScript
import { copyFile } from 'fs';
|
|
|
|
// Configure Angular `environment.ts` file path
|
|
const sourcePath = './src/environments/mock-environment.ts';
|
|
const targetPath = './src/environments/environment.ts';
|
|
|
|
// destination.txt will be created or overwritten by default.
|
|
copyFile(sourcePath, targetPath, (err) => {
|
|
if (err) throw err;
|
|
console.log(sourcePath + ' was copied to ' + targetPath);
|
|
});
|