Skip to content

Commit 60c8564

Browse files
committed
chore: update action
1 parent c20c890 commit 60c8564

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: checkout
15-
uses: actions/checkout@v2
16-
17-
- name: setup-deno
18-
uses: denolib/setup-deno@v2.1.0
14+
- uses: actions/checkout@v2
15+
- uses: denolib/setup-deno@v2.1.0
16+
- run: mkdir -p dist
1917

2018
- name: build
21-
run: deno bundle --config tsconfig.json --importmap importmap.json --unstable mod.ts
19+
run: deno bundle --config tsconfig.json --importmap importmap.json --unstable mod.ts dist/wom.js

‎importmap.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"deno-connectors/": "https://raw.githubusercontent.com/nativecode-dev/deno-connectors/v0.1.2/",
55
"dent/": "https://raw.githubusercontent.com/nativecode-dev/dent/v0.5.0/",
66
"std/": "https://deno.land/std@0.62.0/",
7-
"transformer": "https://jspm.dev/class-transformer@0.2.3",
8-
"validator": "https://jspm.dev/class-validator@0.8.5"
7+
"transformer": "https://cdn.skypack.dev/class-transformer",
8+
"validator": "https://cdn.skypack.dev/typescript-class-validator"
99
}
1010
}

‎womapi/API/Server.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { plainToClass } from "transformer";
1+
import transformer from "transformer";
22

33
import { Lincoln, LoggerType } from "dent/lincoln/mod.ts";
44
import { App, Injectable, Inject, container } from "alosaur/mod.ts";
@@ -39,7 +39,7 @@ export class Server {
3939
this.app.useTransform({
4040
type: "body",
4141
getTransform: (transform: any, body: any) =>
42-
plainToClass(transform, body),
42+
transformer(transform, body),
4343
});
4444

4545
return await this.app.listen({

0 commit comments

Comments
 (0)