1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00
immich/server/bin/sync-spec-version.js
2023-04-28 21:10:32 -05:00

6 lines
286 B
JavaScript

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));