@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootmap/wpep-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "CLI tool for deploying Next.js static exports to WordPress via WP Elementor Publisher",
5
5
  "main": "bin/wpep.js",
6
6
  "type": "module",
@@ -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 archiver from 'archiver';
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 = archiver('zip', { zlib: { level: 9 } });
203
+ const archive = new ZipArchive({ zlib: { level: 9 } });
204
204
 
205
205
  const zipPromise = new Promise((resolve, reject) => {
206
206
  outputZip.on('close', resolve);