mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(packer) rm tryRequire
This commit is contained in:
parent
a9eba43418
commit
220da11388
1 changed files with 3 additions and 5 deletions
|
|
@ -8,10 +8,8 @@
|
|||
fs = require('fs'),
|
||||
zlib = require('zlib'),
|
||||
|
||||
tryRequire = require(DIR + 'tryRequire'),
|
||||
|
||||
tar = tryRequire('tar'),
|
||||
fstream = tryRequire('fstream'),
|
||||
tar = require('tar'),
|
||||
fstream = require('fstream'),
|
||||
|
||||
pipe = require('pipe-io'),
|
||||
files = require('files-io'),
|
||||
|
|
@ -35,7 +33,7 @@
|
|||
gzip: true
|
||||
};
|
||||
|
||||
if (!is || !fstream || !tar) {
|
||||
if (!is) {
|
||||
files.pipe(from, to, options, callback);
|
||||
} else {
|
||||
streamDir = fstream.Reader(optionsDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue