evophp 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/new-plugin.js +7 -1
  2. package/package.json +1 -1
package/new-plugin.js CHANGED
@@ -1,8 +1,14 @@
1
1
  const { execSync } = require('child_process');
2
2
  const path = require('path');
3
- const { readLineAsync, splitPluginName } = require(path.resolve(__dirname, 'helpers.js'));
4
3
  const fs = require('fs');
5
4
  const axios = require('axios');
5
+ const helpersPath = path.resolve(__dirname, 'helpers.js');
6
+ console.log("Resolved helpers.js path:", helpersPath);
7
+ if (!fs.existsSync(helpersPath)) {
8
+ console.error("helpers.js not found at path:", helpersPath);
9
+ process.exit(1);
10
+ }
11
+ const { readLineAsync, splitPluginName } = require(helpersPath);
6
12
 
7
13
  (async () => {
8
14
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evophp",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Installer for the Evolution PHP project",
5
5
  "main": "installer.js",
6
6
  "scripts": {