Skip to content

Commit 25db1d0

Browse files
authored
perf: add typescript support (#26)
1 parent 4b7a7ec commit 25db1d0

30 files changed

+6186
-19009
lines changed

.github/workflows/pull_requests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
id: coverage
2828
with:
2929
output: report-markdown
30+
test-script: npm test -- --ci --json --coverage --testLocationInResults --outputFile=report.json
3031
- name: Publish Coverage
3132
uses: marocchino/sticky-pull-request-comment@v2
3233
with:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.15.0
1+
v20.11.0

.releaserc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/npm", { "npmPublish": false }],
7+
[
8+
"@semantic-release/git",
9+
{
10+
"assets": ["package.json", "package-lock.json"],
11+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12+
}
13+
],
14+
[
15+
"@semantic-release/github",
16+
{
17+
"successComment": false,
18+
"failTitle": false
19+
}
20+
]
21+
]
22+
}

config/webpack.common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = {
4646
loader: 'file-loader',
4747
},
4848
],
49+
noParse: [require.resolve('typescript/lib/typescript.js')],
4950
},
5051
resolve: {
5152
modules: ['src', 'node_modules'],

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
coverageThreshold: {
1818
global: {
1919
statements: 63,
20-
branches: 60,
20+
branches: 50,
2121
functions: 63,
2222
lines: 61,
2323
},

0 commit comments

Comments
 (0)