 29f6ba6310
			
		
	
	29f6ba6310
	
	
	
		
			
			* chore: add workflow which checks if SPDX ID exists * chore: add missing SPDX ID in some files * chore: change trigger condition * chore: trigger on push * lint
		
			
				
	
	
		
			14 lines
		
	
	
		
			404 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			404 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');
 |