mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: minor edit to utils/update_canary_version.js (#8244)
This commit is contained in:
parent
ef35bfa0da
commit
e7aec6d82b
@ -32,7 +32,7 @@ if (process.argv[2] === '--today-date') {
|
||||
}).toString('utf8').trim();
|
||||
packageJSON.version = `${packageJSON.version}-${timestamp}000`;
|
||||
} else {
|
||||
throw new Error('This script must be run with either --timestamp or --today-date parameter');
|
||||
throw new Error('This script must be run with either --commit-timestamp or --today-date parameter');
|
||||
}
|
||||
console.log('Setting version to ' + packageJSON.version);
|
||||
fs.writeFileSync(path.join(__dirname, '..', '..', 'package.json'), JSON.stringify(packageJSON, undefined, 2) + '\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user