mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 04:53:08 +02:00
efa42a1624
* moveto scripts * add scripts/dev.mjs
13 lines
406 B
JavaScript
13 lines
406 B
JavaScript
/*
|
|
* 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');
|