Skip to content

Commit afc908c

Browse files
committed
fix: fix cg template name processing
1 parent d01e312 commit afc908c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cg.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ let configStr = argv._[0] || 'nodejs';
6666
let configName = path.basename(configStr);
6767
let remoteConfig = configName.indexOf(':')>-1;
6868
let configPath = path.dirname(configStr);
69+
if ((configPath === '.') && (!configStr.startsWith('.'))) {
70+
configPath = '';
71+
}
6972
if (!configPath) configPath = path.resolve(__dirname,'configs');
7073
let configFile = path.join(configPath,configName);
7174
if (!path.extname(configFile)) {

0 commit comments

Comments
 (0)