Skip to content

Commit 2575c6a

Browse files
committed
add in-repo-addons to generated tsconfig.json
1 parent 89d761c commit 2575c6a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

blueprints/ember-cli-typescript/files/tsconfig.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
"baseUrl": ".",
1010
"paths": {
1111
"<%= dasherizedPackageName %>/tests/*": ["tests/*"],
12-
"<%= dasherizedPackageName %>/*": ["app/*"]
12+
"<%= dasherizedPackageName %>/*": [
13+
"app/*"<%
14+
inRepoAddons.forEach(function(path) { %>,
15+
"<%= path %>/app/*"<%
16+
}) %>
17+
]
1318
}
1419
},
1520
"exclude": [

blueprints/ember-cli-typescript/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ module.exports = {
2626
}
2727
},
2828

29+
locals() {
30+
return {
31+
inRepoAddons: (this.project.pkg['ember-addon'] || {}).paths || []
32+
};
33+
},
34+
2935
normalizeEntityName() {
3036
// Entity name is optional right now, creating this hook avoids an error.
3137
},

0 commit comments

Comments
 (0)