-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
56 lines (56 loc) · 1.63 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"name": "serverless-mono-example",
"version": "1.0.0",
"description": "Example repo on how to use yarn workspaces together with the serverless framework.",
"main": "index.js",
"repository": "git@github.com:tommedema/serverless-mono-example.git",
"author": "Tom Medema <tommedema@gmail.com>",
"license": "MIT",
"private": true,
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/sls-*/**"
]
},
"devDependencies": {
"husky": "^1.0.0-rc.13",
"lerna": "^3.1.4",
"lint-staged": "^7.2.2",
"prettier": "^1.14.2",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"typescript": "^3.0.1"
},
"scripts": {
"build": "tsc -b ./packages",
"watch": "tsc -w -b ./packages",
"test": "lerna run test --",
"deploy": "lerna run deploy --",
"lint": "tslint --fix --project ./packages/tsconfig.lint.json",
"prettier": "prettier --write --no-semi --single-quote",
"clean": "yarn run clean-dist && yarn run clean-output && yarn run clean-logs",
"clean-incl-deps": "yarn run clean && yarn run clean-deps",
"clean-output": "rm -fr output && rm -fr */**/output",
"clean-dist": "rm -fr packages/*/dist && rm -fr packages/*/.serverless",
"clean-deps": "rm -fr node_modules && rm -fr packages/*/node_modules && rm -f yarn.lock && rm -fr */**/yarn.lock",
"clean-logs": "rm -f *.log && rm -fr */**/*.log"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,json,css,md}": [
"yarn run prettier",
"git add"
],
"*.ts": [
"yarn run lint",
"git add"
]
}
}