From 326b075349331cff44ed0cc913bf2fc76c2a4208 Mon Sep 17 00:00:00 2001 From: Lio Young Date: Sun, 31 Oct 2021 22:41:49 +0100 Subject: [PATCH] fix modulus \ add git version util --- src/utils/gitVersion.ts | 3 +++ src/utils/modulus.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/utils/gitVersion.ts diff --git a/src/utils/gitVersion.ts b/src/utils/gitVersion.ts new file mode 100644 index 0000000..6ece4d0 --- /dev/null +++ b/src/utils/gitVersion.ts @@ -0,0 +1,3 @@ +import { execSync } from 'child_process'; + +export default execSync('git rev-parse HEAD', { encoding: 'utf8' }).slice(0, 8); \ No newline at end of file diff --git a/src/utils/modulus.ts b/src/utils/modulus.ts index dab7411..92a95bb 100644 --- a/src/utils/modulus.ts +++ b/src/utils/modulus.ts @@ -1,6 +1,6 @@ import Modulus from "../modules/modulus/src/index"; -let modulus = new Modulus('http://localhost'); -// let modulus = new Modulus(); +// let modulus = new Modulus('http://localhost'); +let modulus = new Modulus(); export default modulus \ No newline at end of file