We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc77a8 commit 92b6076Copy full SHA for 92b6076
packages/aws-cdk/lib/cli/display-version.ts
@@ -38,7 +38,8 @@ export class VersionCheckTTL {
38
39
public async hasExpired(): Promise<boolean> {
40
try {
41
- const lastCheckTime = (await fs.stat(this.file)).mtimeMs;
+ // const lastCheckTime = (await fs.stat(this.file)).mtimeMs;
42
+ const lastCheckTime = fs.statSync(this.file).mtimeMs;
43
const today = new Date().getTime();
44
45
if ((today - lastCheckTime) / 1000 > this.ttlSecs) { // convert ms to sec
0 commit comments