Skip to content

Commit

Permalink
fix: json file name
Browse files Browse the repository at this point in the history
  • Loading branch information
islxyqwe committed Jun 19, 2024
1 parent 1cb001d commit 09eb22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graphic-walker/scripts/create-json-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const config = {
};

const generator = tsj.createGenerator(config);
if (!fs.existsSync(resolve(__dirname, '../public'))){
if (!fs.existsSync(resolve(__dirname, '../public'))) {
fs.mkdirSync(resolve(__dirname, '../public'));
}
fs.writeFileSync(resolve(__dirname, '../public/chartinfo.json'), JSON.stringify(generator.createSchema('IChart'), undefined, 4));
fs.writeFileSync(resolve(__dirname, '../public/stoinfo_V2.json'), JSON.stringify(generator.createSchema('IStoInfoV2'), undefined, 4));
fs.writeFileSync(resolve(__dirname, '../public/stoinfo_v2.json'), JSON.stringify(generator.createSchema('IStoInfoV2'), undefined, 4));

0 comments on commit 09eb22f

Please sign in to comment.