mirror of
https://github.com/filiprojek/nork.git
synced 2024-11-02 10:02:28 +01:00
bug fix
This commit is contained in:
parent
36758cbadb
commit
49e34b5f73
@ -157,8 +157,8 @@ const logHelp = (specific = false, command = false) => {
|
||||
}
|
||||
|
||||
if (component == 'model') {
|
||||
let src = path.join(__dirname, './make-files/express-' + norkcfg.lang + '/' + component + '.js')
|
||||
let dest = path.join(process.cwd(), './src/' + component + 's' + '/' + process.argv[4] + '.js')
|
||||
let src = path.join(__dirname, './make-files/express-' + norkcfg.lang + '/' + component + '.' + norkcfg.lang)
|
||||
let dest = path.join(process.cwd(), './src/' + component + 's' + '/' + process.argv[4] + '.' + norkcfg.lang)
|
||||
|
||||
try {
|
||||
fs.copySync(src, dest, { overwrite: false, errorOnExist: true })
|
||||
|
Loading…
Reference in New Issue
Block a user