chore: minor edit to utils/update_canary_version.js (#8244)

This commit is contained in:
Anish Karandikar 2021-08-24 03:02:24 -07:00 committed by GitHub
parent ef35bfa0da
commit e7aec6d82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');