forked from
tokono.ma/diffuse
A music player that connects to your cloud/distributed storage.
1import { readTextFileSync } from "@std/fs/unstable-read-text-file";
2import { writeTextFileSync } from "@std/fs/unstable-write-text-file";
3
4function replace(path: string) {
5 const text = readTextFileSync(path);
6 const withTsImports = text.replaceAll(/\.js";/g, '.ts";');
7
8 writeTextFileSync(path, withTsImports);
9}
10
11replace("./src/definitions/index.ts");
12replace("./src/definitions/types/sh/diffuse/output/playlistItemBundle.ts");
13replace("./src/definitions/types/sh/diffuse/output/trackBundle.ts");