fix(core): update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as plugins from './smartgit.plugins';
|
||||
import { GitRepo } from './smartgit.classes.gitrepo';
|
||||
import * as plugins from './smartgit.plugins.js';
|
||||
import { GitRepo } from './smartgit.classes.gitrepo.js';
|
||||
|
||||
export class Smartgit {
|
||||
public smartenvInstance = new plugins.smartenv.Smartenv();
|
||||
@@ -15,8 +15,8 @@ export class Smartgit {
|
||||
|
||||
public async init() {
|
||||
if (this.smartenvInstance.isNode) {
|
||||
this.envDeps.fs = this.smartenvInstance.getSafeNodeModule('fs');
|
||||
this.envDeps.http = this.smartenvInstance.getSafeNodeModule('isomorphic-git/http/node');
|
||||
this.envDeps.fs = await this.smartenvInstance.getSafeNodeModule('fs');
|
||||
this.envDeps.http = await this.smartenvInstance.getSafeNodeModule('isomorphic-git/http/node/index.js');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user