immich/open-api/bin/sync-spec-version.js
2024-01-12 07:36:27 -05:00

10 lines
302 B
JavaScript

const spec = require('../immich-openapi-specs.json');
const pkg = require('../../server/package.json');
const path = require('path');
const fs = require('fs');
spec.info.version = pkg.version;
fs.writeFileSync(
path.join(__dirname, '../immich-openapi-specs.json'),
JSON.stringify(spec, null, 2)
);