sealights-playwright-plugin
Version:
Playwright plugin for Sealights integration.
23 lines (18 loc) • 523 B
JavaScript
const {
processDirectory,
} = require('./tsOutputs/src/utils/importReplaceUtility.js');
// Check for CLI argument
const args = process.argv.slice(2);
if (args.length !== 1) {
console.error('Please provide a path to the folder as an argument.');
process.exit(1);
}
const dirPath = args[0];
// Run the processDirectory method
try {
processDirectory(dirPath);
console.log(`Processed directory: ${dirPath}`);
} catch (error) {
console.error(`Error processing directory: ${error.message}`);
process.exit(1);
}