Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Mar 19, 2021

The yaml-cfn library is used as an implementation detail of
cloudformation-include, aws-cdk, decdk, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.


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

The `yaml-cfn` library is used as an implementation detail of
`cloudformation-include`, `aws-cdk`, `decdk`, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.
@rix0rrr rix0rrr requested a review from a team March 19, 2021 15:57
@rix0rrr rix0rrr self-assigned this Mar 19, 2021
@gitpod-io
Copy link

gitpod-io bot commented Mar 19, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 19, 2021
Comment on lines -29 to -48
"java": {
"package": "software.amazon.awscdk.yaml.cfn",
"maven": {
"groupId": "software.amazon.awscdk",
"artifactId": "cdk-yaml-cfn"
}
},
"dotnet": {
"namespace": "Amazon.CDK.Yaml.Cfn",
"packageId": "Amazon.CDK.Yaml.Cfn",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
"distName": "aws-cdk.yaml-cfn",
"module": "aws_cdk.yaml_cfn",
"classifiers": [
"Framework :: AWS CDK",
"Framework :: AWS CDK :: 1"
]
}
Copy link
Contributor

@nija-at nija-at Mar 23, 2021

Choose a reason for hiding this comment

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

Do we need to manually deprecate this pkg in all non-npm package managers?

@mergify
Copy link
Contributor

mergify bot commented Mar 24, 2021

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
Copy link
Contributor

mergify bot commented Mar 24, 2021

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
Collaborator

AWS CodeBuild CI Report

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

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

@mergify
Copy link
Contributor

mergify bot commented Mar 24, 2021

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 182685d into master Mar 24, 2021
@mergify mergify bot deleted the huijbers/un-jsii-yamlcfn branch March 24, 2021 17:14
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Mar 24, 2021
The `yaml-cfn` library is used as an implementation detail of
`cloudformation-include`, `aws-cdk`, `decdk`, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
skinny85 added a commit that referenced this pull request Mar 25, 2021
…atement outside a module"

The bundling done in #13699 is somehow only putting the TypeScript files in the resulting NPM bundle,
and thus causing the above error (from Node trying to execute TypeScript).

This reverts commit 41a2b2e from PR #13699.
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Mar 31, 2021
…atement outside a module"

The bundling done in aws#13699 is somehow only putting the TypeScript files in the resulting NPM bundle,
and thus causing the above error (from Node trying to execute TypeScript).

This reverts commit 41a2b2e from PR aws#13699.
rix0rrr added a commit that referenced this pull request Apr 1, 2021
The `yaml-cfn` library is used as an implementation detail of
`cloudformation-include`, `aws-cdk`, `decdk`, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Apr 6, 2021
The `yaml-cfn` library is used as an implementation detail of
`cloudformation-include`, `aws-cdk`, `decdk`, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.

----

The previous version of this PR (#13699) had to be reverted (b1ffd33), because of a bug in NPM
that causes `.npmignore` files in symlinked, bundled dependencies to be ignored.

This in turn caused undesired `.ts` files to be bundled, which caused `ts-node`
to exit with an error.

Introduce a new `cdk-postpack` tool which will strip files that NPM *should* have
ignored from the generated tarball, and add some verification to the `pack.sh` script
to make sure we don't accidentally bundle `.ts` files.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
The `yaml-cfn` library is used as an implementation detail of
`cloudformation-include`, `aws-cdk`, `decdk`, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…atement outside a module"

The bundling done in aws#13699 is somehow only putting the TypeScript files in the resulting NPM bundle,
and thus causing the above error (from Node trying to execute TypeScript).

This reverts commit 41a2b2e from PR aws#13699.
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
The `yaml-cfn` library is used as an implementation detail of
`cloudformation-include`, `aws-cdk`, `decdk`, and the monopackages.

Un-jsii it and bundle it into the framework packages that need it.

Does not need to be accessed over jsii and does not need to be exposed
in the monopackages.

----

The previous version of this PR (aws#13699) had to be reverted (aws@b1ffd33), because of a bug in NPM
that causes `.npmignore` files in symlinked, bundled dependencies to be ignored.

This in turn caused undesired `.ts` files to be bundled, which caused `ts-node`
to exit with an error.

Introduce a new `cdk-postpack` tool which will strip files that NPM *should* have
ignored from the generated tarball, and add some verification to the `pack.sh` script
to make sure we don't accidentally bundle `.ts` files.

----

*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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants