11 lines
397 B
JavaScript
11 lines
397 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
// Import the required modules
|
|
const fs = require('fs');
|
|
|
|
// Get the source and destination file paths from the command-line arguments
|
|
const sourcePath = `src/app-config/${process.argv[2]}`;
|
|
const destinationPath = `src/app-config/${process.argv[3]}`;
|
|
|
|
// Read the source file
|
|
fs.writeFileSync(destinationPath, fs.readFileSync(sourcePath)); |