fix: bin folder name

This commit is contained in:
Clark Du 2018-08-28 22:25:13 +01:00
parent dca1425cfe
commit 67528f1ba3
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -6,8 +6,8 @@ const { readFileSync, writeFileSync, copySync, ensureDirSync } = require('fs-ext
class NuxtEdgePublisher {
static copyBin(moduleName, binName) {
const binFile = resolve(__dirname, 'bin', binName)
const moduleBin = resolve(__dirname, moduleName, 'bin')
const binFile = resolve(__dirname, '..', 'bin', binName)
const moduleBin = resolve(__dirname, '..', moduleName, 'bin')
ensureDirSync(moduleBin)
copySync(binFile, resolve(moduleBin, binName))
}