@bootmap/wpep-cli 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/deploy.js +2 -2
package/package.json
CHANGED
package/src/commands/deploy.js
CHANGED
|
@@ -5,7 +5,7 @@ import chalk from 'chalk';
|
|
|
5
5
|
import ora from 'ora';
|
|
6
6
|
import { execSync } from 'child_process';
|
|
7
7
|
import inquirer from 'inquirer';
|
|
8
|
-
import
|
|
8
|
+
import { ZipArchive } from 'archiver';
|
|
9
9
|
|
|
10
10
|
function getFiles(dir, files = []) {
|
|
11
11
|
if (!fs.existsSync(dir)) return files;
|
|
@@ -200,7 +200,7 @@ export default async function deployCommand(options) {
|
|
|
200
200
|
|
|
201
201
|
const zipPath = path.join(process.cwd(), 'wpep-deploy.zip');
|
|
202
202
|
const outputZip = fs.createWriteStream(zipPath);
|
|
203
|
-
const archive =
|
|
203
|
+
const archive = new ZipArchive({ zlib: { level: 9 } });
|
|
204
204
|
|
|
205
205
|
const zipPromise = new Promise((resolve, reject) => {
|
|
206
206
|
outputZip.on('close', resolve);
|