chore: remove unused convert-openapi script

This commit is contained in:
peaklabs-dev
2026-01-16 14:46:03 +01:00
parent 513640a7bb
commit a5dc8100c2
2 changed files with 1 additions and 27 deletions
-25
View File
@@ -1,25 +0,0 @@
const yaml = require('js-yaml')
const fs = require('fs')
const path = require('path')
const convertYamlToJson = () => {
try {
// Read the YAML file from the public folder
const yamlPath = path.resolve(__dirname, '../docs/public/openapi.yml')
const yamlContent = fs.readFileSync(yamlPath, 'utf8')
// Parse YAML to JSON
const jsonContent = yaml.load(yamlContent)
// Write JSON to public folder next to the YAML file
const jsonPath = path.resolve(__dirname, '../docs/public/openapi.json')
fs.writeFileSync(jsonPath, JSON.stringify(jsonContent, null, 2))
console.log('Successfully converted YAML to JSON')
console.log(`Output file: ${jsonPath}`)
} catch (error) {
console.error('Error converting YAML to JSON:', error)
}
}
convertYamlToJson()