/
package.json
115 lines (115 loc) · 3.28 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "ts-jest",
"version": "23.0.0",
"main": "index.js",
"types": "./dist/index.d.ts",
"description": "A preprocessor with sourcemap support to help use Typescript with Jest",
"scripts": {
"build": "cpx index.d.ts dist/ && tsc -p .",
"build:watch": "cpx index.d.ts dist/ && tsc -p . -w",
"test:nolint": "npm run clean-build && node scripts/tests.js",
"clean": "rimraf dist/**/* && rimraf tests/simple/coverage && rimraf tests/simple-async/coverage && rimraf tests/**/*/debug.txt && rimraf tests/**/node_modules",
"clean-build": "npm run clean && npm run build",
"pretest": "npm run tslint && npm run clean-build",
"test": "node scripts/tests.js",
"tslint": "tslint src/*.ts",
"doc": "doctoc .",
"prepublish": "npm run clean-build",
"precommit": "lint-staged",
"postcommit": "git reset",
"format": "prettier --single-quote --trailing-comma all --write \"{src,scripts,tests}/**/*.ts\" && prettier --single-quote --trailing-comma es5 --write \"{src,scripts,tests}/**/*.js\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/kulshekhar/ts-jest.git"
},
"keywords": [
"jest",
"typescript",
"sourcemap",
"react",
"testing"
],
"author": "Kulshekhar Kabra <kulshekhar@users.noreply.github.com> (https://github.com/kulshekhar)",
"license": "MIT",
"bugs": {
"url": "https://github.com/kulshekhar/ts-jest/issues"
},
"homepage": "https://github.com/kulshekhar/ts-jest#readme",
"jest": {
"transform": {
"^.+\\.tsx?$": "<rootDir>/dist/preprocessor.js"
},
"testRegex": "tests/__tests__/.*\\.spec\\.ts$",
"testPathIgnorePatterns": [
"/node_modules/",
"tests/__tests__/watch.spec.ts"
],
"coverageReporters": [
"text"
],
"coverageDirectory": "test_coverage_dir",
"collectCoverageFrom": [
"src/**/*.tsx",
"src/**/*.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
]
},
"dependencies": {
"babel-plugin-istanbul": "^4.1.6",
"babel-preset-jest": "^23.0.0",
"cpx": "^1.5.0",
"fs-extra": "6.0.1",
"jest-config": "^23.0.0",
"lodash": "^4.17.10",
"pkg-dir": "^3.0.0",
"yargs": "^12.0.1"
},
"peerDependencies": {
"babel-core": "^6.26.3 || ^7.0.0-0",
"jest": "^23.0.0 || ^24.0.0",
"typescript": "2.x"
},
"devDependencies": {
"@types/babel-core": "latest",
"@types/es6-shim": "0.31.37",
"@types/fs-extra": "5.0.3",
"@types/jest": "^23.1.0",
"@types/lodash": "^4.14.109",
"@types/node": "10.5.1",
"@types/react": "16.4.6",
"@types/yargs": "^11.0.0",
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"cross-spawn": "latest",
"cross-spawn-with-kill": "latest",
"doctoc": "latest",
"husky": "^0.14.3",
"jest": "^23.0.0",
"lint-staged": "^7.1.2",
"prettier": "^1.12.1",
"react": "16.4.1",
"react-test-renderer": "16.4.1",
"reflect-metadata": "^0.1.12",
"rimraf": "^2.6.2",
"ts-jest": "22.4.6",
"tslint": "^5.10.0",
"typescript": "^2.8.3"
},
"lint-staged": {
"*.js": [
"prettier --write --single-quote --trailing-comma es5",
"git add"
],
"*.ts": [
"prettier --write --single-quote --trailing-comma all",
"git add"
]
}
}