Changing module to work with the file system.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const Plugins = require('./Plugins')
|
||||
const ncp = require('ncp').ncp
|
||||
const fse = require('fs-extra')
|
||||
|
||||
class Publish {
|
||||
constructor() {
|
||||
@@ -27,7 +27,7 @@ class Publish {
|
||||
run() {
|
||||
// Publish files
|
||||
Plugins.forEach((module) => {
|
||||
ncp(module.from, module.to, error => {
|
||||
fse.copy(module.from, module.to, error => {
|
||||
if (error) {
|
||||
console.error(`Error: ${error}`)
|
||||
} else if (this.options.verbose) {
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
"eslint-plugin-compat": "^2.7.0",
|
||||
"extract-text-webpack-plugin": "^3.0.2",
|
||||
"fs-extra": "^5.0.0",
|
||||
"ncp": "^2.0.0",
|
||||
"node-sass": "^4.12.0",
|
||||
"nodemon": "^1.19.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
|
||||
Reference in New Issue
Block a user