@cdktn/provider-project 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +27 -27
- package/API.md +247 -441
- package/CLAUDE.md +12 -13
- package/README.md +3 -3
- package/lib/cdktf-config.js +38 -5
- package/lib/copyright-headers.js +7 -2
- package/lib/customized-license.js +3 -1
- package/lib/deprecate-packages.js +2 -2
- package/lib/force-release.js +2 -1
- package/lib/github-issues.js +2 -1
- package/lib/index.d.ts +5 -2
- package/lib/index.js +77 -19
- package/lib/package-info.d.ts +1 -1
- package/lib/package-info.js +1 -1
- package/lib/provider-upgrade.js +5 -5
- package/lib/readme.js +2 -1
- package/lib/scripts/check-for-upgrades.js +2 -1
- package/lib/scripts/should-release.js +2 -1
- package/node_modules/jsonfile/package.json +1 -1
- package/node_modules/jsonfile/utils.js +4 -0
- package/package.json +47 -40
- package/pnpm-workspace.yaml +6 -0
package/.jsii
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"fs-extra": "^10.1.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"constructs": "^10.
|
|
16
|
-
"projen": "^0.
|
|
15
|
+
"constructs": "^10.5.0",
|
|
16
|
+
"projen": "^0.101.20"
|
|
17
17
|
},
|
|
18
18
|
"dependencyClosure": {
|
|
19
19
|
"constructs": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"stability": "stable"
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://github.com/cdktn-io/cdktn-provider-project.git",
|
|
91
|
-
"jsiiVersion": "5.9.
|
|
91
|
+
"jsiiVersion": "5.9.48 (build 82cdda0)",
|
|
92
92
|
"license": "MPL-2.0",
|
|
93
93
|
"metadata": {
|
|
94
94
|
"jsii": {
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
"hasDefaultInterfaces": true
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
"tscRootDir": "src"
|
|
99
|
+
"tscRootDir": "/home/runner/work/cdktn-provider-project/cdktn-provider-project/src"
|
|
100
100
|
},
|
|
101
101
|
"name": "@cdktn/provider-project",
|
|
102
102
|
"readme": {
|
|
103
|
-
"markdown": "# The Future of Terraform CDK\n\n> [!IMPORTANT]\n>\n> [OCF](https://the-ocf.org/) - [github.com/open-constructs](https://github.com/open-constructs) has stepped up to fork under the new name of [CDK Terrain - cdktn.io](http://cdktn.io)\n\n---\n\n# Terraform CDK Provider Project\n\nA project template for [projen](https://projen.io) to create repositories for prebuilt provider packages for [CDK Terrain](https://cdktn.io).\n\n## Usage\n\nThe provider repos are entirely auto generated from the configuration contained in this repo here. There's no manual interaction necessary, except for creating the initial repository - using this repo. The `cdktn get` command is executed as part of the build pipeline in Github Actions. These jobs are executed on a schedule. Hence, new provider changes will be picked up automatically.\n\n### Creating a new provider\n\n> [!NOTE]\n> Only Offical Terraform Providers or Hashicorp partner Terraform Poviders will be accepted for pre-built provider generation.\n\nAdd a new repository [over here](https://github.com/cdktn-io/cdktn-repository-manager).\n\nIn the newly created repository, all we need is a `.projenrc.js` file like this:\n\n```js\nconst { CdktnProviderProject } = require('@cdktn/provider-project');\nconst { Semver } = require('projen');\n\nconst project = new CdktnProviderProject({\n terraformProvider: \"aws@~> 2.0\"\n});\n\nproject.synth();\n```\n\nAdjust the `terraformProvider` attribute as required and run the following commands:\n\n```\nnpm install @cdktn/provider-project@latest\nnpx projen\
|
|
103
|
+
"markdown": "# The Future of Terraform CDK\n\n> [!IMPORTANT]\n>\n> [OCF](https://the-ocf.org/) - [github.com/open-constructs](https://github.com/open-constructs) has stepped up to fork under the new name of [CDK Terrain - cdktn.io](http://cdktn.io)\n\n---\n\n# Terraform CDK Provider Project\n\nA project template for [projen](https://projen.io) to create repositories for prebuilt provider packages for [CDK Terrain](https://cdktn.io).\n\n## Usage\n\nThe provider repos are entirely auto generated from the configuration contained in this repo here. There's no manual interaction necessary, except for creating the initial repository - using this repo. The `cdktn get` command is executed as part of the build pipeline in Github Actions. These jobs are executed on a schedule. Hence, new provider changes will be picked up automatically.\n\n### Creating a new provider\n\n> [!NOTE]\n> Only Offical Terraform Providers or Hashicorp partner Terraform Poviders will be accepted for pre-built provider generation.\n\nAdd a new repository [over here](https://github.com/cdktn-io/cdktn-repository-manager).\n\nIn the newly created repository, all we need is a `.projenrc.js` file like this:\n\n```js\nconst { CdktnProviderProject } = require('@cdktn/provider-project');\nconst { Semver } = require('projen');\n\nconst project = new CdktnProviderProject({\n terraformProvider: \"aws@~> 2.0\"\n});\n\nproject.synth();\n```\n\nAdjust the `terraformProvider` attribute as required and run the following commands:\n\n```\nnpm install @cdktn/provider-project@latest\nnpx projen\npnpm install\n```\n\nThis will generate an entire repository ready to be published, including Github Workflows for publishing NPM, Pypi and maven packages. The only thing which is needed to be set manually are the tokens for these registries:\n\n- `NPM_TOKEN`\n- `TWINE_PASSWORD`\n- `TWINE_USERNAME`\n- `MAVEN_GPG_PRIVATE_KEY`\n- `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`\n- `MAVEN_PASSWORD`\n- `MAVEN_USERNAME`\n\n### Updating an existing Provider\n\nCommit and push the required changes to this repository here and wait for the auto-release to happen. Once released, you can run the following commands in the target provider repository:\n\n```\nnpm install @cdktn/provider-project@latest\nnpx projen\npnpm install\n```\n\nCommit, push and check for the auto-released version.\n\n## Development\n\nWhatever needs to be changed in the downstream [provider repositories](https://github.com/cdktn-io/cdktn-repository-manager) should be done via the [code definitions](./src/index.ts) here.\n\nFor local development, [pnpm link](https://pnpm.io/cli/link) might be quite helpful for testing.\n"
|
|
104
104
|
},
|
|
105
105
|
"repository": {
|
|
106
106
|
"type": "git",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
"locationInModule": {
|
|
128
128
|
"filename": "src/index.ts",
|
|
129
|
-
"line":
|
|
129
|
+
"line": 137
|
|
130
130
|
},
|
|
131
131
|
"parameters": [
|
|
132
132
|
{
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"kind": "class",
|
|
141
141
|
"locationInModule": {
|
|
142
142
|
"filename": "src/index.ts",
|
|
143
|
-
"line":
|
|
143
|
+
"line": 136
|
|
144
144
|
},
|
|
145
145
|
"name": "CdktnProviderProject",
|
|
146
146
|
"symbolId": "src/index:CdktnProviderProject"
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"kind": "interface",
|
|
159
159
|
"locationInModule": {
|
|
160
160
|
"filename": "src/index.ts",
|
|
161
|
-
"line":
|
|
161
|
+
"line": 39
|
|
162
162
|
},
|
|
163
163
|
"name": "CdktnProviderProjectOptions",
|
|
164
164
|
"properties": [
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"immutable": true,
|
|
171
171
|
"locationInModule": {
|
|
172
172
|
"filename": "src/index.ts",
|
|
173
|
-
"line":
|
|
173
|
+
"line": 42
|
|
174
174
|
},
|
|
175
175
|
"name": "cdktnVersion",
|
|
176
176
|
"type": {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"immutable": true,
|
|
186
186
|
"locationInModule": {
|
|
187
187
|
"filename": "src/index.ts",
|
|
188
|
-
"line":
|
|
188
|
+
"line": 47
|
|
189
189
|
},
|
|
190
190
|
"name": "constructsVersion",
|
|
191
191
|
"type": {
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"immutable": true,
|
|
201
201
|
"locationInModule": {
|
|
202
202
|
"filename": "src/index.ts",
|
|
203
|
-
"line":
|
|
203
|
+
"line": 41
|
|
204
204
|
},
|
|
205
205
|
"name": "terraformProvider",
|
|
206
206
|
"type": {
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"immutable": true,
|
|
217
217
|
"locationInModule": {
|
|
218
218
|
"filename": "src/index.ts",
|
|
219
|
-
"line":
|
|
219
|
+
"line": 46
|
|
220
220
|
},
|
|
221
221
|
"name": "cdktfVersion",
|
|
222
222
|
"optional": true,
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"immutable": true,
|
|
235
235
|
"locationInModule": {
|
|
236
236
|
"filename": "src/index.ts",
|
|
237
|
-
"line":
|
|
237
|
+
"line": 74
|
|
238
238
|
},
|
|
239
239
|
"name": "creationYear",
|
|
240
240
|
"optional": true,
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"immutable": true,
|
|
253
253
|
"locationInModule": {
|
|
254
254
|
"filename": "src/index.ts",
|
|
255
|
-
"line":
|
|
255
|
+
"line": 84
|
|
256
256
|
},
|
|
257
257
|
"name": "deprecationDate",
|
|
258
258
|
"optional": true,
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"immutable": true,
|
|
269
269
|
"locationInModule": {
|
|
270
270
|
"filename": "src/index.ts",
|
|
271
|
-
"line":
|
|
271
|
+
"line": 48
|
|
272
272
|
},
|
|
273
273
|
"name": "forceMajorVersion",
|
|
274
274
|
"optional": true,
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
"immutable": true,
|
|
287
287
|
"locationInModule": {
|
|
288
288
|
"filename": "src/index.ts",
|
|
289
|
-
"line":
|
|
289
|
+
"line": 57
|
|
290
290
|
},
|
|
291
291
|
"name": "githubNamespace",
|
|
292
292
|
"optional": true,
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"immutable": true,
|
|
305
305
|
"locationInModule": {
|
|
306
306
|
"filename": "src/index.ts",
|
|
307
|
-
"line":
|
|
307
|
+
"line": 79
|
|
308
308
|
},
|
|
309
309
|
"name": "isDeprecated",
|
|
310
310
|
"optional": true,
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
"immutable": true,
|
|
322
322
|
"locationInModule": {
|
|
323
323
|
"filename": "src/index.ts",
|
|
324
|
-
"line":
|
|
324
|
+
"line": 88
|
|
325
325
|
},
|
|
326
326
|
"name": "licensee",
|
|
327
327
|
"optional": true,
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"immutable": true,
|
|
339
339
|
"locationInModule": {
|
|
340
340
|
"filename": "src/index.ts",
|
|
341
|
-
"line":
|
|
341
|
+
"line": 69
|
|
342
342
|
},
|
|
343
343
|
"name": "mavenGroupId",
|
|
344
344
|
"optional": true,
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
"immutable": true,
|
|
356
356
|
"locationInModule": {
|
|
357
357
|
"filename": "src/index.ts",
|
|
358
|
-
"line":
|
|
358
|
+
"line": 65
|
|
359
359
|
},
|
|
360
360
|
"name": "mavenOrg",
|
|
361
361
|
"optional": true,
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
"immutable": true,
|
|
373
373
|
"locationInModule": {
|
|
374
374
|
"filename": "src/index.ts",
|
|
375
|
-
"line":
|
|
375
|
+
"line": 52
|
|
376
376
|
},
|
|
377
377
|
"name": "namespace",
|
|
378
378
|
"optional": true,
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
"immutable": true,
|
|
390
390
|
"locationInModule": {
|
|
391
391
|
"filename": "src/index.ts",
|
|
392
|
-
"line":
|
|
392
|
+
"line": 61
|
|
393
393
|
},
|
|
394
394
|
"name": "nugetOrg",
|
|
395
395
|
"optional": true,
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
"abstract": true,
|
|
402
402
|
"docs": {
|
|
403
403
|
"default": "- false",
|
|
404
|
-
"remarks": "
|
|
404
|
+
"remarks": "The `release_pypi` job keeps whatever runner the project is configured for.\nPyPI, unlike npm, does not restrict trusted publishing to GitHub-hosted\nrunners -- trust is bound to the workflow ref, and the OIDC token is minted\nfrom ACTIONS_ID_TOKEN_REQUEST_URL, which is available on any runner with\n`id-token: write`.",
|
|
405
405
|
"see": "https://docs.pypi.org/trusted-publishers/",
|
|
406
406
|
"stability": "stable",
|
|
407
407
|
"summary": "Use trusted publishing for publishing to pypi.org Needs to be pre-configured on PyPI to work."
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"immutable": true,
|
|
410
410
|
"locationInModule": {
|
|
411
411
|
"filename": "src/index.ts",
|
|
412
|
-
"line":
|
|
412
|
+
"line": 103
|
|
413
413
|
},
|
|
414
414
|
"name": "pypiTrustedPublishing",
|
|
415
415
|
"optional": true,
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
"immutable": true,
|
|
426
426
|
"locationInModule": {
|
|
427
427
|
"filename": "src/index.ts",
|
|
428
|
-
"line":
|
|
428
|
+
"line": 40
|
|
429
429
|
},
|
|
430
430
|
"name": "useCustomGithubRunner",
|
|
431
431
|
"optional": true,
|
|
@@ -437,6 +437,6 @@
|
|
|
437
437
|
"symbolId": "src/index:CdktnProviderProjectOptions"
|
|
438
438
|
}
|
|
439
439
|
},
|
|
440
|
-
"version": "0.
|
|
441
|
-
"fingerprint": "
|
|
440
|
+
"version": "0.9.0",
|
|
441
|
+
"fingerprint": "tDVDeEvius3rZq3aAxCyJVASgCHcrErtJtrjG96ZtjU="
|
|
442
442
|
}
|