YousefED / YousefED/typescript-json-schema
problem with typescript base package resolution
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 332
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
first of all thanks for this library - the others who claim to do the same have driven me crazy!
I have a minor problem with using the standard es2015 libraries delivered with TypeScript though.
I have to write the exact name of the library file as included in the TypeScript package like this:
tsconfig.json
"compilerOptions": {
"target": "es5",
"experimentalDecorators": true,
"lib": [
"lib.es2015.d.ts" << this is the exact file name
]
}
Just for the record - the file in question can be found in node_modules/typescript/lib/lib.es2015.d.ts.
But the correct syntax would be like this:
tsconfig.json
"compilerOptions": {
"target": "es5",
"experimentalDecorators": true,
"lib": [
"es2015"
]
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown tsconfig.json, comparing "lib.es2015.d.ts" with the expected "es2015" identifier and the TypeScript package under node_modules/typescript/lib. Locate the package-resolution entry point and existing tests, then verify that the shorter library name resolves while the current syntax continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100