Skip to content

Commit 6e8383b

Browse files
committed
version latest
1 parent cef184f commit 6e8383b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const os = require('os');
1010
const packageName = 'html5-boilerplate';
1111

1212
(async () => {
13-
const version = argv['release'] || '';
13+
const version = argv['release'] || 'latest';
1414
const targetDir = path.resolve(argv['_'][0] || './');
15-
const spinner = ora(`Downloading ${packageName} ${version ? 'version '+version : 'latest version'} to ${targetDir}`).start();
15+
const spinner = ora(`Downloading ${packageName} version '${version}' to ${targetDir}`).start();
1616
const tempDir = os.tmpdir()+`/${packageName}-staging`;
1717
await fs.ensureDir(tempDir);
1818
try{
19-
const { from: nameWithVersion } = await extract(packageName+'@'+version, tempDir, {});
19+
const { from: nameWithVersion } = await extract(packageName + '@' + version, tempDir, {});
2020
spinner.text = `${nameWithVersion} copied to ${targetDir}. Have fun!`;
2121
}catch(err){
2222
await fs.remove(tempDir);

0 commit comments

Comments
 (0)