Skip to content

Commit 5fb79a7

Browse files
authored
Merge pull request #4 from serverless-tencent/mutil-region
增加多地域部署能力
2 parents 8ab12b5 + 07217b1 commit 5fb79a7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@serverless/tencent-tornado",
33
"description": "Tencent Cloud Python Tornado Serverless Component",
4-
"version": "0.0.1",
4+
"version": "1.0.0",
55
"main": "serverless.js",
66
"publishConfig": {
77
"access": "public"
@@ -24,12 +24,6 @@
2424
},
2525
"author": "Dfounderliu",
2626
"license": "Apache-2.0",
27-
"husky": {
28-
"hooks": {
29-
"pre-commit": "lint-staged",
30-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
31-
}
32-
},
3327
"lint-staged": {
3428
"**/*.{js,ts,tsx}": [
3529
"eslint --fix --ext .js,.ts,.tsx .",

serverless.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ class TencentTornado extends Component {
6969

7070
async remove(inputs = {}) {
7171
const Framework = await this.load('@serverless/tencent-framework')
72-
await Framework.remove(inputs)
72+
await Framework.remove({
73+
...inputs,
74+
...{
75+
framework: 'tornado'
76+
}
77+
})
7378
this.state = {}
7479
await this.save()
7580
return {}

0 commit comments

Comments
 (0)