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
|
// Publish files
|
||||||
Plugins.forEach((module) => {
|
Plugins.forEach((module) => {
|
||||||
try {
|
try {
|
||||||
|
if (fse.existsSync(module.from)) {
|
||||||
fse.copySync(module.from, module.to)
|
fse.copySync(module.from, module.to)
|
||||||
|
} else {
|
||||||
|
fse.copySync(module.from.replace('node_modules/', '../'), module.to)
|
||||||
|
}
|
||||||
|
|
||||||
if (this.options.verbose) {
|
if (this.options.verbose) {
|
||||||
console.log(`Copied ${module.from} to ${module.to}`)
|
console.log(`Copied ${module.from} to ${module.to}`)
|
||||||
|
|
Loading…
Reference in New Issue