Skip to content

Commit

Permalink
fix: resolve issue with license not being overriden (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
agdimech authored Jun 13, 2024
1 parent 6fc5ca1 commit cc4f95a
Show file tree
Hide file tree
Showing 20 changed files with 92 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/aws-arch/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cdk-graph-plugin-diagram/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cdk-graph-plugin-threat-composer/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cdk-graph/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cloudscape-react-ts-website/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/identity/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/infrastructure/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/monorepo/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions packages/monorepo/src/components/nx-configurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,9 @@ export class NxConfigurator extends Component implements INxProjectCore {
*/
private _addLicenses() {
[this.project, ...this.project.subprojects]
.filter(
(p) =>
!this.licenseOptions?.disableDefaultLicenses &&
p.components.find((c) => c instanceof License) === undefined
)
.filter(() => !this.licenseOptions?.disableDefaultLicenses)
.forEach((p) => {
p.tryRemoveFile("LICENSE");
if (!this.licenseOptions) {
new License(p, {
spdx: DEFAULT_LICENSE,
Expand Down
Loading

0 comments on commit cc4f95a

Please sign in to comment.