Skip to content

Commit

Permalink
chore: use more aggressive cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Zavacky committed Dec 14, 2021
1 parent 70fd06f commit 994b117
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion packages/addon-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
},
"dependencies": {
"@embroider/shared-internals": "^0.48.1",
"calculate-cache-key-for-tree": "^2.0.0",
"ember-auto-import": "^2.2.0",
"semver": "^7.3.5"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/addon-shim/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
PackageInfo,
} from '@embroider/shared-internals';
import buildFunnel from 'broccoli-funnel';
import cacheKeyForTree from 'calculate-cache-key-for-tree';
import type { Node } from 'broccoli-node-api';
import { satisfies } from 'semver';

Expand Down Expand Up @@ -141,7 +140,7 @@ export function addonV1Shim(directory: string, options: ShimOptions = {}) {
},

cacheKeyForTree(this: AddonInstance, treeType: string): string {
return cacheKeyForTree(treeType, this);
return `embroider-addon-shim/${treeType}/${directory}`;
},

isDevelopingAddon(this: AddonInstance) {
Expand Down
5 changes: 0 additions & 5 deletions types/calculate-cache-key-for-tree/index.d.ts

This file was deleted.

0 comments on commit 994b117

Please sign in to comment.