Compare commits

...

2 Commits

Author SHA1 Message Date
b46d1e19a7 2.0.3 2022-07-31 15:16:06 +02:00
c8d173807d fix(core): update 2022-07-31 15:16:06 +02:00
4 changed files with 6 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smartgit",
"version": "2.0.2",
"version": "2.0.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartgit",
"version": "2.0.2",
"version": "2.0.3",
"license": "MIT",
"dependencies": {
"@pushrocks/smartenv": "^5.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartgit",
"version": "2.0.2",
"version": "2.0.3",
"description": "smart wrapper for nodegit",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartgit',
version: '2.0.2',
version: '2.0.3',
description: 'smart wrapper for nodegit'
}

View File

@ -17,6 +17,8 @@ export class Smartgit {
if (this.smartenvInstance.isNode) {
this.envDeps.fs = await this.smartenvInstance.getSafeNodeModule('fs');
this.envDeps.http = await this.smartenvInstance.getSafeNodeModule('isomorphic-git/http/node/index.js');
} else {
throw new Error('currently only node.js is supported.')
}
};