From d45b184df23a2bbb00b9c1249cc4904235ebe5f7 Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Sat, 13 Oct 2018 14:48:23 +0800 Subject: [PATCH] Chore: Using deconstruction assignment for shelljs (#10974) --- Makefile.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Makefile.js b/Makefile.js index 3c514af096c..ee7d37b246f 100644 --- a/Makefile.js +++ b/Makefile.js @@ -23,23 +23,11 @@ const lodash = require("lodash"), os = require("os"), path = require("path"), semver = require("semver"), - shell = require("shelljs"), ejs = require("ejs"), loadPerf = require("load-perf"), yaml = require("js-yaml"); -const cat = shell.cat; -const cd = shell.cd; -const cp = shell.cp; -const echo = shell.echo; -const exec = shell.exec; -const exit = shell.exit; -const find = shell.find; -const ls = shell.ls; -const mkdir = shell.mkdir; -const pwd = shell.pwd; -const rm = shell.rm; -const test = shell.test; +const { cat, cd, cp, echo, exec, exit, find, ls, mkdir, pwd, rm, test } = require("shelljs"); //------------------------------------------------------------------------------ // Settings