Skip to content

fix: update tsconfigs and package.json #56

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

Merged
merged 2 commits into from
Dec 18, 2019

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Dec 16, 2019

Update the tsconfig and npm scripts:

  1. tsconfig.test.json is removed, all the tests are compiled using tsconfig.json, the same config to releasing
  2. Update prepublishOnly trait to call yarn build, this way we will build both browser distrubution and Node distribution
  3. In clients folder, ts compile output goes to types/ and dist/, artifacts are no longer generated in place. So remove-XX and clean-XX scripts are updated accordingly
  4. Add runtime assertion: all the generated client should be run on at lease Node 8 runtime
  5. Add browser key that informs bundler to use browser specific dependencies when bundling for browsers
  6. Add modules key to provide a ESModule enter point
  7. Add sideEffects key makes webpack generate smaller bundles in ESModule

Related to aws/aws-sdk-js-v3#555
/cc @srchase @trivikr

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

"remove-documentation": "rimraf ./docs",
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./shared/*.js && rimraf ./types/*.js",
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./shared/*.js.map && rimraf ./types/*.js.map",
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./lib/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./lib was removed in #51. those get pulled in from @aws-sdk/smithy-client

"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./shared/*.js && rimraf ./types/*.js",
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./shared/*.js.map && rimraf ./types/*.js.map",
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./lib/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js",
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./lib/*.js.map && rimraf ./models/*.js.map && rimraf ./protocols/*.js.map",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above. ./lib was removed.

@AllanZhengYP AllanZhengYP requested a review from srchase December 17, 2019 22:23
@kstich kstich merged commit 02e5cb5 into smithy-lang:master Dec 18, 2019
srchase pushed a commit that referenced this pull request Mar 23, 2023
* Add a region provider abstraction

* Add node region providers

* Add a generic provider package

* Add a node default region provider

* Refactor credential providers to use generic provider package
srchase pushed a commit that referenced this pull request Jun 16, 2023
* Add a region provider abstraction

* Add node region providers

* Add a generic provider package

* Add a node default region provider

* Refactor credential providers to use generic provider package
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