|
3 | 3 | "version": "1.0.1", |
4 | 4 | "description": "A handler for react-docgen that tries to infer the displayName of a component", |
5 | 5 | "license": "MIT", |
| 6 | + "files": [ |
| 7 | + "distribution" |
| 8 | + ], |
6 | 9 | "main": "distribution/index.js", |
7 | 10 | "scripts": { |
8 | 11 | "flow": "flow", |
9 | | - "lint": "eslint src/", |
| 12 | + "lint": "eslint src/ test/", |
10 | 13 | "prebuild": "npm run test:unit", |
11 | 14 | "build": "rimraf distribution/ && babel source/ --out-dir distribution/ --ignore **/*.spec.js", |
12 | 15 | "prepublish": "npm run build", |
|
40 | 43 | "type": "git", |
41 | 44 | "url": "git+https://github.com/nerdlabs/react-docgen-displayname-handler.git" |
42 | 45 | }, |
| 46 | + "babel": { |
| 47 | + "presets": [ |
| 48 | + [ |
| 49 | + "env", |
| 50 | + { |
| 51 | + "targets": { |
| 52 | + "node": "4" |
| 53 | + } |
| 54 | + } |
| 55 | + ] |
| 56 | + ], |
| 57 | + "plugins": [ |
| 58 | + "syntax-flow", |
| 59 | + "transform-flow-strip-types", |
| 60 | + "transform-runtime" |
| 61 | + ] |
| 62 | + }, |
| 63 | + "eslintConfig": { |
| 64 | + "extends": [ |
| 65 | + "eslint:recommended" |
| 66 | + ], |
| 67 | + "parser": "babel-eslint", |
| 68 | + "env": { |
| 69 | + "node": true |
| 70 | + }, |
| 71 | + "globals": { |
| 72 | + "ASTNode": true, |
| 73 | + "Documentation": true, |
| 74 | + "FlowTypeDescriptor": true, |
| 75 | + "NodePath": true, |
| 76 | + "PropDescriptor": true, |
| 77 | + "PropTypeDescriptor": true |
| 78 | + } |
| 79 | + }, |
| 80 | + "eslintIgnore": [ |
| 81 | + "distribution/" |
| 82 | + ], |
43 | 83 | "peerDependencies": { |
44 | 84 | "react-docgen": "^2.17.0 || ^3.0.0-beta", |
45 | 85 | "recast": "0.12.6 || 0.13.0" |
|
51 | 91 | "babel-plugin-syntax-flow": "6.18.0", |
52 | 92 | "babel-plugin-transform-flow-strip-types": "6.22.0", |
53 | 93 | "babel-plugin-transform-runtime": "6.23.0", |
54 | | - "babel-preset-es2015": "6.24.1", |
55 | | - "babel-preset-stage-1": "6.24.1", |
56 | | - "babel-register": "^6.14.0", |
| 94 | + "babel-preset-env": "1.7.0", |
| 95 | + "babel-register": "6.14.0", |
| 96 | + "babel-runtime": "6.26.0", |
57 | 97 | "eslint": "4.19.1", |
58 | 98 | "flow-bin": "0.73.0", |
59 | 99 | "react-docgen": "3.0.0-beta12", |
|
0 commit comments