Skip to content

Commit a7f7296

Browse files
committed
fix(install): resolve dir to a path on the system
1 parent 1b5e613 commit a7f7296

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/cli/install.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@ import { FileNames, RawConfig } from '../question/config';
33
import Installer from '../install';
44
import { buildLogger } from 'log-factory';
55
import { fromPath } from '../question/config/types';
6+
import { resolve } from 'path';
67

78
const logger = buildLogger();
89

910
class Cmd extends CliCommand {
10-
1111
constructor() {
12-
super(
13-
'install',
14-
'install the dependencies'
15-
);
12+
super('install', 'install the dependencies');
1613
}
1714

1815
public async run(args) {
19-
20-
const dir = args.dir || args.d || process.cwd();
16+
const dir = resolve(args.dir || args.d || process.cwd());
2117
logger.info('dir: ', dir);
2218
const names = FileNames.build(args);
2319

0 commit comments

Comments
 (0)