Skip to content
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

Merged
merged 4 commits into from
Feb 26, 2020

Conversation

KarishmaGhiya
Copy link
Member

No description provided.

@xirzec
Copy link
Member

xirzec commented Feb 22, 2020

Looks like you missed a rename:

samples/node-sample.ts(6,27): error TS2307: Cannot find module '../lib/coreHttp'.

@xirzec
Copy link
Member

xirzec commented Feb 22, 2020

There looks to be another tsconfig file it uses: tsconfig.es.json

Copy link
Member

@xirzec xirzec left a 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",
Copy link
Member

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

Copy link
Member Author

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?

Copy link
Contributor

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.

Copy link
Contributor

@chradek chradek left a 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).

@xirzec
Copy link
Member

xirzec commented Feb 25, 2020

Hmm this is interesting since I know we don't do this consistently. I thought the generated maps contained the file contents?

@bterlson

@chradek
Copy link
Contributor

chradek commented Feb 25, 2020

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.

@xirzec
Copy link
Member

xirzec commented Feb 26, 2020

Looks like we can fix this with the compiler option inlineSources - can we open an issue to track moving to this instead of reshipping all source files?

@KarishmaGhiya
Copy link
Member Author

Opened the issue - #7544

@xirzec
Copy link
Member

xirzec commented Feb 26, 2020

Awesome, I think we're good to go on this one then.

@KarishmaGhiya KarishmaGhiya merged commit 5ac9ed0 into Azure:master Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants