fix(backend): バックエンドのpnpm devによるビルド後にbuild-assetsを行うようにする (#13659)

* moveto scripts

* add scripts/dev.mjs
This commit is contained in:
おさむのひと 2024-04-04 22:25:28 +09:00 committed by GitHub
parent c4fc582469
commit efa42a1624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 71 additions and 10 deletions

View file

@ -0,0 +1,13 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { loadConfig } from '../built/config.js'
import { genOpenapiSpec } from '../built/server/api/openapi/gen-spec.js'
import { writeFileSync } from "node:fs";
const config = loadConfig();
const spec = genOpenapiSpec(config, true);
writeFileSync('./built/api.json', JSON.stringify(spec), 'utf-8');