Skip to content

Commit 7c3796e

Browse files
committed
chore(deps): generate NOTICES.txt for third party licenses in each package
1 parent 4f8c0c9 commit 7c3796e

File tree

20 files changed

+4624
-54
lines changed

20 files changed

+4624
-54
lines changed

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"build-and-package": "lerna run --scope 'cdktf*' --scope @cdktf/* build,package && tools/collect-dist.sh",
77
"build": "lerna run --scope 'cdktf*' --scope @cdktf/* build",
88
"format": "prettier --cache --write .",
9+
"prepackage": "yarn copy-license:scoped && yarn copy-license:unscoped",
910
"package": "lerna run package && tools/collect-dist.sh",
1011
"package:python": "lerna run package:python && tools/collect-dist.sh",
1112
"package:java": "lerna run package:java && tools/collect-dist.sh",
@@ -46,7 +47,10 @@
4647
"generate-docs:api": "yarn && yarn build && yarn package && cd tools/documentation-generation && git clean -dfx . && yarn && yarn docs && npx prettier --write ../../website/docs/cdktf/api-reference/**",
4748
"generate-docs:translations": "cd tools/documentation-code-snippets && yarn && yarn update-snippets && cd ../../ && yarn run format",
4849
"generate-docs": "yarn generate-docs:translations && yarn generate-docs:api",
49-
"generate-function-bindings": "cd tools/generate-function-bindings && yarn && yarn fetch-metadata && yarn generate"
50+
"generate-function-bindings": "cd tools/generate-function-bindings && yarn && yarn fetch-metadata && yarn generate",
51+
"generate-license-notices": "lerna run --scope 'cdktf*' --scope @cdktf/* generate-license-notices",
52+
"copy-license:scoped": "lerna exec --scope @cdktf/* cp ../../../LICENSE LICENSE.txt",
53+
"copy-license:unscoped": "lerna exec --scope 'cdktf*' cp ../../LICENSE LICENSE.txt"
5054
},
5155
"workspaces": {
5256
"packages": [

packages/@cdktf/cli-core/NOTICES.txt

+1,607
Large diffs are not rendered by default.

packages/@cdktf/cli-core/package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "CDK for Terraform CLI Core, meant for internal use only",
55
"scripts": {
66
"build": "tsc",
7+
"postbuild": "yarn generate-license-notices -- --ci",
78
"watch": "tsc -w",
89
"watch-preserve-output": "tsc -w --preserveWatchOutput",
910
"lint": "eslint . --ext .ts,.tsx",
@@ -14,7 +15,8 @@
1415
"test:ci": "yarn lint && jest --ci",
1516
"jest-watch": "jest --watch",
1617
"package": "./package.sh",
17-
"dist-clean": "rm -rf dist"
18+
"dist-clean": "rm -rf dist",
19+
"generate-license-notices": "npx generate-license-file --input package.json --output NOTICES.txt --overwrite"
1820
},
1921
"main": "src/lib/index.js",
2022
"types": "src/lib/index.d.ts",
@@ -38,11 +40,11 @@
3840
"license": "MPL-2.0",
3941
"dependencies": {
4042
"@cdktf/commons": "0.0.0",
43+
"@cdktf/hcl-tools": "0.0.0",
4144
"@cdktf/hcl2cdk": "0.0.0",
4245
"@cdktf/hcl2json": "0.0.0",
43-
"@cdktf/provider-schema": "0.0.0",
4446
"@cdktf/node-pty-prebuilt-multiarch": "0.10.1-pre.11",
45-
"@cdktf/hcl-tools": "0.0.0",
47+
"@cdktf/provider-schema": "0.0.0",
4648
"@sentry/node": "7.118.0",
4749
"archiver": "5.3.2",
4850
"cdktf": "0.0.0",
@@ -160,6 +162,7 @@
160162
"eslint-config-prettier": "8.10.0",
161163
"eslint-plugin-react": "7.35.0",
162164
"eslint-plugin-react-hooks": "4.6.2",
165+
"generate-license-file": "3.4.0",
163166
"jest": "29.7.0",
164167
"nock": "13.5.4",
165168
"react": "18.3.1",

packages/@cdktf/commons/NOTICES.txt

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
This file was generated with the generate-license-file npm package!
2+
https://www.npmjs.com/package/generate-license-file
3+
4+
The following npm package may be included in this product:
5+
6+
7+
8+
This package contains the following license and notice below:
9+
10+
(The MIT License)
11+
12+
Copyright (c) 2011-2017 JP Richardson
13+
14+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
15+
(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
16+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
17+
furnished to do so, subject to the following conditions:
18+
19+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20+
21+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
22+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
23+
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25+
26+
-----------
27+
28+
The following npm package may be included in this product:
29+
30+
31+
32+
This package contains the following license and notice below:
33+
34+
The MIT License (MIT)
35+
36+
Copyright (c) 2010-2020 Robert Kieffer and other contributors
37+
38+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
39+
40+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
41+
42+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43+
44+
-----------
45+
46+
This file was generated with the generate-license-file npm package!
47+
https://www.npmjs.com/package/generate-license-file

packages/@cdktf/commons/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"description": "CDK for Terraform Common utilities",
88
"scripts": {
99
"build": "tsc",
10+
"postbuild": "yarn generate-license-notices -- --ci",
1011
"watch": "tsc -w",
1112
"watch-preserve-output": "tsc -w --preserveWatchOutput",
1213
"lint": "eslint . --ext .ts,.tsx",
@@ -17,7 +18,8 @@
1718
"test:ci": "yarn lint && jest --ci",
1819
"jest-watch": "jest --watch",
1920
"package": "./package.sh",
20-
"dist-clean": "rm -rf dist"
21+
"dist-clean": "rm -rf dist",
22+
"generate-license-notices": "npx generate-license-file --input package.json --output NOTICES.txt --overwrite"
2123
},
2224
"main": "src/index.js",
2325
"types": "src/index.d.ts",
@@ -58,6 +60,7 @@
5860
"eslint-config-prettier": "8.10.0",
5961
"eslint-plugin-react-hooks": "4.6.2",
6062
"eslint-plugin-react": "7.35.0",
63+
"generate-license-file": "3.4.0",
6164
"jest": "29.7.0",
6265
"lint-staged": "13.3.0",
6366
"ts-jest": "29.2.4",
@@ -105,4 +108,4 @@
105108
"lint-staged": {
106109
"src/**/*.{ts,tsx}": "tsc-files ambient.d.ts --noEmit"
107110
}
108-
}
111+
}

packages/@cdktf/hcl-tools/NOTICES.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This file was generated with the generate-license-file npm package!
2+
https://www.npmjs.com/package/generate-license-file
3+
4+
This file was generated with the generate-license-file npm package!
5+
https://www.npmjs.com/package/generate-license-file

packages/@cdktf/hcl-tools/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
"types": "src/index.d.ts",
1919
"scripts": {
2020
"build": "tsc && ./build-go.sh",
21+
"postbuild": "yarn generate-license-notices -- --ci",
2122
"watch": "tsc -w",
2223
"watch-preserve-output": "tsc -w --preserveWatchOutput",
2324
"test": "jest",
2425
"test:ci": "jest --ci",
2526
"jest-watch": "jest --watch",
2627
"package": "./package.sh",
2728
"dist-clean": "rm -rf dist",
28-
"prebuild": "./prebuild.sh"
29+
"prebuild": "./prebuild.sh",
30+
"generate-license-notices": "npx generate-license-file --input package.json --output NOTICES.txt --overwrite"
2931
},
3032
"publishConfig": {
3133
"access": "public"
@@ -41,6 +43,7 @@
4143
"devDependencies": {
4244
"@types/jest": "^29.5.10",
4345
"@types/node": "^20.9.4",
46+
"generate-license-file": "3.4.0",
4447
"jest": "^29.7.0",
4548
"ts-jest": "^29.1.1",
4649
"typescript": "^5.3.2"

packages/@cdktf/hcl2cdk/NOTICES.txt

+196
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
This file was generated with the generate-license-file npm package!
2+
https://www.npmjs.com/package/generate-license-file
3+
4+
The following npm package may be included in this product:
5+
6+
7+
8+
This package contains the following license and notice below:
9+
10+
# Blue Oak Model License
11+
12+
Version 1.0.0
13+
14+
## Purpose
15+
16+
This license gives everyone as much permission to work with
17+
this software as possible, while protecting contributors
18+
from liability.
19+
20+
## Acceptance
21+
22+
In order to receive this license, you must agree to its
23+
rules. The rules of this license are both obligations
24+
under that agreement and conditions to your license.
25+
You must not do anything with this software that triggers
26+
a rule that you cannot or will not follow.
27+
28+
## Copyright
29+
30+
Each contributor licenses you to do everything with this
31+
software that would otherwise infringe that contributor's
32+
copyright in it.
33+
34+
## Notices
35+
36+
You must ensure that everyone who gets a copy of
37+
any part of this software from you, with or without
38+
changes, also gets the text of this license or a link to
39+
<https://blueoakcouncil.org/license/1.0.0>.
40+
41+
## Excuse
42+
43+
If anyone notifies you in writing that you have not
44+
complied with [Notices](#notices), you can keep your
45+
license by taking all practical steps to comply within 30
46+
days after the notice. If you do not do so, your license
47+
ends immediately.
48+
49+
## Patent
50+
51+
Each contributor licenses you to do everything with this
52+
software that would otherwise infringe any patent claims
53+
they can license or become able to license.
54+
55+
## Reliability
56+
57+
No contributor can revoke this license.
58+
59+
## No Liability
60+
61+
***As far as the law allows, this software comes as is,
62+
without any warranty or condition, and no contributor
63+
will be liable to anyone for any damages related to this
64+
software or this license, under any kind of legal claim.***
65+
66+
-----------
67+
68+
The following npm package may be included in this product:
69+
70+
71+
72+
This package contains the following license and notice below:
73+
74+
MIT License
75+
76+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
77+
78+
Permission is hereby granted, free of charge, to any person obtaining
79+
a copy of this software and associated documentation files (the
80+
"Software"), to deal in the Software without restriction, including
81+
without limitation the rights to use, copy, modify, merge, publish,
82+
distribute, sublicense, and/or sell copies of the Software, and to
83+
permit persons to whom the Software is furnished to do so, subject to
84+
the following conditions:
85+
86+
The above copyright notice and this permission notice shall be
87+
included in all copies or substantial portions of the Software.
88+
89+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
90+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
91+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
92+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
93+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
94+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
95+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
96+
97+
-----------
98+
99+
The following npm package may be included in this product:
100+
101+
102+
103+
This package contains the following license and notice below:
104+
105+
The ISC License
106+
107+
Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors
108+
109+
Permission to use, copy, modify, and/or distribute this software for any
110+
purpose with or without fee is hereby granted, provided that the above
111+
copyright notice and this permission notice appear in all copies.
112+
113+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
114+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
115+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
116+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
117+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
118+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
119+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
120+
121+
-----------
122+
123+
The following npm package may be included in this product:
124+
125+
126+
127+
This package contains the following license and notice below:
128+
129+
The ISC License
130+
131+
Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors
132+
133+
Permission to use, copy, modify, and/or distribute this software for any
134+
purpose with or without fee is hereby granted, provided that the above
135+
copyright notice and this permission notice appear in all copies.
136+
137+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
138+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
139+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
140+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
141+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
142+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
143+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
144+
145+
-----------
146+
147+
The following npm package may be included in this product:
148+
149+
150+
151+
This package contains the following license and notice below:
152+
153+
The ISC License
154+
155+
Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
156+
157+
Permission to use, copy, modify, and/or distribute this software for any
158+
purpose with or without fee is hereby granted, provided that the above
159+
copyright notice and this permission notice appear in all copies.
160+
161+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
162+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
163+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
164+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
165+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
166+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
167+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
168+
169+
-----------
170+
171+
The following npm package may be included in this product:
172+
173+
174+
175+
This package contains the following license and notice below:
176+
177+
The ISC License
178+
179+
Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
180+
181+
Permission to use, copy, modify, and/or distribute this software for any
182+
purpose with or without fee is hereby granted, provided that the above
183+
copyright notice and this permission notice appear in all copies.
184+
185+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
186+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
187+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
188+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
189+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
190+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
191+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
192+
193+
-----------
194+
195+
This file was generated with the generate-license-file npm package!
196+
https://www.npmjs.com/package/generate-license-file

0 commit comments

Comments
 (0)