|
9 | 9 | }, |
10 | 10 | "license": "MIT", |
11 | 11 | "author": "Neolution", |
| 12 | + "sideEffects": false, |
| 13 | + "exports": { |
| 14 | + "./package.json": "./package.json", |
| 15 | + ".": { |
| 16 | + "types": "./dist/index.d.ts", |
| 17 | + "import": "./dist/index.modern.js", |
| 18 | + "require": "./dist/index.cjs" |
| 19 | + } |
| 20 | + }, |
12 | 21 | "main": "dist/index.js", |
| 22 | + "umd:main": "dist/index.umd.js", |
| 23 | + "jsdelivr": "dist/index.umd.js", |
| 24 | + "unpkg": "dist/index.umd.js", |
13 | 25 | "module": "dist/index.modern.js", |
14 | 26 | "source": "src/index.ts", |
| 27 | + "jsnext:main": "dist/index.modern.js", |
| 28 | + "types": "dist/index.d.ts", |
15 | 29 | "files": [ |
16 | 30 | "dist" |
17 | 31 | ], |
18 | 32 | "scripts": { |
19 | | - "build": "shx rm -rf dist && microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --globals react/jsx-runtime=jsx --no-compress --tsconfig ./tsconfig.microbundle.json", |
20 | | - "build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook", |
| 33 | + "build": "rollup -c", |
| 34 | + "build-storybook": "build-storybook", |
21 | 35 | "lint": "eslint \"**/*.{ts,tsx}\" --cache --max-warnings 0", |
22 | 36 | "prepack": "yarn build", |
23 | 37 | "prepare-pr": "yarn prettier . --write && yarn lint && yarn build && yarn test\"", |
24 | 38 | "prettier-check": "prettier --check .", |
25 | 39 | "prettier-write": "prettier --write .", |
26 | | - "start": "microbundle watch --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --globals react/jsx-runtime=jsx --no-compress --tsconfig ./tsconfig.microbundle.json", |
| 40 | + "start": "rollup -c -w", |
27 | 41 | "start-all": "concurrently \"yarn start\" \"yarn start-yalc\"", |
28 | 42 | "start-yalc": "yarn nodemon --watch dist -x \"yarn yalc push\"", |
29 | 43 | "storybook": "start-storybook -p 6006", |
30 | 44 | "test": "cross-env DEBUG_PRINT_LIMIT=100 jest", |
31 | 45 | "tsc": "tsc" |
32 | 46 | }, |
33 | | - "dependencies": {}, |
| 47 | + "dependencies": { |
| 48 | + "rollup-plugin-import-css": "^3.2.1" |
| 49 | + }, |
34 | 50 | "devDependencies": { |
35 | | - "@babel/core": "^7.17.9", |
| 51 | + "@babel/core": "^7.21.8", |
36 | 52 | "@fortawesome/fontawesome-svg-core": "^6.1.1", |
37 | 53 | "@fortawesome/free-solid-svg-icons": "^6.1.1", |
38 | 54 | "@fortawesome/react-fontawesome": "^0.1.18", |
39 | 55 | "@neolution-ch/react-pattern-ui": "^2.0.1", |
40 | 56 | "@release-it/keep-a-changelog": "^3.1.0", |
| 57 | + "@rollup/plugin-commonjs": "^24.1.0", |
| 58 | + "@rollup/plugin-node-resolve": "^15.0.2", |
| 59 | + "@rollup/plugin-terser": "^0.4.1", |
41 | 60 | "@storybook/addon-actions": "^6.4.22", |
42 | 61 | "@storybook/addon-essentials": "^6.4.22", |
43 | 62 | "@storybook/addon-interactions": "^6.4.22", |
|
49 | 68 | "@testing-library/react": "^12.1.2", |
50 | 69 | "@testing-library/user-event": "^14.0.4", |
51 | 70 | "@types/jest": "^27.4.1", |
52 | | - "@types/node": "^17.0.23", |
53 | | - "@types/react": "^17.0.43", |
54 | | - "@types/react-dom": "^17.0.14", |
| 71 | + "@types/node": "^18.16.3", |
| 72 | + "@types/react": "^18.2.5", |
| 73 | + "@types/react-dom": "^18.2.3", |
55 | 74 | "@types/reactstrap": "^8.7.2", |
56 | | - "@typescript-eslint/eslint-plugin": "^5.18.0", |
57 | | - "@typescript-eslint/parser": "^5.18.0", |
58 | | - "babel-loader": "^8.2.4", |
| 75 | + "@typescript-eslint/eslint-plugin": "^5.59.2", |
| 76 | + "@typescript-eslint/parser": "^5.59.2", |
59 | 77 | "bootstrap": "^4.0.0", |
60 | | - "concurrently": "^7.6.0", |
| 78 | + "concurrently": "^8.0.1", |
61 | 79 | "cross-env": "^7.0.3", |
62 | | - "eslint": "^8.12.0", |
63 | | - "eslint-config-prettier": "^8.5.0", |
64 | | - "eslint-import-resolver-typescript": "^2.7.1", |
65 | | - "eslint-plugin-import": "^2.26.0", |
66 | | - "eslint-plugin-storybook": "^0.5.8", |
67 | | - "gh-pages": "^3.2.3", |
| 80 | + "eslint": "^8.39.0", |
| 81 | + "eslint-config-prettier": "^8.8.0", |
| 82 | + "eslint-import-resolver-typescript": "^3.5.5", |
| 83 | + "eslint-plugin-import": "^2.27.5", |
| 84 | + "eslint-plugin-storybook": "^0.6.12", |
| 85 | + "gh-pages": "^5.0.0", |
68 | 86 | "jest": "^27.5.1", |
69 | | - "microbundle": "^0.14.2", |
70 | | - "nodemon": "^2.0.20", |
71 | | - "prettier": "^2.6.2", |
| 87 | + "nodemon": "^2.0.22", |
| 88 | + "prettier": "^2.8.8", |
72 | 89 | "react": "^17.0.2", |
73 | 90 | "react-dom": "^17.0.2", |
74 | | - "reactstrap": "^8.9.0", |
75 | | - "release-it": "^15.7.0", |
| 91 | + "reactstrap": "^8.10.1", |
| 92 | + "release-it": "^15.10.3", |
| 93 | + "rollup": "^3.21.4", |
| 94 | + "rollup-plugin-peer-deps-external": "^2.2.4", |
| 95 | + "rollup-plugin-typescript2": "^0.34.1", |
76 | 96 | "shx": "^0.3.4", |
77 | 97 | "ts-jest": "^27.1.4", |
78 | | - "typescript": "^4.6.3", |
| 98 | + "typescript": "^5.0.4", |
| 99 | + "webpack": "^5.82.0", |
79 | 100 | "yalc": "^1.0.0-pre.53" |
80 | 101 | }, |
81 | 102 | "peerDependencies": { |
|
0 commit comments