diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2882881..9b791b4 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartgit', - version: '2.0.2', + version: '2.0.3', description: 'smart wrapper for nodegit' } diff --git a/ts/smartgit.classes.smartgit.ts b/ts/smartgit.classes.smartgit.ts index d4473aa..0217a9a 100644 --- a/ts/smartgit.classes.smartgit.ts +++ b/ts/smartgit.classes.smartgit.ts @@ -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.') } };