This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(deps): add Typescript v5 beta support * add typescript@5 to peerDependencies * add ts@5 beta support * chore(lock): update lock file * docs(changelog): release 1.4.0-next.1 [skip ci] * fix: update to typescript v5 * Regenerate lockfile * Fix typescript not finding the same file with different extensions typescript-eslint/typescript-eslint#5457 (comment) * Update developer utilities * Update test dependencies * Update typescript * Apparently entries in the package-lock.json are now prefixed with node_modules/ * Update backwards compatibility test, ts-jest dropped support for TypeScript 3 in v28 * Add backwards compatibility test for TypeScript 4 * Use older dependencies so that we don't have different versions of TypeScript inside node_modules * Try to make types compatible with TypeScript 3, 4 and 5 * ci(ga): remove extra deps from TS v3 BC check --------- Co-authored-by: Alex Malkevich <[email protected]> * ci(ga): revert back semantic-release versions * ci(ga): fix TS v3 BC check * chore(deps): update semantic-release to latest version * docs(changelog): release 1.4.0-next.2 [skip ci] --------- Co-authored-by: Profesor08 <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Silas Rech <[email protected]>
- Loading branch information
1 parent
d32fd22
commit cb25875
Showing
9 changed files
with
7,893 additions
and
7,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- name: "Format check" | ||
cmd: "npm run format:check" | ||
- name: "Unit tests" | ||
cmd: "npm run test" | ||
- name: "Build" | ||
cmd: "npm run build" | ||
- name: 'Format check' | ||
cmd: 'npm run format:check' | ||
- name: 'Unit tests' | ||
cmd: 'npm run test' | ||
- name: 'Build' | ||
cmd: 'npm run build' | ||
name: '${{ matrix.name }}' | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
|
@@ -44,27 +44,51 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- name: "Test with Eslint v7" | ||
- name: 'Test with Eslint v7' | ||
cmd: | | ||
npm i eslint@^7 @typescript-eslint/parser@^4 @typescript-eslint/eslint-plugin@^4 && \ | ||
npm i eslint@^7 \ | ||
@typescript-eslint/parser@^4 \ | ||
@typescript-eslint/eslint-plugin@^4 | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"eslint\": {" \ | ||
-e "\"@typescript-eslint/parser\": {" \ | ||
-e "\"@typescript-eslint/eslint-plugin\": {" | ||
build: true | ||
- name: "Test with Eslint v6" | ||
-e "\"node_modules/eslint\": {" \ | ||
-e "\"node_modules/@typescript-eslint/parser\": {" \ | ||
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {" | ||
test: npm run test | ||
build: npm run build | ||
- name: 'Test with Eslint v6' | ||
cmd: | | ||
npm i eslint@^6 @typescript-eslint/parser@^3 @typescript-eslint/eslint-plugin@^3 && \ | ||
npm i eslint@^6 \ | ||
@typescript-eslint/parser@^3 \ | ||
@typescript-eslint/eslint-plugin@^3 | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"eslint\": {" \ | ||
-e "\"@typescript-eslint/parser\": {" \ | ||
-e "\"@typescript-eslint/eslint-plugin\": {" | ||
build: true | ||
- name: "Test with Typescript v3.7.5" | ||
-e "\"node_modules/eslint\": {" \ | ||
-e "\"node_modules/@typescript-eslint/parser\": {" \ | ||
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {" | ||
test: npm run test | ||
build: npm run build | ||
- name: 'Test with Typescript v4' | ||
cmd: | | ||
npm i typescript@3.7.5 && \ | ||
npm i typescript@^4 | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"typescript\": {" | ||
-e "\"node_modules/typescript\": {" | ||
test: npm run test | ||
build: npm run build | ||
- name: 'Test with Typescript v3.7.5' | ||
cmd: | | ||
npm i -D jest@~27.0.0 \ | ||
ts-jest@~27.0.0 \ | ||
@types/jest@~27.0.0 \ | ||
@types/node@^16.0.0 \ | ||
@typescript-eslint/[email protected] \ | ||
@typescript-eslint/[email protected] \ | ||
eslint@~8.0.0 \ | ||
--force | ||
npm i [email protected] --force | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"node_modules/typescript\": {" \ | ||
-e "\"node_modules/jest\": {" \ | ||
-e "\"node_modules/ts-jest\": {" | ||
test: BC_MODE=1 npm run test | ||
build: false | ||
name: '[BC] ${{ matrix.name }}' | ||
steps: | ||
|
@@ -81,7 +105,8 @@ jobs: | |
- name: Install BC deps | ||
run: ${{ matrix.cmd }} | ||
- name: Unit tests | ||
run: npm run test | ||
if: matrix.test | ||
run: ${{ matrix.test }} | ||
- name: Build | ||
if: matrix.build | ||
run: npm run build | ||
run: ${{ matrix.build }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
const BC_MODE = !!process.env.BC_MODE; | ||
|
||
module.exports = { | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
}, | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
isolatedModules: true, | ||
}, | ||
], | ||
}, | ||
testRegex: './tests/.+\\.test\\.ts$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], | ||
moduleNameMapper: { | ||
'@eslint/eslintrc/universal': '@eslint/eslintrc/dist/eslintrc-universal.cjs', | ||
}, | ||
moduleNameMapper: BC_MODE | ||
? { | ||
'@eslint/eslintrc/universal': | ||
'@eslint/eslintrc/dist/eslintrc-universal.cjs', | ||
} | ||
: undefined, | ||
}; |
Oops, something went wrong.