Skip to content

Commit

Permalink
fix: Clearing cache directory on each invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrydn committed Mar 19, 2024
1 parent b526564 commit 95b2c2a
Show file tree
Hide file tree
Showing 3 changed files with 548 additions and 32 deletions.
3 changes: 3 additions & 0 deletions lib/handlers.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import createDebug from 'debug';
import fs from 'fs';
import path from 'path';
import { rimrafSync } from 'rimraf'
import { fileURLToPath } from 'url';
import { load as tsImport } from 'ts-import';

Expand Down Expand Up @@ -72,3 +73,5 @@ export function runHandler(handler, event, context) {
return handler(event, context);
}
}

rimrafSync(cacheDir);
Loading

0 comments on commit 95b2c2a

Please sign in to comment.