Skip to content

Commit c6e50c4

Browse files
committed
chore: update project setup
1 parent fa726b5 commit c6e50c4

5 files changed

Lines changed: 24 additions & 3 deletions

File tree

.github/workflows/qa.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
os:
4242
- ubuntu-latest
4343
node_version:
44+
- 25
45+
- 24
4446
- 18
4547
- 20
4648
- 22
@@ -62,4 +64,9 @@ jobs:
6264
- name: run build
6365
run: npm run build
6466
- name: run test
65-
run: npm test
67+
run: |
68+
if [ "${{ matrix.node_version }}" = "25" ]; then
69+
npm test -- --coverage
70+
else
71+
npm test
72+
fi

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ This package allows you to generate `Typescript` code for serializing and deseri
55

66
This package uses [TLB-Parser](https://github.com/ton-community/tlb-parser) to get AST of the scheme.
77

8+
[![npm @ton-community/tlb-codegen version](https://img.shields.io/npm/v/@ton-community/tlb-codegen)](https://www.npmjs.com/package/@ton-community/tlb-codegen)
9+
[![qa](https://github.com/ton-community/tlb-codegen/actions/workflows/qa.yml/badge.svg)](https://github.com/ton-community/tlb-codegen/actions/workflows/qa.yml)
10+
811
## Installation
912

1013
```bash

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const base = require('@ton/toolchain');
22

3-
module.exports = [...base, { ignores: ['test/generated_files*'] }];
3+
module.exports = [...base, { ignores: ['test/generated_files*', '*local*'] }];

jest.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ const config: Config = {
55
testEnvironment: 'node',
66
testMatch: ['**/*.spec.ts'],
77
preset: 'ts-jest',
8+
silent: false,
9+
coverageThreshold: {
10+
global: {
11+
statements: 91.06,
12+
branches: 82.69,
13+
functions: 93.25,
14+
lines: 91.64,
15+
},
16+
},
17+
coveragePathIgnorePatterns: ['test/', 'src/index.ts'],
18+
coverageReporters: ['json-summary', 'text', 'lcov'],
819
};
920

1021
export default config;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
3+
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
44
"module": "commonjs", /* Specify what module code is generated. */
55
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
66
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */

0 commit comments

Comments
 (0)