mirror of https://github.com/ColorlibHQ/AdminLTE
fixed npm i prepare plugins error
parent
c22642766e
commit
3be22b6be9
|
@ -28,7 +28,11 @@ class Publish {
|
|||
// Publish files
|
||||
Plugins.forEach((module) => {
|
||||
try {
|
||||
fse.copySync(module.from, module.to)
|
||||
if (fse.existsSync(module.from)) {
|
||||
fse.copySync(module.from, module.to)
|
||||
} else {
|
||||
fse.copySync(module.from.replace('node_modules/', '../'), module.to)
|
||||
}
|
||||
|
||||
if (this.options.verbose) {
|
||||
console.log(`Copied ${module.from} to ${module.to}`)
|
||||
|
|
Loading…
Reference in New Issue