immich/server/bin/sync-spec-version.js

7 lines
286 B
JavaScript
Raw Normal View History

2023-04-29 02:10:32 +00:00
const spec = require('../immich-openapi-specs.json');
const pkg = require('../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));