|
7 | 7 | "url": "git+https://github.com/jcouyang/react-most.git"
|
8 | 8 | },
|
9 | 9 | "main": "lib/react-most.js",
|
10 |
| - "directories": { |
11 |
| - "lib": "./lib" |
12 |
| - }, |
| 10 | + "typings": "types/react-most.d.ts", |
| 11 | + "files": [ |
| 12 | + "src", |
| 13 | + "lib", |
| 14 | + "types" |
| 15 | + ], |
13 | 16 | "scripts": {
|
14 | 17 | "license": "(cat LICENSE.txt; cat react-most.js) > react-most.licensed.js && mv react-most.licensed.js react-most.js",
|
15 | 18 | "build": "tsc -p .",
|
16 |
| - "prebrowser": "npm run build", |
17 |
| - "browser": "browserify -r react -r most -r most-subject -o dist/vendor.js && browserify -s Most -x react -x most -x most-subject react-most.js -o dist/react-most.js", |
18 |
| - "test": "jest --coverage", |
| 19 | + "test": "jest", |
19 | 20 | "prepublish": "npm run build",
|
20 | 21 | "testWDebugger": "node --harmony $(which bugger) ./node_modules/jest-cli/bin/jest.js --runInBand"
|
21 | 22 | },
|
|
29 | 30 | "react": "^15.5.4"
|
30 | 31 | },
|
31 | 32 | "devDependencies": {
|
| 33 | + "@types/jest": "^19.2.3", |
32 | 34 | "@types/node": "^7.0.18",
|
33 | 35 | "@types/react": "^15.0.22",
|
34 |
| - "babel": "^6.1.18", |
35 |
| - "babel-cli": "^6.2.0", |
36 |
| - "babel-jest": "^19.0.0", |
37 |
| - "babel-plugin-transform-react-jsx": "^6.1.18", |
38 |
| - "babel-preset-es2015": "^6.1.18", |
39 |
| - "babelify": "^7.2.0", |
40 |
| - "jest": "^19.0.0", |
41 |
| - "jest-cli": "^19.0.1", |
| 36 | + "jest": "^20.0.0", |
42 | 37 | "lodash": "^4.0.0",
|
43 | 38 | "react": "^15.5.4",
|
44 | 39 | "react-addons-test-utils": "^15.2.0",
|
45 | 40 | "react-dom": "^15.5.4",
|
46 | 41 | "react-most-spec": "^0.2.3",
|
47 | 42 | "redux": "^3.0.4",
|
| 43 | + "ts-jest": "^20.0.2", |
48 | 44 | "typescript": "^2.3.2"
|
49 | 45 | },
|
50 | 46 | "jest": {
|
| 47 | + "transform": { |
| 48 | + "^.+\\.(tsx|ts)$": "<rootDir>/node_modules/ts-jest/preprocessor.js" |
| 49 | + }, |
51 | 50 | "moduleFileExtensions": [
|
52 |
| - "js", |
53 |
| - "jsx", |
54 |
| - "es6" |
| 51 | + "ts", |
| 52 | + "tsx", |
| 53 | + "js" |
| 54 | + ], |
| 55 | + "testMatch": [ |
| 56 | + "**/__tests__/*.(ts|tsx|js)" |
55 | 57 | ],
|
56 | 58 | "roots": [
|
57 | 59 | "src"
|
|
0 commit comments