Skip to content

Commit

Permalink
fix: incorrect cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 committed Sep 2, 2021
1 parent 3dd84c1 commit 2c0121a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const cachePath = findCacheDirectory({ name: 'ng-packagr' }) || tmpdir();

let ngPackagrVersion: string | undefined;
try {
ngPackagrVersion = require('../../../package.json').version;
ngPackagrVersion = require('../../package.json').version;
} catch {
// dev path
ngPackagrVersion = require('../../../../package.json').version;
ngPackagrVersion = require('../../../package.json').version;
}

export function generateKey(...valuesToConsider: string[]): string {
Expand Down

0 comments on commit 2c0121a

Please sign in to comment.