|
6 | 6 | "react",
|
7 | 7 | "async",
|
8 | 8 | "promise",
|
9 |
| - "loader" |
| 9 | + "fetch", |
| 10 | + "hook" |
10 | 11 | ],
|
11 | 12 | "author": "Gert Hengeveld <[email protected]>",
|
12 | 13 | "license": "ISC",
|
|
18 | 19 | "publishConfig": {
|
19 | 20 | "registry": "https://registry.npmjs.org/"
|
20 | 21 | },
|
21 |
| - "main": "lib/index.js", |
22 |
| - "typings": "typings/index.d.ts", |
23 |
| - "files": [ |
24 |
| - "lib", |
25 |
| - "src", |
26 |
| - "typings" |
27 |
| - ], |
28 | 22 | "scripts": {
|
29 |
| - "build": "rimraf lib && babel src -d lib --ignore '**/*spec.js'", |
30 | 23 | "lint": "eslint src",
|
31 |
| - "test": "jest src/Async.spec.js --collectCoverageFrom=src/Async.js", |
| 24 | + "test": "jest src/Async.spec.js --collectCoverageFrom=src/Async.js", |
32 | 25 | "test:hook": "jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js",
|
33 | 26 | "test:watch": "npm run test -- --watch",
|
34 | 27 | "test:compat": "npm run test:backwards && npm run test:forwards && npm run test:latest",
|
35 | 28 | "test:backwards": "npm i [email protected] [email protected] --no-save && npm test",
|
36 | 29 | "test:forwards": "npm i react@next react-dom@next --no-save && npm test && npm run test:hook",
|
37 | 30 | "test:latest": "npm i react@latest react-dom@latest --no-save && npm test && npm run test:hook",
|
| 31 | + "build": "pack build", |
| 32 | + "publish": "pack publish", |
38 | 33 | "prepublishOnly": "npm run lint && npm run test:compat && npm run build"
|
39 | 34 | },
|
40 | 35 | "dependencies": {},
|
|
45 | 40 | "prop-types": ">=15.5.7"
|
46 | 41 | },
|
47 | 42 | "devDependencies": {
|
48 |
| - "babel-cli": "6.26.0", |
49 |
| - "babel-core": "6.26.3", |
| 43 | + "@babel/plugin-proposal-object-rest-spread": "7.3.4", |
| 44 | + "@babel/plugin-transform-runtime": "7.2.0", |
| 45 | + "@babel/preset-env": "7.3.1", |
| 46 | + "@babel/preset-react": "7.0.0", |
| 47 | + "@pika/plugin-build-node": "0.3.12", |
| 48 | + "@pika/plugin-build-types": "0.3.12", |
| 49 | + "@pika/plugin-build-web": "0.3.12", |
| 50 | + "@pika/plugin-standard-pkg": "0.3.12", |
50 | 51 | "babel-eslint": "10.0.1",
|
51 |
| - "babel-plugin-transform-object-rest-spread": "6.26.0", |
52 |
| - "babel-preset-env": "1.7.0", |
53 |
| - "babel-preset-react": "6.24.1", |
| 52 | + "babel-jest": "24.1.0", |
54 | 53 | "eslint": "5.11.1",
|
55 | 54 | "eslint-config-prettier": "3.3.0",
|
56 | 55 | "eslint-plugin-jest": "22.1.2",
|
57 | 56 | "eslint-plugin-prettier": "3.0.1",
|
58 | 57 | "eslint-plugin-promise": "4.0.1",
|
59 | 58 | "eslint-plugin-react": "7.12.0",
|
60 | 59 | "eslint-plugin-react-hooks": "1.0.1",
|
61 |
| - "jest": "23.6.0", |
62 |
| - "jest-dom": "2.1.0", |
| 60 | + "jest": "24.1.0", |
| 61 | + "jest-dom": "3.1.2", |
63 | 62 | "prettier": "1.15.3",
|
64 | 63 | "react": "16.8.1",
|
65 | 64 | "react-dom": "16.8.1",
|
66 |
| - "react-testing-library": "5.5.3", |
67 |
| - "rimraf": "2.6.2" |
| 65 | + "react-testing-library": "5.5.3" |
68 | 66 | },
|
69 | 67 | "jest": {
|
70 |
| - "coverageDirectory": "./coverage/", |
71 |
| - "collectCoverage": true |
| 68 | + "collectCoverage": true, |
| 69 | + "coverageDirectory": "./coverage/" |
| 70 | + }, |
| 71 | + "@pika/pack": { |
| 72 | + "pipeline": [ |
| 73 | + [ |
| 74 | + "@pika/plugin-standard-pkg", |
| 75 | + { |
| 76 | + "exclude": [ |
| 77 | + "*.spec.js" |
| 78 | + ] |
| 79 | + } |
| 80 | + ], |
| 81 | + [ |
| 82 | + "@pika/plugin-build-node" |
| 83 | + ], |
| 84 | + [ |
| 85 | + "@pika/plugin-build-web" |
| 86 | + ], |
| 87 | + [ |
| 88 | + "@pika/plugin-build-types" |
| 89 | + ] |
| 90 | + ] |
72 | 91 | }
|
73 | 92 | }
|
0 commit comments