mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
7 lines
279 B
JavaScript
7 lines
279 B
JavaScript
const { execSync } = require('child_process');
|
|
const { join } = require('path');
|
|
|
|
const input = join(__dirname, 'types.ts');
|
|
const output = join(__dirname, 'schema.json');
|
|
execSync(`typescript-json-schema ${input} ModuleRenderConfig -o ${output} --noExtraProps --skipLibCheck`);
|