1 | {
|
2 | "name": "declare-react-module",
|
3 | "version": "1.8.1",
|
4 | "description": "Create TypeScript declaration files for React modules written in ES6.",
|
5 | "main": "dist/index.js",
|
6 | "types": "dist/index.d.ts",
|
7 | "bin": "cli.js",
|
8 | "files": [
|
9 | "cli.js",
|
10 | "dist",
|
11 | "typings"
|
12 | ],
|
13 | "scripts": {
|
14 | "test": "jest --coverage",
|
15 | "test:watch": "jest --watch",
|
16 | "prebuild": "rimraf dist",
|
17 | "build": "tsc --project .",
|
18 | "watch": "yarn build -- --watch",
|
19 | "format": "run-p format:*",
|
20 | "format:js": "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser babylon --write 'src/**/*.{js,jsx}'",
|
21 | "format:ts": "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser typescript --write '{src,typings}/**/*.{ts,tsx}'",
|
22 | "verify": "run-p verify:**",
|
23 | "verify:format:js": "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser babylon --list-different 'src/**/*.{js,jsx}'",
|
24 | "verify:format:ts": "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser typescript --list-different '{src,typings}/**/*.{ts,tsx}'",
|
25 | "verify:tslint": "tslint --config tslint.json --project tsconfig.json --formatters-dir node_modules/custom-tslint-formatters/formatters --format grouped --exclude \"src/__tests__/__fixtures__/**\" \"{src,typings}/**/*.{ts,tsx}\"",
|
26 | "lint-staged": "lint-staged",
|
27 | "precommit": "lint-staged",
|
28 | "prepublish": "yarn build"
|
29 | },
|
30 | "repository": {
|
31 | "type": "git",
|
32 | "url": "https://github.com/KingHenne/declare-react-module.git"
|
33 | },
|
34 | "keywords": [
|
35 | "typescript",
|
36 | "react",
|
37 | "declaration",
|
38 | "definition",
|
39 | "dts",
|
40 | "react2dts",
|
41 | "es6"
|
42 | ],
|
43 | "author": "Hendrik Liebau",
|
44 | "license": "MIT",
|
45 | "bugs": {
|
46 | "url": "https://github.com/KingHenne/declare-react-module/issues"
|
47 | },
|
48 | "homepage": "https://github.com/KingHenne/declare-react-module#readme",
|
49 | "devDependencies": {
|
50 | "@types/chokidar": "^1.7.4",
|
51 | "@types/jest": "^22.0.1",
|
52 | "@types/strip-ansi": "^3.0.0",
|
53 | "codecov": "^3.0.0",
|
54 | "commitizen": "^2.9.6",
|
55 | "custom-tslint-formatters": "^2.1.1",
|
56 | "cz-customizable": "^5.2.0",
|
57 | "husky": "^0.14.3",
|
58 | "jest": "^22.1.3",
|
59 | "lint-staged": "^6.0.0",
|
60 | "magic-string": "^0.22.4",
|
61 | "npm-run-all": "^4.1.2",
|
62 | "prettier": "^1.10.2",
|
63 | "rimraf": "^2.6.2",
|
64 | "semantic-release": "^12.2.2",
|
65 | "source-map": "^0.6.1",
|
66 | "strip-ansi": "^4.0.0",
|
67 | "ts-config": "^15.0.0",
|
68 | "ts-jest": "^22.0.1",
|
69 | "tslint": "^5.9.1",
|
70 | "typescript": "^2.6.2"
|
71 | },
|
72 | "dependencies": {
|
73 | "@types/acorn": "^4.0.3",
|
74 | "@types/babel-core": "^6.25.3",
|
75 | "@types/debug": "^0.0.30",
|
76 | "@types/fs-extra": "^5.0.0",
|
77 | "@types/minimatch": "^3.0.3",
|
78 | "@types/node": "^9.3.0",
|
79 | "@types/resolve": "^0.0.6",
|
80 | "babel-core": "^6.26.0",
|
81 | "babel-preset-env": "^1.6.1",
|
82 | "babel-preset-react": "^6.24.1",
|
83 | "babel-preset-stage-2": "^6.24.1",
|
84 | "builtin-modules": "^2.0.0",
|
85 | "debug": "^3.1.0",
|
86 | "fs-extra": "^5.0.0",
|
87 | "meow": "^4.0.0",
|
88 | "minimatch": "^3.0.4",
|
89 | "react-to-typescript-definitions": "^0.26.0",
|
90 | "rollup": "^0.54.1",
|
91 | "rollup-plugin-babel": "^3.0.3",
|
92 | "rollup-plugin-commonjs": "^8.2.6",
|
93 | "rollup-plugin-json": "^2.3.0",
|
94 | "rollup-plugin-node-resolve": "^3.0.2",
|
95 | "tslib": "^1.9.0"
|
96 | },
|
97 | "config": {
|
98 | "commitizen": {
|
99 | "path": "node_modules/cz-customizable"
|
100 | },
|
101 | "cz-customizable": {
|
102 | "config": ".cz-config.js"
|
103 | }
|
104 | },
|
105 | "lint-staged": {
|
106 | "{src,typings}/**/*.{ts,tsx}": [
|
107 | "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser typescript --write",
|
108 | "git add",
|
109 | "tslint --config tslint.json --project tsconfig.json"
|
110 | ],
|
111 | "src/**/*.{js,jsx}": [
|
112 | "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser babylon --write",
|
113 | "git add"
|
114 | ]
|
115 | },
|
116 | "jest": {
|
117 | "transform": {
|
118 | ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
119 | },
|
120 | "testRegex": "/__tests__/.*\\.test\\.(ts|tsx)$",
|
121 | "moduleFileExtensions": [
|
122 | "ts",
|
123 | "tsx",
|
124 | "js",
|
125 | "json"
|
126 | ],
|
127 | "modulePathIgnorePatterns": [
|
128 | "/__tests__/__fixtures__/.*index\\.d\\.ts$"
|
129 | ],
|
130 | "mapCoverage": true,
|
131 | "collectCoverageFrom": [
|
132 | "src/**/*.{ts,tsx}"
|
133 | ],
|
134 | "clearMocks": true
|
135 | }
|
136 | }
|