Skip to content

Commit

Permalink
refactor: remove weekly cache pruning
Browse files Browse the repository at this point in the history
A fresh cache is 2212kB for 263 files so unlikely to become a problem.
  • Loading branch information
merceyz committed Feb 4, 2023
1 parent 9b5f65e commit 782532d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/setup-ts-execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ if (process.versions.pnp)

const resolveVirtual = process.versions.pnp ? require(`pnpapi`).resolveVirtual : undefined;

const weeksSinceUNIXEpoch = Math.floor(Date.now() / 604800000);

const cache = {
version: [esbuild.version, weeksSinceUNIXEpoch, process.versions.node].join(`\0`),
version: `${esbuild.version}\0${process.versions.node}`,
files: new Map(),
isDirty: false,
};
Expand Down

0 comments on commit 782532d

Please sign in to comment.