mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
debug
This commit is contained in:
1 parent
975d579d21
commit
e063719caa
1 file changed
+3
-1
@@ -14,6 +14,8 @@ const exec = promisify(execSync);
|
|||||||
|
|
||||||
let executableFileExtension: string;
|
let executableFileExtension: string;
|
||||||
|
|
||||||
|
console.log(await readdir("node_modules/.bin"));
|
||||||
|
|
||||||
if (existsSync("node_modules/.bin/protoc-gen-ts_proto.exe")) {
|
if (existsSync("node_modules/.bin/protoc-gen-ts_proto.exe")) {
|
||||||
executableFileExtension = ".exe";
|
executableFileExtension = ".exe";
|
||||||
} else {
|
} else {
|
||||||
@@ -32,7 +34,7 @@ for (const root of roots) {
|
|||||||
while (files.length > 0) {
|
while (files.length > 0) {
|
||||||
let command = [
|
let command = [
|
||||||
"protoc",
|
"protoc",
|
||||||
`--plugin=./node_modules/.bin/protoc-gen-ts_proto${executableFileExtension}`,
|
`--plugin=node_modules/.bin/protoc-gen-ts_proto${executableFileExtension}`,
|
||||||
"--ts_proto_opt=esModuleInterop=true",
|
"--ts_proto_opt=esModuleInterop=true",
|
||||||
"--ts_proto_opt=oneof=unions-value",
|
"--ts_proto_opt=oneof=unions-value",
|
||||||
// "--ts_proto_opt=removeEnumPrefix=true",
|
// "--ts_proto_opt=removeEnumPrefix=true",
|
||||||
|
|||||||
Reference in new issue
Block a user