|
7 | 7 | "react-codegen": "lib/bin.js" |
8 | 8 | }, |
9 | 9 | "scripts": { |
10 | | - "prepublish": "babel src --out-dir lib --copy-files", |
11 | | - "watch": "babel --watch src --out-dir lib --source-maps inline --copy-files", |
12 | | - "lint": "eslint src --ext .js" |
| 10 | + "prepublish": "npm run build", |
| 11 | + "build": "babel src --out-dir lib --copy-files --extensions \".ts\"", |
| 12 | + "watch": "npm run build -- --watch --source-maps inline", |
| 13 | + "lint": "eslint src --ext .ts" |
13 | 14 | }, |
14 | 15 | "husky": { |
15 | 16 | "hooks": { |
|
20 | 21 | "dependencies": { |
21 | 22 | "@babel/generator": "^7.10.1", |
22 | 23 | "@babel/parser": "^7.10.1", |
23 | | - "@babel/template": "^7.10.1", |
24 | 24 | "@babel/traverse": "^7.10.1", |
25 | 25 | "@babel/types": "^7.10.1", |
| 26 | + "@babel/template": "^7.10.1", |
26 | 27 | "chalk": "^4.0.0", |
27 | 28 | "console-clear": "^1.1.1", |
28 | 29 | "cosmiconfig": "^6.0.0", |
|
39 | 40 | "devDependencies": { |
40 | 41 | "@babel/cli": "^7.10.1", |
41 | 42 | "@babel/core": "^7.10.1", |
| 43 | + "@babel/plugin-proposal-class-properties": "^7.10.1", |
42 | 44 | "@babel/preset-env": "^7.10.1", |
| 45 | + "@babel/preset-typescript": "^7.10.1", |
| 46 | + "@types/babel-generator": "^6.25.3", |
43 | 47 | "@types/babel-traverse": "^6.25.5", |
44 | 48 | "@types/babel-types": "^7.0.7", |
| 49 | + "@types/babel__generator": "^7.6.1", |
45 | 50 | "@types/fs-extra": "^9.0.1", |
46 | 51 | "@types/inquirer": "^6.5.0", |
47 | 52 | "@types/yargs": "^15.0.5", |
| 53 | + "@typescript-eslint/eslint-plugin": "^3.1.0", |
| 54 | + "@typescript-eslint/parser": "^3.1.0", |
48 | 55 | "eslint": "^6.8.0", |
49 | 56 | "eslint-config-airbnb-base": "^14.1.0", |
| 57 | + "eslint-config-airbnb-typescript": "^8.0.2", |
50 | 58 | "eslint-config-prettier": "^6.11.0", |
51 | 59 | "eslint-plugin-import": "^2.20.2", |
52 | | - "husky": "^4.2.5" |
| 60 | + "husky": "^4.2.5", |
| 61 | + "typescript": "^3.9.5" |
53 | 62 | }, |
54 | 63 | "keywords": [ |
55 | 64 | "react", |
|
0 commit comments