Skip to content

Commit 9db2a1a

Browse files
committed
fix: tests
1 parent 21a3e91 commit 9db2a1a

File tree

4 files changed

+5616
-8166
lines changed

4 files changed

+5616
-8166
lines changed

lib/cli.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,12 @@ module.exports = async (argvs) => {
124124
});
125125
const timer = elapsed.start();
126126
const version = (argv.release || "latest").toString();
127-
const targetDir = path.resolve(argv._[0] || "./");
127+
const targetDir = path.resolve(process.cwd(), argv._[0] || "./");
128128
const override = await checkFolder(targetDir, argv);
129+
if (targetDir === "./") {
130+
console.log(targetDir);
131+
process.exit(0);
132+
}
129133
if (!override) {
130134
console.log(chalk.red("Aborted"));
131135
return;
@@ -142,6 +146,7 @@ module.exports = async (argvs) => {
142146
);
143147
await fs.copy(`${tempDir}/dist`, targetDir);
144148
const timerDownloaded = timer.get();
149+
console.log(targetDir);
145150
await onLoad(targetDir, version, argv);
146151
spinner.succeed(
147152
` ${nameWithVersion} copied to ${targetDir} in ${timerDownloaded}. Have fun!`

0 commit comments

Comments
 (0)