-
Notifications
You must be signed in to change notification settings - Fork 583
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
npm package is published in typescript #1436
Comments
The entry points for AWS SDK client packages are in each client package's aws-sdk-js-v3/clients/client-s3/package.json Lines 20 to 22 in 0c7f7ee
The TS code that you're seeing is the original TS source, which is important for sourcemap-enabled debugging because the sourcemap files point to the original source files so that IDE debuggers (and browser devtools) can allow developers to view, step into, and set breakpoints in the original source. But when you bundle this package into your app, only the JS files will be included. Yes, this is definitely confusing. IMHO, the AWS SDK should put its source files into a |
sure! thanks for the answer, I missed the dist folder! for the record, I was confused because after installing the sdk, my es5 check did not pass anymore, and when digging, I fall on the typescript files. I think I won't be the only one to have this problem 🤗 have a good week |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
npm package is published in typescript (at least s3 client)
SDK version number
1.0.0.gamma-5
Is the issue in the browser/Node.js/ReactNative?
npm
Expected behavior
npm published package should be in javascript + types
Additional context
client-S3 imported from node_modules must be transpiled with a loader such as ts-loader. It's ok from es6 to es5, but it's very uncommon from typescript to es5
I don't know if it is a bug or not, but I feel that publishing directly in typescript is not suitable for a lot of people
The text was updated successfully, but these errors were encountered: