mage-remote-run 0.2.5 → 0.2.6

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.
@@ -1,9 +1,11 @@
1
1
  import { OpenAPIClientAxios } from 'openapi-client-axios';
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
+ import { fileURLToPath } from 'url';
4
5
 
5
6
  // Locate specs relative to project root (assuming we are in lib/api)
6
- const SPEC_DIR = path.resolve(process.cwd(), 'api-specs/2.4.8');
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
+ const SPEC_DIR = path.resolve(__dirname, '../../api-specs/2.4.8');
7
9
 
8
10
  export function loadSpec(type) {
9
11
  let specFile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mage-remote-run",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "The remote swiss army knife for Magento Open Source, Mage-OS, Adobe Commerce",
5
5
  "main": "index.js",
6
6
  "scripts": {