forked from tonaljs/tonal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
83 lines (83 loc) · 2.19 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"name": "tonal-workspace",
"private": true,
"workspaces": [
"packages/*"
],
"main": "packages/tonal/dist/index.js",
"module": "packages/tonal/dist/index.es.js",
"types": "packages/tonal/dist/index.d.ts",
"scripts": {
"lerna": "lerna bootstrap",
"lerna:publish": "yarn test:ci && lerna publish",
"build": "yarn build:clean && yarn lerna && yarn build:packages && yarn build:browser",
"build:packages": "lerna exec --parallel -- rollup -c=../../rollup.config.js",
"build:browser": "cd packages/tonal && rollup -c=rollup.browser.config.js",
"build:clean": "lerna exec --parallel -- rimraf dist/",
"format": "prettier --write packages/**/*.ts",
"test": "jest --coverage",
"lint": "tslint --fix --project tsconfig.json -t codeFrame 'packages/**/*.ts'",
"test:ci": "yarn format && yarn lint && yarn build && yarn test -- --no-cache"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"packages/**/*.ts": [
"prettier --write",
"tslint -p tsconfig.json"
]
},
"jest": {
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"testRegex": "test.ts$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/",
".*\\.d\\.ts"
],
"coverageThreshold": {
"global": {
"branches": 85,
"functions": 90,
"lines": 95,
"statements": 95
}
},
"collectCoverageFrom": [
"**/*.ts"
]
},
"devDependencies": {
"@types/jest": "^26.0.10",
"@types/node": "^14.0.0",
"husky": "^4.2.5",
"jest": "^26.0.1",
"jest-config": "^26.0.1",
"lerna": "^3.21.0",
"lint-staged": "^10.2.2",
"lodash": "^4.17.15",
"prettier": "^2.0.5",
"rimraf": "^3.0.0",
"rollup": "^2.10.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-filesize": "^9.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.1",
"rollup-plugin-typescript2": "^0.27.1",
"ts-jest": "^26.0.0",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.0.0"
}
}