build: improve pump script ()

This commit is contained in:
Jason Rasmussen 2023-04-28 22:10:32 -04:00 committed by GitHub
parent 59d93138d3
commit ce42b84430
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 12 deletions

View file

@ -0,0 +1,6 @@
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));