Skip to content

Commit b0a4816

Browse files
authored
Merge pull request #714 from constructive-io/devin/1770955071-pgpm-update-cache-clean
fix(pgpm): clear update cache after pgpm update using @inquirerer/utils@3.2.3
2 parents 49049ad + 0704cbe commit b0a4816

5 files changed

Lines changed: 2643 additions & 7365 deletions

File tree

graphql/codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@babel/types": "^7.28.6",
5959
"@constructive-io/graphql-server": "workspace:^",
6060
"@constructive-io/graphql-types": "workspace:^",
61-
"@inquirerer/utils": "^3.2.0",
61+
"@inquirerer/utils": "^3.2.3",
6262
"@pgpmjs/core": "workspace:^",
6363
"ajv": "^8.17.1",
6464
"deepmerge": "^4.3.1",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@constructive-io/graphql-explorer": "workspace:^",
5151
"@constructive-io/graphql-server": "workspace:^",
5252
"@constructive-io/knative-job-service": "workspace:^",
53-
"@inquirerer/utils": "^3.2.0",
53+
"@inquirerer/utils": "^3.2.3",
5454
"@pgpmjs/core": "workspace:^",
5555
"@pgpmjs/logger": "workspace:^",
5656
"@pgpmjs/server-utils": "workspace:^",

pgpm/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"ts-node": "^10.9.2"
4646
},
4747
"dependencies": {
48-
"@inquirerer/utils": "^3.2.0",
48+
"@inquirerer/utils": "^3.2.3",
4949
"@pgpmjs/core": "workspace:^",
5050
"@pgpmjs/env": "workspace:^",
5151
"@pgpmjs/logger": "workspace:^",

pgpm/cli/src/commands/update.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { clearUpdateCache } from '@inquirerer/utils';
12
import { Logger } from '@pgpmjs/logger';
23
import { CLIOptions, Inquirerer, cliExitWithError, getPackageJson } from 'inquirerer';
34
import { spawn } from 'child_process';
@@ -65,6 +66,7 @@ export default async (
6566

6667
try {
6768
await runNpmInstall(pkgName, registry);
69+
clearUpdateCache('pgpm');
6870
const latest = await fetchLatestVersion(pkgName);
6971
if (latest) {
7072
log.success(`Successfully updated ${pkgName} to version ${latest}.`);

0 commit comments

Comments
 (0)