Skip to content

Commit 9f422fc

Browse files
committed
refactor: improve code quality
1 parent 887db31 commit 9f422fc

File tree

17 files changed

+230
-859
lines changed

17 files changed

+230
-859
lines changed

.github/workflows/chore.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
- uses: pnpm/[email protected]
16+
with:
17+
version: 7.0.0
1518
- uses: actions/setup-node@v2
1619
with:
17-
node-version: 14
18-
- run: npm ci
20+
node-version: 16
21+
cache: 'pnpm'
22+
- run: pnpm install
1923
- run: npm run build
20-
- run: npm test

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ npm install @aidbox/node-server-sdk
1818
or
1919
```npm
2020
yarn add @aidbox/node-server-sdk
21-
```
21+
```
22+
23+
24+
## Example
25+
Please check [example](./example) folder.

package.json

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
{
22
"name": "@aidbox/node-server-sdk",
3-
"version": "2.0.19",
4-
"main": "build/src/index.js",
3+
"version": "2.1.1",
4+
"main": "build/index.js",
55
"scripts": {
6-
"build": "tsc -b src",
7-
"watch": "tsc -b -w src",
6+
"build": "tsc",
87
"fix": "npm run fix:src && npm run fix:example",
98
"fix:src": "find src -name *.ts | xargs prettier -w",
10-
"fix:example": "find example/src -name *.ts | xargs prettier -w",
11-
"test": "mocha"
9+
"fix:example": "find example/src -name *.ts | xargs prettier -w"
1210
},
1311
"engines": {
1412
"node": ">=16"
1513
},
1614
"keywords": [],
1715
"author": "",
18-
"license": "ISC",
16+
"license": "MIT",
1917
"devDependencies": {
2018
"@types/debug": "^4.1.6",
2119
"@types/koa": "^2.13.4",
2220
"@types/koa-bodyparser": "^4.3.2",
2321
"@types/koa-router": "^7.4.4",
2422
"@types/node": "^16.10.2",
25-
"@types/ramda": "^0.27.44",
26-
"@types/superagent": "^4.1.12",
27-
"mocha": "^9.0.3",
2823
"prettier": "^2.3.2",
29-
"sinon": "^11.1.2",
30-
"source-map-support": "^0.5.19",
3124
"supertest": "^6.1.4",
25+
"tslib": "^2.4.0",
3226
"typescript": "^4.3.5"
3327
},
3428
"dependencies": {
@@ -38,14 +32,13 @@
3832
"dotenv": "^16.0.1",
3933
"koa": "^2.13.4",
4034
"koa-bodyparser": "4.3.0",
41-
"koa-router": "^10.1.1",
42-
"remeda": "0.0.32"
35+
"koa-router": "^10.1.1"
4336
},
4437
"directories": {
4538
"example": "example"
4639
},
4740
"files": [
48-
"build/src"
41+
"build"
4942
],
5043
"repository": {
5144
"type": "git",
@@ -55,10 +48,5 @@
5548
"url": "https://github.com/Aidbox/node-server-sdk/issues"
5649
},
5750
"homepage": "https://github.com/Aidbox/node-server-sdk#readme",
58-
"description": "",
59-
"mocha": {
60-
"require": [
61-
"source-map-support/register"
62-
]
63-
}
51+
"description": ""
6452
}

0 commit comments

Comments
 (0)