Skip to content

Commit

Permalink
Merge PR nblockchain#142 from Mersho/tsconfig-squashed
Browse files Browse the repository at this point in the history
* commitlint: build in strict mode.
  • Loading branch information
knocte authored and Mersho committed Jan 31, 2024
2 parents 25673af + be44243 commit c2324b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ jobs:
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
- name: Install yarn
- name: Install yarn & packages
run: |
npm install --global yarn
yarn add --dev jest typescript ts-jest @types/jest
yarn
- name: Print versions
run: |
git --version
Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
- name: Install yarn
- name: Install yarn & packages
run: |
npm install --global yarn
yarn add --dev jest typescript ts-jest @types/jest ts-node
yarn
- name: Run typescript compiler
run: npx tsc
- name: Print versions
Expand All @@ -143,6 +143,7 @@ jobs:
npm --version
npx commitlint --version
yarn --version
npx tsc --version
- name: Run tests to validate our plugins
run: yarn jest --config jest.config.ts

Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"dependencies": {
"cosmiconfig": "8.0.0"
"cosmiconfig": "8.0.0"
},
"devDependencies": {
"@commitlint/types": "^17.4.4",
"@types/jest": "^29.5.11",
"@types/node": "^20.6.2",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"strict": true,
"lib": ["ES2021"],
// TODO: explore replacing the below setting with just target:ES2015
"downlevelIteration": true
Expand Down

0 comments on commit c2324b8

Please sign in to comment.