Skip to content

Commit 8155836

Browse files
committed
Update 'update-vendored-yaml.ts'
1 parent 3bc074d commit 8155836

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/openapi/update-vendored-yaml.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ async function updateVendoredYaml() {
3131

3232
for (const spec of openApiSpecsArray) {
3333
if (!spec.url) continue; // Only process specs with a URL
34-
// Remove leading './' for specPath if present, and resolve relative to this script
35-
const specPath = spec.specPath.replace(/^\.\//, '../../');
36-
const absPath = path.resolve(__dirname, specPath);
34+
// absPaths is the absolute path to the spec file
35+
const absPath = spec.specPath;
3736
fs.mkdirSync(path.dirname(absPath), { recursive: true });
3837
console.log(`⬇️ Downloading ${spec.url}${absPath}`);
3938
try {

0 commit comments

Comments
 (0)