Update function name
This commit is contained in:
parent
98534453aa
commit
780d0076a1
|
@ -9,7 +9,7 @@ function groupBy(array, n) {
|
||||||
return groups;
|
return groups;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function run(packageName, version) {
|
async function purgeCache(packageName, version) {
|
||||||
if (packageName == null) {
|
if (packageName == null) {
|
||||||
console.error(
|
console.error(
|
||||||
chalk.red(
|
chalk.red(
|
||||||
|
@ -67,6 +67,6 @@ async function run(packageName, version) {
|
||||||
const packageName = process.argv[2];
|
const packageName = process.argv[2];
|
||||||
const version = process.argv[3];
|
const version = process.argv[3];
|
||||||
|
|
||||||
run(packageName, version).then(exitCode => {
|
purgeCache(packageName, version).then(exitCode => {
|
||||||
process.exit(exitCode);
|
process.exit(exitCode);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue