diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 981d415..904c87f 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartpnpm', - version: '1.0.5', + version: '1.0.6', description: 'use pnpm in your code' } diff --git a/ts/smartpnpm.classes.smartpnpm.ts b/ts/smartpnpm.classes.smartpnpm.ts index 4344714..bb79c4f 100644 --- a/ts/smartpnpm.classes.smartpnpm.ts +++ b/ts/smartpnpm.classes.smartpnpm.ts @@ -1,5 +1,15 @@ import * as plugins from './smartpnpm.plugins.js'; +export interface IPnpmLicenseResult { + "name": string; + "version": string; + "path": string; + "license": string; + "author": string; + "homepage": string; + "description": string; +} + export class SmartPnpm { public projectDir: string; @@ -15,15 +25,7 @@ export class SmartPnpm { try { // Get store directory const execResult = await this.smartshellInstance.execSilent(`(cd ${this.projectDir} && pnpm licenses list --json)`); - const licenseJson: {[key: string]: Array<{ - "name": string; - "version": string; - "path": string; - "license": string; - "author": string; - "homepage": string; - "description": string; - }>} = JSON.parse(execResult.stdout); + const licenseJson: {[key: string]: Array} = JSON.parse(execResult.stdout); return licenseJson; } catch (error) {