Skip to content

Commit

Permalink
chore: dependency check commons package
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Nov 17, 2023
1 parent 47c8ec5 commit cfde9d8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 22 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-depcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Depcheck
on:
merge_group:
types: [checks_requested]
pull_request:
branches:
- main
jobs:
depcheck:
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform
env:
CHECKPOINT_DISABLE: "1"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
package: [
# cdktf,
# cdktf-cli,
# "@cdktf/hcl2cdk",
# "@cdktf/hcl2json",
# "@cdktf/provider-schema",
# "@cdktf/provider-generator",
"@cdktf/commons",
# "@cdktf/cli-core",
]

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: "Run Depcheck"
run: |
npx lerna exec --scope '${{ matrix.package }}' -- npx -y depcheck --ignores="@types/*,jsii,jsii-pacmak,jsii-srcmak,jsii-docgen,yoga-layout-prebuilt,eslint,jest,tsc-files,typescript,esbuild,esbuild-jest,graphology-types"
14 changes: 12 additions & 2 deletions packages/@cdktf/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,36 @@
"name": "HashiCorp",
"url": "https://hashicorp.com"
},
"keywords": ["cdk", "cdktf", "terraform"],
"keywords": [
"cdk",
"cdktf",
"terraform"
],
"license": "MPL-2.0",
"dependencies": {
"@sentry/node": "^7.80.0",
"cdktf": "0.0.0",
"ci-info": "^3.9.0",
"codemaker": "^1.91.0",
"constructs": "^10.0.25",
"cross-spawn": "^7.0.3",
"follow-redirects": "^1.15.3",
"fs-extra": "^11.1.1",
"is-valid-domain": "^0.1.6",
"log4js": "^6.9.1",
"strip-ansi": "^6.0.1",
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/follow-redirects": "^1.14.4",
"@types/fs-extra": "^11.0.4",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react": "^7.33.2",
"jest": "^29.7.0",
"lint-staged": ">=10",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
Expand Down
20 changes: 0 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2329,28 +2329,13 @@
resolved "https://registry.yarnpkg.com/@types/detect-port/-/detect-port-1.3.5.tgz#deecde143245989dee0e82115f3caba5ee0ea747"
integrity sha512-Rf3/lB9WkDfIL9eEKaSYKc+1L/rNVYBjThk22JTqQw0YozXarX8YljFAz+HCoC6h4B4KwCMsBPZHaFezwT4BNA==

"@types/follow-redirects@^1.14.3":
version "1.14.3"
resolved "https://registry.yarnpkg.com/@types/follow-redirects/-/follow-redirects-1.14.3.tgz#1be9803ef23578e05daae9b25cc4119e2c79c6b1"
integrity sha512-VN4w0rKWI4DVySabR5/9P65nwcVEAr1taWFyYW3YR7rHYO/bOgG+LHpWfSzthPmCEfmawuXsMd4huQeSoc7jpg==
dependencies:
"@types/node" "*"

"@types/follow-redirects@^1.14.4":
version "1.14.4"
resolved "https://registry.yarnpkg.com/@types/follow-redirects/-/follow-redirects-1.14.4.tgz#ca054d72ef574c77949fc5fff278b430fcd508ec"
integrity sha512-GWXfsD0Jc1RWiFmMuMFCpXMzi9L7oPDVwxUnZdg89kDNnqsRfUKXEtUYtA98A6lig1WXH/CYY/fvPW9HuN5fTA==
dependencies:
"@types/node" "*"

"@types/fs-extra@^11.0.3":
version "11.0.3"
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-11.0.3.tgz#72c3a247c8dd5703c93d900c584e006476146866"
integrity sha512-sF59BlXtUdzEAL1u0MSvuzWd7PdZvZEtnaVkzX5mjpdWTJ8brG0jUqve3jPCzSzvAKKMHTG8F8o/WMQLtleZdQ==
dependencies:
"@types/jsonfile" "*"
"@types/node" "*"

"@types/fs-extra@^11.0.4":
version "11.0.4"
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-11.0.4.tgz#e16a863bb8843fba8c5004362b5a73e17becca45"
Expand Down Expand Up @@ -2710,11 +2695,6 @@
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==

"@types/uuid@^9.0.6":
version "9.0.6"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.6.tgz#c91ae743d8344a54b2b0c691195f5ff5265f6dfb"
integrity sha512-BT2Krtx4xaO6iwzwMFUYvWBWkV2pr37zD68Vmp1CDV196MzczBRxuEpD6Pr395HAgebC/co7hOphs53r8V7jew==

"@types/uuid@^9.0.7":
version "9.0.7"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.7.tgz#b14cebc75455eeeb160d5fe23c2fcc0c64f724d8"
Expand Down

0 comments on commit cfde9d8

Please sign in to comment.