[Build] Fix __vendettaVersion
This commit is contained in:
parent
3531132c38
commit
293c256dc9
3 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
||||||
import { build } from "esbuild";
|
import { build } from "esbuild";
|
||||||
import { replace } from "esbuild-plugin-replace";
|
|
||||||
import alias from "esbuild-plugin-alias";
|
import alias from "esbuild-plugin-alias";
|
||||||
import swc from "@swc/core";
|
import swc from "@swc/core";
|
||||||
import { promisify } from "util";
|
import { promisify } from "util";
|
||||||
|
@ -43,10 +42,10 @@ try {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
alias(aliases),
|
alias(aliases),
|
||||||
replace({
|
|
||||||
"__vendettaVersion": commit,
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
|
define: {
|
||||||
|
__vendettaVersion: `"${commit}"`,
|
||||||
|
},
|
||||||
legalComments: "none",
|
legalComments: "none",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
"@types/react-native": "0.70.6",
|
"@types/react-native": "0.70.6",
|
||||||
"esbuild": "^0.17.11",
|
"esbuild": "^0.17.11",
|
||||||
"esbuild-plugin-alias": "^0.2.1",
|
"esbuild-plugin-alias": "^0.2.1",
|
||||||
"esbuild-plugin-replace": "^1.3.0",
|
|
||||||
"moment": "2.22.2",
|
"moment": "2.22.2",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,7 +43,8 @@ export function patchLogHook() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const versionHash = "__vendettaVersion";
|
// @ts-expect-error
|
||||||
|
export const versionHash: string = __vendettaVersion;
|
||||||
|
|
||||||
export function getDebugInfo() {
|
export function getDebugInfo() {
|
||||||
// Discord
|
// Discord
|
||||||
|
|
Loading…
Reference in a new issue