mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: start of proto only
This commit is contained in:
1 parent
d90a3cc010
commit
45dc99e1ce
19 files changed
+365
-891
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { $ } from 'bun';
|
||||
import { readdir } from 'fs/promises';
|
||||
|
||||
const ROOT = 'packages/core/protos';
|
||||
|
||||
const files = await readdir(`${ROOT}/raw`);
|
||||
const args = [
|
||||
'--plugin="./node_modules/.bin/protoc-gen-ts"',
|
||||
'--js_out="import_style=commonjs,binary:${OUT_DIR}"',
|
||||
`--ts_out="${ROOT}/generated"`,
|
||||
...files.map((file) => `${ROOT}/raw/${file}`),
|
||||
];
|
||||
|
||||
console.log(`protoc ${args.join(' ')}`);
|
||||
|
||||
console.log(await $`protoc ${args.join(' ')}`.text());
|
||||
Reference in new issue
Block a user