|
15 | 15 | "start": "run-p start:*",
|
16 | 16 | "start:examples": "now dev",
|
17 | 17 | "start:storybook": "start-storybook -p 6006",
|
18 |
| - "lint": "eslint packages/*/src/*.js", |
| 18 | + "lint": "eslint packages/*/src/*.{js,ts,tsx}", |
19 | 19 | "test": "jest packages/*/src/*.spec.js",
|
20 | 20 | "test:watch": "yarn test -- --watch",
|
21 | 21 | "test:devtools": "jest react-async-devtools/src",
|
22 | 22 | "test:components": "jest src/Async.spec.js --collectCoverageFrom=src/Async.js",
|
23 |
| - "test:backwards": "yarn add -D -W react@16.3.1 react-dom@16.3.1 && yarn test:components", |
24 |
| - "test:forwards": "yarn add -D -W react@next react-dom@next && yarn test", |
25 |
| - "test:latest": "yarn add -D -W react@latest react-dom@latest && yarn test", |
| 23 | + "test:backwards": "yarn add -D -W react@16.3.1 react-dom@16.3.1 && yarn resolutions:fix-react && yarn test:components", |
| 24 | + "test:forwards": "yarn add -D -W react@next react-dom@next && yarn resolutions:fix-react && yarn test", |
| 25 | + "test:latest": "yarn add -D -W react@latest react-dom@latest && yarn resolutions:fix-react && yarn test", |
26 | 26 | "test:compat": "yarn test:backwards && yarn test:forwards && yarn test:latest",
|
27 | 27 | "test:examples": "CI=1 lerna run --scope '*-example' test -- --passWithNoTests --watchAll=false",
|
28 | 28 | "test:chromatic": "chromatic --app-code iiua39bmt0j --build-script-name build:storybook",
|
| 29 | + "resolutions:fix-react": "jq '.resolutions.react = .devDependencies.react|.resolutions.\"react-dom\"=.devDependencies.react' package.json > package.json.new; mv package.json.new package.json; yarn install", |
29 | 30 | "ci": "yarn lint && yarn test:compat && yarn test:examples",
|
30 | 31 | "build:packages": "lerna run --scope 'react-async*' build",
|
31 | 32 | "build:examples": "lerna run --scope '*-example' build",
|
|
36 | 37 | },
|
37 | 38 | "devDependencies": {
|
38 | 39 | "@babel/core": "7.7.2",
|
| 40 | + "@babel/plugin-proposal-class-properties": "7.7.0", |
39 | 41 | "@babel/plugin-proposal-object-rest-spread": "7.6.2",
|
40 | 42 | "@babel/plugin-transform-runtime": "7.6.2",
|
41 | 43 | "@babel/preset-env": "7.7.1",
|
42 | 44 | "@babel/preset-react": "7.7.0",
|
| 45 | + "@babel/preset-typescript": "7.7.2", |
43 | 46 | "@pika/pack": "0.5.0",
|
44 | 47 | "@pika/plugin-build-node": "0.7.1",
|
45 | 48 | "@pika/plugin-build-types": "0.7.1",
|
| 49 | + "@pika/plugin-build-umd": "0.7.1", |
46 | 50 | "@pika/plugin-build-web": "0.7.1",
|
| 51 | + "@pika/plugin-bundle-types": "0.7.1", |
47 | 52 | "@pika/plugin-standard-pkg": "0.7.1",
|
| 53 | + "@pika/plugin-ts-standard-pkg": "0.7.1", |
48 | 54 | "@storybook/react": "5.2.6",
|
49 | 55 | "@testing-library/jest-dom": "4.2.3",
|
50 | 56 | "@testing-library/react": "9.3.2",
|
| 57 | + "@typescript-eslint/eslint-plugin": "2.6.1", |
| 58 | + "@typescript-eslint/parser": "2.6.1", |
51 | 59 | "babel-eslint": "10.0.3",
|
52 | 60 | "babel-jest": "24.9.0",
|
53 | 61 | "babel-loader": "8.0.6",
|
|
61 | 69 | "eslint-plugin-react-hooks": "2.2.0",
|
62 | 70 | "jest": "24.9.0",
|
63 | 71 | "lerna": "3.18.4",
|
| 72 | + "node-jq": "1.11.0", |
64 | 73 | "now": "16.4.4",
|
65 | 74 | "npm-run-all": "4.1.5",
|
66 | 75 | "prettier": "1.19.1",
|
67 | 76 | "prop-types": "15.7.2",
|
68 | 77 | "react": "16.11.0",
|
69 | 78 | "react-async": "9.0.0",
|
70 | 79 | "react-dom": "16.11.0",
|
71 |
| - "storybook-chromatic": "3.1.0" |
| 80 | + "storybook-chromatic": "3.1.0", |
| 81 | + "typescript": "3.7.2" |
72 | 82 | }
|
73 | 83 | }
|
0 commit comments