@@ -28,7 +28,6 @@ module.exports = {
28
28
} ,
29
29
30
30
locals ( ) {
31
- let updatePathsForAddon = require ( 'ember-cli-typescript-blueprints/lib/utilities/update-paths-for-addon' ) ;
32
31
let inRepoAddons = ( this . project . pkg [ 'ember-addon' ] || { } ) . paths || [ ] ;
33
32
let hasMirage = 'ember-cli-mirage' in ( this . project . pkg . devDependencies || { } ) ;
34
33
let isAddon = this . project . isEmberCLIAddon ( ) ;
@@ -48,6 +47,8 @@ module.exports = {
48
47
return {
49
48
includes : JSON . stringify ( includes . map ( include => `${ include } /**/*` ) , null , 2 ) . replace ( / \n / g, '\n ' ) ,
50
49
pathsFor : dasherizedName => {
50
+ // We need to wait to use this module until `ember-cli-typescript-blueprints` has been installed
51
+ let updatePathsForAddon = require ( 'ember-cli-typescript-blueprints/lib/utilities/update-paths-for-addon' ) ;
51
52
let appName = isAddon ? 'dummy' : dasherizedName ;
52
53
let paths = {
53
54
[ `${ appName } /tests/*` ] : [ 'tests/*' ] ,
@@ -118,14 +119,13 @@ module.exports = {
118
119
// Entity name is optional right now, creating this hook avoids an error.
119
120
} ,
120
121
121
- afterInstall ( ) {
122
+ beforeInstall ( ) {
122
123
if ( this . project . isEmberCLIAddon ( ) ) {
123
124
this . _installPrecompilationHooks ( ) ;
124
125
}
125
126
126
127
let packages = [
127
- // TODO release blueprints@2 that emit `.js` files in `app/`
128
- // { name: 'ember-cli-typescript-blueprints', target: '^2.0.0' },
128
+ { name : 'ember-cli-typescript-blueprints' , target : '^2.0.0-beta.1' } ,
129
129
{ name : 'typescript' , target : 'latest' } ,
130
130
{ name : '@types/ember' , target : 'latest' } ,
131
131
{ name : '@types/rsvp' , target : 'latest' } ,
0 commit comments