diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index fba5d62..981d415 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.4', + version: '1.0.5', description: 'use pnpm in your code' } diff --git a/ts/smartpnpm.classes.smartpnpm.ts b/ts/smartpnpm.classes.smartpnpm.ts index e5f27ec..4344714 100644 --- a/ts/smartpnpm.classes.smartpnpm.ts +++ b/ts/smartpnpm.classes.smartpnpm.ts @@ -14,7 +14,7 @@ export class SmartPnpm { async getDependencyLicenseJson() { try { // Get store directory - const execResult = await this.smartshellInstance.execSilent('pnpm licenses list --json'); + const execResult = await this.smartshellInstance.execSilent(`(cd ${this.projectDir} && pnpm licenses list --json)`); const licenseJson: {[key: string]: Array<{ "name": string; "version": string;