Skip to content

Commit

Permalink
Sort files path before generating unique cache key (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Feb 26, 2020
1 parent ad2a712 commit 1807537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Hashing based on https://github.com/eslint/eslint/blob/cf38d0d939b62f3670cdd59f0
*/
const getTsConfigCachePath = (files, tsConfigPath) => path.join(
cacheLocation,
`tsconfig.${murmur(`${pkg.version}_${nodeVersion}_${stringify({files, tsConfigPath: tsConfigPath})}`).result().toString(36)}.json`
`tsconfig.${murmur(`${pkg.version}_${nodeVersion}_${stringify({files: files.sort(), tsConfigPath: tsConfigPath})}`).result().toString(36)}.json`
);

const makeTSConfig = (tsConfig, tsConfigPath, files) => {
Expand Down

0 comments on commit 1807537

Please sign in to comment.