Skip to content

Commit

Permalink
fix: json5
Browse files Browse the repository at this point in the history
  • Loading branch information
adproqwq committed Apr 5, 2024
1 parent 9f9ebff commit 47f6e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Fork 本仓库的 `main`分支。
```
的李跳跳规则填写进入`ltt.json`,然后运行 github action 里的 `convert`

运行成功后,转换结果会出现在`-1.json`
运行成功后,转换结果会出现在`result.json5`

然后参照[教程](https://ltt2gkd.adproqwq.xyz/tutoril.html)导入GKD,

Expand Down Expand Up @@ -56,7 +56,7 @@ pnpm i
pnpm convert
```

运行成功后,转换结果会出现在`-1.json`
运行成功后,转换结果会出现在`result.json5`

然后参照[教程](https://ltt2gkd.adproqwq.xyz/tutoril.html)导入GKD,

Expand Down
2 changes: 1 addition & 1 deletion src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ const convert = async () => {

await fs.writeFile(process.cwd() + '/log.txt', `共识别到应用${originLength}个,已抛弃${throwCount}个未知应用的规则`);

await fs.writeFile(process.cwd() + '/-1.json', JSON.stringify(thisSub));
await fs.writeFile(process.cwd() + '/result.json5', json5.stringify(thisSub));
};
convert();

0 comments on commit 47f6e30

Please sign in to comment.