fix modulus \ add git version util

This commit is contained in:
Lio Young 2021-10-31 22:41:49 +01:00
parent 8e9b1f37ca
commit 326b075349
2 changed files with 5 additions and 2 deletions

3
src/utils/gitVersion.ts Normal file
View File

@ -0,0 +1,3 @@
import { execSync } from 'child_process';
export default execSync('git rev-parse HEAD', { encoding: 'utf8' }).slice(0, 8);

View File

@ -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