diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index fec11d6c2..36e15a54c 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -7,4 +7,14 @@ on: jobs: commitlint: - uses: openedx/.github/.github/workflows/commitlint.yml@master + runs-on: ubuntu-20.04 + steps: + - name: Check out repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: remove tsconfig.json # see issue https://github.com/conventional-changelog/commitlint/issues/3256 + run: | + rm tsconfig.json + - name: Check commits + uses: wagoid/commitlint-github-action@v5 diff --git a/config/jest.config.js b/config/jest.config.js index 716c0e10c..f9837eb56 100644 --- a/config/jest.config.js +++ b/config/jest.config.js @@ -1,6 +1,5 @@ const path = require('path'); const fs = require('fs'); -const { jsWithTs: tsjPreset } = require('ts-jest/presets'); const presets = require('../lib/presets'); @@ -40,6 +39,6 @@ module.exports = { configFile: presets.babel.resolvedFilepath, }, ], - ...tsjPreset.transform, + '^.+\\.[tj]sx?$': path.resolve(__dirname, '../node_modules/.bin/ts-jest'), }, }; diff --git a/package.json b/package.json index 720aaf69c..9efaa9ba1 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,6 @@ "source-map-loader": "^4.0.1", "ts-jest": "^26.5.0", "style-loader": "3.3.3", - "ts-jest": "^26.5.0", "typescript": "^4.9.4", "url-loader": "4.1.1", "webpack": "5.88.2",