|
1 | 1 | {
|
2 | 2 | "name": "cb-react-micro-frontend",
|
3 |
| - "version": "0.0.19", |
4 |
| - "description": "React micro-frontend core", |
5 |
| - "repository": "https://github.com/ICodeMyOwnLife/cb-react-micro-frontend.git", |
| 3 | + "version": "0.0.22", |
| 4 | + "description": "Reusable functions for setting up micro-frontends and containers", |
6 | 5 | "author": "Hien CB",
|
| 6 | + "repository": "https://github.com/ICodeMyOwnLife/cb-react-micro-frontend.git", |
7 | 7 | "license": "MIT",
|
| 8 | + "private": false, |
8 | 9 | "source": "src/index.ts",
|
9 | 10 | "module": "dist/index.es.js",
|
10 | 11 | "types": "dist/index.d.ts",
|
11 | 12 | "scripts": {
|
12 |
| - "build": "rollup -c -w", |
13 |
| - "build:config": "tsc rollup.config.ts --target es2017 --module es2015 --moduleResolution node --skipLibCheck --allowSyntheticDefaultImports -w", |
14 |
| - "prebuild": "rm -rf dist", |
| 13 | + "build": "rollup -c", |
| 14 | + "build:config": "tsc rollup.config.ts --target es2017 --module es2015 --moduleResolution node --skipLibCheck --allowSyntheticDefaultImports", |
| 15 | + "commit": "git-cz", |
| 16 | + "dev": "microbundle watch --jsx React.createElement", |
| 17 | + "lint": "eslint 'src/**/*.{ts,tsx}'", |
| 18 | + "lint:fix": "yarn lint --fix", |
| 19 | + "prebuild": "del dist", |
| 20 | + "release": "release-it", |
| 21 | + "size": "yarn build && size-limit", |
15 | 22 | "type-check": "tsc --noEmit"
|
16 | 23 | },
|
| 24 | + "dependencies": { |
| 25 | + "cb-react-micro-frontend-core": "^0.0.3" |
| 26 | + }, |
17 | 27 | "devDependencies": {
|
| 28 | + "@commitlint/cli": "^8.3.5", |
| 29 | + "@commitlint/config-conventional": "^8.3.4", |
| 30 | + "@rollup/plugin-node-resolve": "^7.1.3", |
| 31 | + "@size-limit/preset-small-lib": "^4.3.1", |
18 | 32 | "@types/history": "^4.7.5",
|
19 |
| - "@types/node": "^13.13.2", |
| 33 | + "@types/node": "^13.13.4", |
20 | 34 | "@types/react": "^16.9.34",
|
21 |
| - "@types/react-dom": "^16.9.6", |
22 |
| - "@types/react-router": "^5.1.5", |
| 35 | + "@types/react-dom": "^16.9.7", |
| 36 | + "@types/react-router": "^5.1.7", |
| 37 | + "commitizen": "^4.0.3", |
| 38 | + "cz-conventional-changelog": "^3.1.0", |
| 39 | + "del-cli": "^3.0.0", |
23 | 40 | "eslint": "^6.8.0",
|
24 | 41 | "eslint-config-react-ts": "^2.1.0",
|
25 | 42 | "history": "^4.10.1",
|
| 43 | + "husky": "^4.2.3", |
| 44 | + "lint-staged": "^10.0.8", |
26 | 45 | "react": "^16.13.1",
|
27 | 46 | "react-dom": "^16.13.1",
|
28 | 47 | "react-router": "^5.1.2",
|
29 |
| - "rollup": "^2.7.2", |
| 48 | + "release-it": "^13.0.2", |
| 49 | + "rollup": "^2.7.3", |
30 | 50 | "rollup-plugin-cleanup": "^3.1.1",
|
31 | 51 | "rollup-plugin-typescript2": "^0.27.0",
|
| 52 | + "size-limit": "^4.3.1", |
32 | 53 | "typescript": "^3.8.3"
|
33 | 54 | },
|
34 | 55 | "peerDependencies": {
|
35 | 56 | "history": "^4.10.1",
|
36 |
| - "react": "^16.13.1", |
37 |
| - "react-dom": "^16.13.1", |
| 57 | + "react": "> 16.8.0", |
| 58 | + "react-dom": "> 16.8.0", |
38 | 59 | "react-router": "^5.1.2"
|
39 | 60 | },
|
40 |
| - "dependencies": { |
41 |
| - "cb-react-micro-frontend-core": "^0.0.3" |
| 61 | + "config": { |
| 62 | + "commitizen": { |
| 63 | + "path": "./node_modules/cz-conventional-changelog" |
| 64 | + } |
| 65 | + }, |
| 66 | + "husky": { |
| 67 | + "hooks": { |
| 68 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
| 69 | + "pre-commit": "yarn type-check && yarn lint-staged && yarn size" |
| 70 | + } |
| 71 | + }, |
| 72 | + "lint-staged": { |
| 73 | + "{*.{json,md}}": [ |
| 74 | + "prettier --write" |
| 75 | + ], |
| 76 | + "*.{js,jsx,ts,tsx}": [ |
| 77 | + "yarn lint:fix" |
| 78 | + ] |
| 79 | + }, |
| 80 | + "engines": { |
| 81 | + "node": ">=12.0.0" |
42 | 82 | }
|
43 | 83 | }
|
0 commit comments