Skip to content

Commit 598a191

Browse files
authored
chore: tegg v3 (#125)
1 parent 43f6c73 commit 598a191

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

hello-tegg/app/biz/HelloService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
ContextProto,
32
AccessLevel,
3+
SingletonProto,
44
} from '@eggjs/tegg';
55

6-
@ContextProto({
6+
@SingletonProto({
77
accessLevel: AccessLevel.PUBLIC,
88
})
99
export class HelloService {

hello-tegg/package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"scripts": {
66
"start": "egg-scripts start",
77
"stop": "egg-scripts stop",
8-
"dev": "ets && egg-bin dev",
9-
"debug": "ets && egg-bin debug",
10-
"test-local": "ets && egg-bin test",
8+
"dev": "egg-bin dev",
9+
"debug": "egg-bin debug",
10+
"test-local": "egg-bin test",
1111
"test": "npm run lint -- --fix && npm run test-local",
12-
"cov": "ets && egg-bin cov",
12+
"cov": "egg-bin cov",
1313
"tsc": "tsc -p tsconfig.json",
1414
"ci": "npm run lint && npm run cov && npm run tsc",
1515
"lint": "eslint .",
@@ -20,19 +20,18 @@
2020
},
2121
"license": "MIT",
2222
"dependencies": {
23-
"@eggjs/tegg": "^1.6.4",
24-
"@eggjs/tegg-config": "^1.3.3",
25-
"@eggjs/tegg-controller-plugin": "^1.7.5",
26-
"@eggjs/tegg-eventbus-plugin": "^1.5.5",
27-
"@eggjs/tegg-plugin": "^1.5.5",
23+
"@eggjs/tegg": "^3.2.1",
24+
"@eggjs/tegg-controller-plugin": "^3.2.1",
25+
"@eggjs/tegg-plugin": "^3.2.1",
26+
"@eggjs/tsconfig": "^1.2.0",
27+
"@eggjs/tegg-config": "^3.1.0",
2828
"egg": "^3.9.1",
2929
"egg-scripts": "^2.17.0"
3030
},
3131
"devDependencies": {
32-
"@eggjs/tsconfig": "^1.2.0",
3332
"@types/mocha": "^10.0.1",
3433
"@types/node": "^16.18.10",
35-
"egg-bin": "^5.10.0",
34+
"egg-bin": "^6.0.0",
3635
"egg-mock": "^5.4.0",
3736
"eslint": "^8.30.0",
3837
"eslint-config-egg": "^12.1.0",

0 commit comments

Comments
 (0)