Skip to content

Commit e9c79da

Browse files
committed
update script
1 parent 49b6393 commit e9c79da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

measure/scripts/downloadPublishedVersion.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const distDir = `${scriptDir}/../../dist`;
88
run();
99

1010
function run() {
11+
if (!version) {
12+
throw new Error(`usage: npm run downloadPublishedVersion 224109`)
13+
}
1114
const url = exec.execSyncRead(`npm view jsc-android@${version} dist.tarball`);
1215
exec.execSync(`curl ${url} | tar -xf -`);
1316
exec.execSync(`rm -rf ${distDir}`);

0 commit comments

Comments
 (0)