mirror of
https://github.com/immich-app/immich.git
synced 2025-12-03 17:19:52 +09:00
refactor: open api (#6334)
This commit is contained in:
9
open-api/bin/sync-spec-version.js
Normal file
9
open-api/bin/sync-spec-version.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
);
|
||||
Reference in New Issue
Block a user