Skip to content

Commit 1dfb156

Browse files
committed
README: simplify browserify example/docs.
1 parent 58acec0 commit 1dfb156

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Use TypeScript in your Ember 2.x and 3.x apps!
2525
* [Fixing the Ember Data `error TS2344` problem](#fixing-the-ember-data-error-ts2344-problem)
2626
* [Class property setup errors](#class-property-setup-errors)
2727
* [Type definitions outside `node_modules/@types`](#type-definitions-outside-node_modulestypes)
28-
* [ember-browserify](#ember-browserify)
2928
* [ember-cli-mirage](#ember-cli-mirage)
3029
* ["TypeScript is complaining about multiple copies of the same types"](#typescript-is-complaining-about-multiple-copies-of-the-same-types)
3130
* [Just tell me how to fix it](#just-tell-me-how-to-fix-it)
@@ -439,14 +438,14 @@ By default, the TypeScript compiler loads all type definitions found in `node_mo
439438
import MyModule from 'npm:my-module';
440439
```
441440

442-
If `my-module` has types, you will not be able to resolve them this way by default. You can add a simple tweak to your `tsconfig.json` to resolve the types correctly, however, mapping `npm:my-module/*` to `node_modules/my-module/*`.
441+
If `my-module` has types, you will not be able to resolve them this way by default. You can add a simple tweak to your `tsconfig.json` to resolve the types correctly, however, mapping `npm:*` to `node_modules/*`.
443442

444443
```json
445444
{
446445
"compilerOptions": {
447446
"paths": {
448447
"my-app-name/*": ["app/*"],
449-
"npm:my-module/*": ["node_modules/my-module/*"]
448+
"npm:*": ["node_modules/*"]
450449
}
451450
}
452451
}

0 commit comments

Comments
 (0)