Update generate_api_json.js
This commit is contained in:
parent
b53f3a5bd5
commit
4f67d671cc
|
|
@ -3,7 +3,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { writeFileSync } from 'node:fs';
|
import { writeFileSync, existsSync } from 'node:fs';
|
||||||
import { execa } from 'execa';
|
import { execa } from 'execa';
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
|
@ -14,6 +14,10 @@ async function main() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!existsSync('./built')) {
|
||||||
|
throw new Error('`built` directory does not exist.');
|
||||||
|
}
|
||||||
|
|
||||||
/** @type {import('../src/config.js')} */
|
/** @type {import('../src/config.js')} */
|
||||||
const { loadConfig } = await import('../src-js/config.js');
|
const { loadConfig } = await import('../src-js/config.js');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue