-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #454 from NullVoxPopuli/remove-ember-test-waiters
Remove dual-package emit
- Loading branch information
Showing
14 changed files
with
16 additions
and
136 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,5 @@ | ||
'use strict'; | ||
|
||
const calculateCacheKeyForTree = require('calculate-cache-key-for-tree'); | ||
const { forceHighlander } = require('./force-highlander-addon'); | ||
|
||
module.exports = { | ||
name: require('./package').name, | ||
|
||
/** | ||
* Returns a stable cache key with the addon name appended | ||
* | ||
* Because this addon eventually forces highlander for both `@ember/test-waiters` | ||
* and `ember-test-waiters` we need to append the addon's name here; the end result | ||
* is that we get a different stable cache key, one for `@ember/test-waiters` and | ||
* another for `ember-test-waiters` | ||
* | ||
* The reason for this is that Embroider doesn't currently take into account the addon's | ||
* name when dealing with cache keys internally & as a result, it gets confused that | ||
* (seemingly) two different addons have the same cache key. This will eventually be fixed | ||
* in Embroider, but in the short-term we're implementing this here to account for this issue. | ||
* | ||
* @name cacheKeyForTree | ||
* @param {string} treeType | ||
* @returns {string} the stable cache key | ||
*/ | ||
cacheKeyForTree(treeType) { | ||
return `${calculateCacheKeyForTree(treeType, this)}-${this.name}`; | ||
}, | ||
|
||
included() { | ||
this._super.included.apply(this, arguments); | ||
forceHighlander(this.project); | ||
}, | ||
|
||
treeForAddon(tree) { | ||
/* | ||
We're intentionally not calling super here in order to correctly output | ||
multiple modules (@ember/test-helpers and ember-test-helpers). | ||
*/ | ||
let babel = this.addons.find((a) => a.name === 'ember-cli-babel'); | ||
|
||
return babel.transpileTree(tree); | ||
}, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters