mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
build: improve pump script (#2351)
This commit is contained in:
6
server/bin/sync-spec-version.js
Normal file
6
server/bin/sync-spec-version.js
Normal 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));
|
||||
@@ -37,7 +37,7 @@
|
||||
"typeorm:schema:reset": "npm run typeorm:schema:drop && npm run typeorm:migrations:run",
|
||||
"api:typescript": "bash ./bin/generate-open-api.sh web",
|
||||
"api:dart": "bash ./bin/generate-open-api.sh mobile",
|
||||
"api:generate": "bash ./bin/generate-open-api.sh"
|
||||
"api:generate": "node ./bin/sync-spec-version.js && bash ./bin/generate-open-api.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
|
||||
Reference in New Issue
Block a user