mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-01-30 06:22:03 +00:00
chore: roll pw to latest (#1338)
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.5",
|
||||
"playwright": "1.59.0-alpha-1769217009000",
|
||||
"playwright-core": "1.59.0-alpha-1769217009000"
|
||||
"playwright": "1.59.0-alpha-1769364499000",
|
||||
"playwright-core": "1.59.0-alpha-1769364499000"
|
||||
},
|
||||
"bin": {
|
||||
"mcp": "cli.js",
|
||||
|
||||
@@ -128,7 +128,9 @@ async function updateTools(content) {
|
||||
*/
|
||||
async function updateOptions(content) {
|
||||
console.log('Listing options...');
|
||||
const output = execSync('node cli.js --help');
|
||||
execSync('node cli.js --help > help.txt');
|
||||
const output = fs.readFileSync('help.txt');
|
||||
fs.unlinkSync('help.txt');
|
||||
const lines = output.toString().split('\n');
|
||||
const firstLine = lines.findIndex(line => line.includes('--version'));
|
||||
lines.splice(0, firstLine + 1);
|
||||
|
||||
Reference in New Issue
Block a user