-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renamed lib to src for core-http #7507
Conversation
Looks like you missed a rename:
|
There looks to be another tsconfig file it uses: |
03c252b
to
0bae72c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one small change request
"es/src/**/*.js.map", | ||
"es/src/**/*.d.ts", | ||
"es/src/**/*.d.ts.map", | ||
"src/**/*.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's drop this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this line "src/**/*.ts",
Is that all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're actually supposed to include the TS files in the package:
https://azure.github.io/azure-sdk/typescript_design.html#ts-config-sourceMap
Be sure to include your original TypeScript sources in the package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, I think the src TS files just need to be added back as per the guidelines (for sourcemap support).
Hmm this is interesting since I know we don't do this consistently. I thought the generated maps contained the file contents? |
I don't know more than a high-level of how source maps work, but I do notice that the rollup version of the source map includes a sourcesContent member, whereas the source maps for the ES (module) output does not. So I imagine the TS files are at least needed for the modularized output. I don't know how hard it would be to change that. |
Looks like we can fix this with the compiler option |
Opened the issue - #7544 |
Awesome, I think we're good to go on this one then. |
No description provided.