pkg: terraform-cdk (#2820)

* pkg: terraform-cdk

* fix: pin to node 18

Related: https://github.com/hashicorp/terraform-cdk/issues/2839
This commit is contained in:
David Flanagan 2023-08-17 23:49:52 +01:00 committed by GitHub
parent 0da6f671d0
commit b0ce1f771e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,27 @@
display-name: terraform-cdk
distributable:
url: https://registry.npmjs.org/cdktf-cli/-/cdktf-cli-{{version}}.tgz
strip-components: 1
versions:
github: hashicorp/terraform-cdk/tags
ignore: /-pre\./
provides:
- bin/cdktf
dependencies:
nodejs.org: "^18"
build:
dependencies:
classic.yarnpkg.com: "*"
script:
- mkdir -p "{{prefix}}"
- npm_config_build_from_source=true yarn install --modules-folder {{prefix}}/node_modules
- cp -r bundle/bin package.json {{prefix}}
test:
script: |
cdktf --version | grep {{version}}