|
23 | 23 | "publishConfig": { |
24 | 24 | "access": "public" |
25 | 25 | }, |
26 | | - "main": "lib/index.js", |
27 | | - "module": "lib/index.mjs", |
28 | | - "types": "lib/index.d.ts", |
| 26 | + "main": "core/index.js", |
| 27 | + "module": "core/index.mjs", |
| 28 | + "types": "core/index.d.ts", |
29 | 29 | "scripts": { |
30 | | - "build": "rollup -c", |
| 30 | + "example": "ts-node example/example", |
| 31 | + "build": "ts-node rollup.build", |
31 | 32 | "test": "jest", |
32 | | - "lint": "eslint -c .eslintrc.json --ext ts,tsx src" |
| 33 | + "lint": "eslint -c .eslintrc.json --ext ts,tsx src", |
| 34 | + "storybook": "start-storybook -p 9000", |
| 35 | + "storybook:build": "build-storybook -c .storybook -o docs" |
33 | 36 | }, |
34 | 37 | "peerDependencies": { |
| 38 | + "@hpcc-js/wasm": "^0.3.13", |
35 | 39 | "react": ">=16.8.0", |
36 | 40 | "react-dom": ">=16.8.0", |
37 | 41 | "ts-graphviz": ">=0.10.0" |
38 | 42 | }, |
| 43 | + "peerDependenciesMeta": { |
| 44 | + "@hpcc-js/wasm": { |
| 45 | + "optional": true |
| 46 | + } |
| 47 | + }, |
39 | 48 | "dependencies": { |
40 | 49 | "prop-types": "^15.7.2", |
41 | 50 | "react-reconciler": "^0.24.0" |
42 | 51 | }, |
43 | 52 | "devDependencies": { |
| 53 | + "@hpcc-js/wasm": "^0.3.13", |
44 | 54 | "@rollup/plugin-commonjs": "^11.1.0", |
| 55 | + "@storybook/addon-knobs": "^5.3.18", |
| 56 | + "@storybook/addon-storysource": "^5.3.18", |
| 57 | + "@storybook/react": "^5.3.18", |
45 | 58 | "@testing-library/react-hooks": "^3.2.1", |
| 59 | + "@types/fs-extra": "^8.1.0", |
46 | 60 | "@types/prop-types": "^15.7.3", |
47 | 61 | "@types/react": "^16.9.17", |
48 | 62 | "@types/react-dom": "^16.9.4", |
49 | 63 | "@types/react-reconciler": "^0.18.0", |
50 | 64 | "@typescript-eslint/eslint-plugin": "^2.28.0", |
51 | 65 | "@typescript-eslint/parser": "^2.28.0", |
| 66 | + "babel-loader": "^8.1.0", |
52 | 67 | "eslint": "^6.8.0", |
53 | 68 | "eslint-config-airbnb": "^18.1.0", |
54 | 69 | "eslint-config-prettier": "^6.10.1", |
|
58 | 73 | "eslint-plugin-prettier": "^3.1.3", |
59 | 74 | "eslint-plugin-react": "^7.19.0", |
60 | 75 | "eslint-plugin-react-hooks": "^3.0.0", |
| 76 | + "fs-extra": "^9.0.0", |
61 | 77 | "jest": "^25.3.0", |
62 | 78 | "jest-graphviz": "^0.3.1", |
63 | 79 | "prettier": "^1.19.1", |
|
69 | 85 | "rollup-plugin-typescript2": "^0.27.0", |
70 | 86 | "ts-graphviz": "^0.10.0", |
71 | 87 | "ts-jest": "^25.3.1", |
| 88 | + "ts-loader": "^7.0.2", |
| 89 | + "ts-node": "^8.9.1", |
72 | 90 | "typescript": "^3.8.2" |
73 | 91 | } |
74 | 92 | } |
0 commit comments