Skip to content

Commit 64dc437

Browse files
committed
chore(release): ensure a copy of the license is included with published packages
1 parent a615295 commit 64dc437

File tree

10 files changed

+21
-10
lines changed

10 files changed

+21
-10
lines changed

package.json

Lines changed: 4 additions & 1 deletion
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",
@@ -47,7 +48,9 @@
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",
4950
"generate-function-bindings": "cd tools/generate-function-bindings && yarn && yarn fetch-metadata && yarn generate",
50-
"generate-license-notices": "lerna run --scope 'cdktf*' --scope @cdktf/* generate-license-notices"
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"
5154
},
5255
"workspaces": {
5356
"packages": [

packages/@cdktf/cli-core/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.yalc
33
yalc.lock
44
bundle
5-
!ambient.d.ts
5+
!ambient.d.ts
6+
LICENSE**

packages/@cdktf/commons/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.yalc
33
yalc.lock
44
bundle
5-
!ambient.d.ts
5+
!ambient.d.ts
6+
LICENSE**

packages/@cdktf/hcl-tools/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
**/*wasm.gz
66
tsconfig.tsbuildinfo
77
wasm.md
8-
!tsconfig.json
8+
!tsconfig.json
9+
LICENSE**

packages/@cdktf/hcl2cdk/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ tsconfig.tsbuildinfo
55
cdktf-convert-*
66
cdktf-provider*
77
!ambient.d.ts
8+
LICENSE**

packages/@cdktf/hcl2json/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
**/*wasm.gz
66
tsconfig.tsbuildinfo
77
wasm.md
8-
!tsconfig.json
8+
!tsconfig.json
9+
LICENSE**

packages/@cdktf/provider-generator/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ tsconfig.tsbuildinfo
55
edge-provider-bindings
66
cdktf-provider-generator-*.tgz
77
!test/generate-provider-tests.js
8-
!ambient.d.ts
8+
!ambient.d.ts
9+
LICENSE**

packages/@cdktf/provider-schema/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.yalc
33
yalc.lock
44
bundle
5-
!ambient.d.ts
5+
!ambient.d.ts
6+
LICENSE**

packages/cdktf-cli/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.yalc
33
yalc.lock
44
bundle
5-
!ambient.d.ts
5+
!ambient.d.ts
6+
LICENSE**

packages/cdktf/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
21
dist/
32
tsconfig.json
43
tsconfig.tsbuildinfo
54
.jsii
6-
!scripts/generate-documentation.js
5+
!scripts/generate-documentation.js
6+
LICENSE**

0 commit comments

Comments
 (0)