mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
feat: update shit
This commit is contained in:
1 parent
8bda4a5331
commit
95ad6bade7
5 files changed
+14
-5
No files matched your search
@@ -31,10 +31,10 @@ const { value, locale } = Astro.props;
|
||||
const strings = await api.strings(locale);
|
||||
|
||||
const lang = "ts";
|
||||
const roots = ["src/protos", "../closed/protos"];
|
||||
const root = "../../packages/closed/protos";
|
||||
|
||||
const [route, name] = value.split(".");
|
||||
const path = resolve(`${roots[0]}/${route}.ts`);
|
||||
const path = resolve(`${root}/${route}.ts`);
|
||||
|
||||
const program = createProgram([path], {});
|
||||
const source = program.getSourceFile(path);
|
||||
|
||||
Reference in new issue
Block a user