Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit f443647

Browse files
chore: update scripts (#81)
* chore: use sls instead serverless in scripts * fix: set port for local dev to 4000 * fix: remove old husky script
1 parent d1a46fe commit f443647

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
"deploy:production": "export NODE_ENV=production && yarn deploy:env",
1010
"deploy:stage": "export NODE_ENV=stage && yarn deploy:env",
1111
"lint": "eslint src --ext ts,js --no-ignore --fix",
12-
"precommit": "lint-staged",
13-
"serve": "serverless offline start",
14-
"serve:watch": "nodemon -e js,ts,jsx,tsx -x serverless offline start",
15-
"tail:hello": "serverless logs --function hello --tail",
12+
"serve": "sls offline -P 4000",
13+
"serve:watch": "nodemon -e js,ts,jsx,tsx -x yarn serve",
14+
"tail:hello": "sls logs --function hello --tail",
1615
"test": "jest",
1716
"test:watch": "jest --watch",
18-
"build": "serverless webpack",
19-
"watch:hello": "serverless invoke local --watch --function hello --path fixtures/event.json"
17+
"build": "sls webpack",
18+
"watch:hello": "sls invoke local --watch --function hello --path fixtures/event.json"
2019
},
2120
"devDependencies": {
2221
"@babel/core": "7.6.0",

0 commit comments

Comments
 (0)