mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
mooooooove
This commit is contained in:
1 parent
45097f198c
commit
98de246578
1 file changed
+2
-4
@@ -14,9 +14,7 @@ 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 {
|
||||||
executableFileExtension = "";
|
executableFileExtension = "";
|
||||||
@@ -34,7 +32,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