immich/open-api/bin/sync-spec-version.js

10 lines
302 B
JavaScript
Raw Normal View History

2024-01-12 05:36:27 -07:00
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)
);