mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-03-16 22:33:10 +00:00
devops: remove playwright-cli from this repo (#1378)
This commit is contained in:
12
roll.js
12
roll.js
@@ -15,11 +15,13 @@ function copyConfig() {
|
||||
}
|
||||
|
||||
function updatePlaywrightVersion(version) {
|
||||
const files = [
|
||||
path.join(__dirname, 'package.json'),
|
||||
path.join(__dirname, 'packages', 'playwright-mcp', 'package.json'),
|
||||
path.join(__dirname, 'packages', 'playwright-cli', 'package.json'),
|
||||
];
|
||||
const packagesDir = path.join(__dirname, 'packages');
|
||||
const files = [path.join(__dirname, 'package.json')];
|
||||
for (const entry of fs.readdirSync(packagesDir, { withFileTypes: true })) {
|
||||
const pkgJson = path.join(packagesDir, entry.name, 'package.json');
|
||||
if (fs.existsSync(pkgJson))
|
||||
files.push(pkgJson);
|
||||
}
|
||||
|
||||
for (const file of files) {
|
||||
const json = JSON.parse(fs.readFileSync(file, 'utf-8'));
|
||||
|
||||
Reference in New Issue
Block a user