|
1 | 1 | { |
2 | | - "name": "react-js-to-ts", |
3 | | - "version": "1.2.0", |
4 | | - "description": "Convert React code from JavaScript to TypeScript", |
5 | | - "main": "dist/index.js", |
6 | | - "scripts": { |
7 | | - "pretest": "npm run build", |
8 | | - "test": "jest", |
9 | | - "coverage": "jest --coverage", |
10 | | - "posttest": "npm run lint", |
11 | | - "prelint": "npm run clean", |
12 | | - "lint": "tslint --type-check --project tsconfig.json --format codeFrame --exclude test/**/*.tsx", |
13 | | - "prepublish": "npm run build", |
14 | | - "clean": "rm -rf dist", |
15 | | - "prebuild": "npm run clean", |
16 | | - "build": "tsc --pretty" |
17 | | - }, |
18 | | - "jest": { |
19 | | - "mapCoverage": true, |
20 | | - "transform": { |
21 | | - ".ts": "<rootDir>/node_modules/ts-jest/preprocessor.js" |
| 2 | + "name": "react-js-to-ts", |
| 3 | + "version": "1.2.0", |
| 4 | + "description": "Convert React code from JavaScript to TypeScript", |
| 5 | + "main": "dist/index.js", |
| 6 | + "scripts": { |
| 7 | + "pretest": "npm run build", |
| 8 | + "test": "jest", |
| 9 | + "coverage": "jest --coverage", |
| 10 | + "posttest": "npm run lint", |
| 11 | + "prelint": "npm run clean", |
| 12 | + "lint": "tslint --type-check --project tsconfig.json --format codeFrame --exclude test/**/*.tsx", |
| 13 | + "prepublish": "npm run build", |
| 14 | + "clean": "rm -rf dist", |
| 15 | + "prebuild": "npm run clean", |
| 16 | + "build": "tsc --pretty", |
| 17 | + "precommit": "lint-staged", |
| 18 | + "prettier": "prettier --write *.{js,json,css,md,ts,tsx}" |
22 | 19 | }, |
23 | | - "testRegex": "test/runner.ts", |
24 | | - "moduleFileExtensions": [ |
25 | | - "ts", |
26 | | - "js" |
27 | | - ] |
28 | | - }, |
29 | | - "bin": "dist/cli.js", |
30 | | - "author": "Mohsen Azimi <me@azimi.me>", |
31 | | - "license": "Apache-2.0", |
32 | | - "dependencies": { |
33 | | - "chalk": "^1.1.3", |
34 | | - "commander": "^2.10.0", |
35 | | - "glob": "^7.1.2", |
36 | | - "lodash": "^4.17.4", |
37 | | - "typescript": "^2.6.2" |
38 | | - }, |
39 | | - "devDependencies": { |
40 | | - "@types/chalk": "^0.4.31", |
41 | | - "@types/commander": "^2.9.1", |
42 | | - "@types/glob": "^5.0.30", |
43 | | - "@types/jest": "^20.0.2", |
44 | | - "@types/lodash": "^4.14.93", |
45 | | - "@types/node": "^8.0.2", |
46 | | - "@types/react": "^15.0.31", |
47 | | - "jest": "^20.0.4", |
48 | | - "ts-jest": "^20.0.6", |
49 | | - "ts-node": "^3.1.0", |
50 | | - "tslint": "^5.2.0" |
51 | | - } |
| 20 | + "jest": { |
| 21 | + "mapCoverage": true, |
| 22 | + "transform": { |
| 23 | + ".ts": "<rootDir>/node_modules/ts-jest/preprocessor.js" |
| 24 | + }, |
| 25 | + "testRegex": "test/runner.ts", |
| 26 | + "moduleFileExtensions": ["ts", "js"] |
| 27 | + }, |
| 28 | + "lint-staged": { |
| 29 | + "*.{js,json,css,md,ts,tsx}": ["npm run prettier", "git add"] |
| 30 | + }, |
| 31 | + "bin": "dist/cli.js", |
| 32 | + "author": "Mohsen Azimi <me@azimi.me>", |
| 33 | + "license": "Apache-2.0", |
| 34 | + "dependencies": { |
| 35 | + "chalk": "^1.1.3", |
| 36 | + "commander": "^2.10.0", |
| 37 | + "glob": "^7.1.2", |
| 38 | + "lodash": "^4.17.4", |
| 39 | + "typescript": "^2.6.2" |
| 40 | + }, |
| 41 | + "devDependencies": { |
| 42 | + "@types/chalk": "^0.4.31", |
| 43 | + "@types/commander": "^2.9.1", |
| 44 | + "@types/glob": "^5.0.30", |
| 45 | + "@types/jest": "^20.0.2", |
| 46 | + "@types/lodash": "^4.14.93", |
| 47 | + "@types/node": "^8.0.2", |
| 48 | + "@types/react": "^15.0.31", |
| 49 | + "husky": "^0.14.3", |
| 50 | + "jest": "^20.0.4", |
| 51 | + "lint-staged": "^6.0.1", |
| 52 | + "prettier": "^1.10.2", |
| 53 | + "ts-jest": "^20.0.6", |
| 54 | + "ts-node": "^3.1.0", |
| 55 | + "tslint": "^5.2.0" |
| 56 | + } |
52 | 57 | } |
0 commit comments