@bootmap/wpep-cli 1.1.2 → 1.1.3

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.3",
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,9 @@ 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 { createRequire } from 'module';
9
+ const require = createRequire(import.meta.url);
10
+ const archiver = require('archiver');
9
11
 
10
12
  function getFiles(dir, files = []) {
11
13
  if (!fs.existsSync(dir)) return files;