Skip to content

chore(cli): export from index.js#18999

Merged
mergify[bot] merged 4 commits intomasterfrom
epolon/cli-function
Feb 17, 2022
Merged

chore(cli): export from index.js#18999
mergify[bot] merged 4 commits intomasterfrom
epolon/cli-function

Conversation

@iliapolo
Copy link
Copy Markdown
Contributor

As a preparation for bundling, extract the entire CLI script into a function and export it from index.js.
This will allow the future bundler to simply bundle index.js and preserve all current exports for programatic usage.

Note that deep imports will still not work after bundling, but thats ok since those imports are considered private and should not have been used.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Feb 16, 2022

@iliapolo iliapolo requested a review from a team February 16, 2022 21:21
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Feb 16, 2022
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Feb 16, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Feb 17, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 6f270d6 into master Feb 17, 2022
@mergify mergify bot deleted the epolon/cli-function branch February 17, 2022 10:26
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Feb 17, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 776bf72
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
As a preparation for bundling, extract the entire CLI script into a function and export it from `index.js`. 
This will allow the future bundler to simply bundle `index.js` and preserve all current exports for programatic usage. 

Note that deep imports will still not work after bundling, but thats ok since those imports are considered private and should not have been used. 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS. package/tools Related to AWS CDK Tools or CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants