-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
56 lines (56 loc) · 1.46 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": "js2tsx",
"version": "1.0.0",
"description": "A CLI tool help developer transform react project with typescript type definitions",
"main": "index.js",
"bin": {
"js2tsx": "./bin/js2tsx.sh"
},
"scripts": {
"dev": "node --inspect ./node_modules/jscodeshift/bin/jscodeshift.sh -t ./transforms/react-to-tsx.js ./samples --dry -p --run-in-band --extensions js --parser babylon",
"react2tsx": "jscodeshift -t ./transforms/react-to-tsx.js --parser babylon --dry -p --extensions js ./samples",
"sfc2tsx": "jscodeshift -t ./transforms/sfc-to-tsx.js --parser babylon --dry -p --extensions js ./samples",
"rename": "node ./script/rename",
"lint": "eslint . ",
"test": "jest"
},
"repository": {
"type": "git",
"url": "https://github.com/sjy/js2tsx"
},
"lint-staged": {
"*.js": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
]
},
"homepage": "https://github.com/sjy/js2tsx",
"keywords": [
"codemod",
"jscodeshift",
"jsx",
"migration",
"react",
"transform",
"tsx",
"typescript"
],
"dependencies": {
"chalk": "^2.4.0",
"commander": "^2.15.1",
"eslint-plugin-jest": "^21.15.1",
"jest": "^22.4.3",
"jscodeshift": "^0.3.32",
"shelljs": "^0.7.8"
},
"author": "sjy",
"license": "MIT",
"devDependencies": {
"eslint": "^4.19.1",
"lint-staged": "^7.0.4",
"prettier": "^1.12.1"
},
"engines": {
"node": ">= 4"
}
}