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.
- package/lib/api/spec-loader.js +3 -1
- package/package.json +1 -1
package/lib/api/spec-loader.js
CHANGED
|
@@ -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
|
|
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;
|