8000 fix · flymeow/reactvue-cli@440fafe · GitHub
[go: up one dir, main page]

Skip to content

Commit 440fafe

Browse files
committed
fix
1 parent 582016a commit 440fafe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/download.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function getPackageInfo(name) {
3434
};
3535

3636
function copy(sourceDir, projectDir, type = { dir: ''}) {
37-
shell.cp('-R', path.join(sourceDir, '.'), projectDir);
37+
shell.cp('-R', path.join(sourceDir, '{.,}*'), projectDir);
3838
}
3939

4040
function rm(dir) {
@@ -85,9 +85,12 @@ module.exports = class Download{
8585
this.spinner.start();
8686
const result = await getPackageInfo(type.type);
8787
const tgz = result.dist.tarball;
88+
8889
await rm(this.tempDir);
90+
8991
const response = await urllib.request(tgz, { streaming: true, followRedirect: true });
9092
await compressing.tgz.uncompress(response.res, this.tempDir);
93+
9194
return path.join(this.tempDir,'/package');
9295
}
9396
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactvue-cli",
3-
"version": "0.0.9",
3+
"version": "0.1.0",
44
"description": "reactvue-cli",
55
"main": "./bin/ReactVue.js",
66
"bin": {

0 commit comments

Comments
 (0)
0