1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Use cwd in openapi script (#34942)

This commit is contained in:
Rachael Sewell
2023-02-21 12:39:59 -08:00
committed by GitHub
parent ea688d1506
commit 5b424cba87

View File

@@ -12,12 +12,14 @@ import { program } from 'commander'
import { execSync } from 'child_process'
import mkdirp from 'mkdirp'
import rimraf from 'rimraf'
import { fileURLToPath } from 'url'
import { decorate } from './utils/decorator.js'
import { validateVersionsOptions } from './utils/get-openapi-schemas.js'
import { allVersions } from '../../../lib/all-versions.js'
const TEMP_DOCS_DIR = path.join('openapiTmp')
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const TEMP_DOCS_DIR = path.join(__dirname, 'openapiTmp')
const DOCS_DEREF_OPENAPI_DIR = path.join('src/rest/data/dereferenced')
const GITHUB_REP_DIR = path.join('../github')