Adornis/typescript

Path mappings in README

Closed this issue · 3 comments

The limitation with 'leading slash imports' has been lifted: microsoft/TypeScript#13730

Might be nice to adjust this in the readme.

yorrd commented

so you don't need those mappings anymore at all and we should just remove the section? That sounds amazing, like TypeScript is actually listening to what people need 😉

Sorry, not at my big machine right now.

You would still need a mapping, something like this:

{
  "compilerOptions": {
        "baseUrl": ".",
        "paths": {
            "/*": ["./src/*"]
        }
    }
}

You can see more examples in the pull request:
https://github.com/Microsoft/TypeScript/pull/27980/files#diff-8e6145708a8af4240cddde29dac8cd68

yorrd commented

It seems like Meteor imports are completely fine without mapping those paths. I'll just remove this for simplicity from the readme because it doesn't seem specific to the package. If you disagree, let me know!

Thanks for bringing this up!