fix(core): update

This commit is contained in:
2022-07-31 15:14:18 +02:00
parent 91ca5e53f1
commit 39ea160fdf
9 changed files with 6355 additions and 18757 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartgit',
version: '2.0.2',
description: 'smart wrapper for nodegit'
}

View File

@ -1,4 +1,2 @@
import plugins = require('./smartgit.plugins');
export * from './smartgit.classes.gitrepo';
export * from './smartgit.classes.smartgit';
export * from './smartgit.classes.gitrepo.js';
export * from './smartgit.classes.smartgit.js';

View File

@ -1,6 +1,6 @@
import * as plugins from './smartgit.plugins';
import * as plugins from './smartgit.plugins.js';
import { Smartgit } from './smartgit.classes.smartgit';
import { Smartgit } from './smartgit.classes.smartgit.js';
/**
* class GitRepo allows access to git directories from node

View File

@ -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');
}
};