Skip to content

Commit d287452

Browse files
committed
Use 'dummy' for types location in addons.
1 parent cc51710 commit d287452

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Use TypeScript in your Ember 2.x and 3.x apps!
3232

3333
## Setup and Configuration
3434

35-
To install the addon, just run:
35+
To install or upgrade the addon, just run:
3636

3737
```
3838
ember install ember-cli-typescript@latest

blueprints/ember-cli-typescript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = {
7070
// Return custom tokens to be replaced in your files.
7171
return {
7272
__app_name__(options) {
73-
return options.dasherizedModuleName;
73+
return options.inAddon ? 'dummy' : options.dasherizedModuleName;
7474
},
7575
};
7676
},

node-tests/blueprints/ember-cli-typescript-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('Acceptance: ember-cli-typescript generator', function() {
7676

7777
expect(tsconfigJson.include).to.deep.equal(['addon', 'tests']);
7878

79-
const projectTypes = file('types/my-addon/index.d.ts');
79+
const projectTypes = file('types/dummy/index.d.ts');
8080
expect(projectTypes).to.exist;
8181
expect(projectTypes).not.to.include(ects.APP_DECLARATIONS);
8282
});

0 commit comments

Comments
 (0)