Skip to content

Commit 58acec0

Browse files
committed
README: drop True Myth reference in favor of browserify details.
1 parent e1c777a commit 58acec0

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -431,32 +431,15 @@ Some common stumbling blocks for people switching to ES6 classes from the tradit
431431

432432
### Type definitions outside `node_modules/@types`
433433

434-
By default the typescript compiler loads up any type definitions found in `node_modules/@types`. If the type defs you need are not found here you can register a custom value in `paths` in the `tsconfig.json` file. For example, if you are using [True Myth], you'll need to follow that project's installation instructions (since it ships types in a special location to support both CommonJS and ES Modules):
435-
436-
[true myth]: https://github.com/chriskrycho/true-myth
437-
438-
```json
439-
{
440-
"compilerOptions": {
441-
"paths": {
442-
"my-app-name/*": ["app/*"],
443-
"true-myth/*": ["node_modules/true-myth/dist/types/src/*"]
444-
}
445-
}
446-
}
447-
```
448-
449-
### ember-browserify
450-
451-
If you're using [ember-browserify], you're used to writing imports like this:
434+
By default, the TypeScript compiler loads all type definitions found in `node_modules/@types`. If the type defs you need are not found there and are not supplied in the root of the package you're referencing, you can register a custom value in `paths` in the `tsconfig.json` file. For example, if you're using [ember-browserify], you're used to writing imports like this:
452435

453436
[ember-browserify]: https://github.com/ef4/ember-browserify
454437

455438
```js
456439
import MyModule from 'npm:my-module';
457440
```
458441

459-
If the `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:
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/*`.
460443

461444
```json
462445
{

0 commit comments

Comments
 (0)