|
1 | 1 | { |
2 | | - "name": "mono-lib-boilerplate", |
| 2 | + "name": "@unts/size-limit", |
3 | 3 | "version": "0.0.0", |
4 | 4 | "type": "module", |
5 | | - "description": "A simple mono library boilerplate", |
6 | | - "repository": "git+https://github.com/un-ts/mono-lib-boilerplate.git", |
| 5 | + "description": "Incredible `size-limit` plugins, make `size-limit` greater", |
| 6 | + "repository": "git+https://github.com/un-ts/size-limit.git", |
7 | 7 | "author": "JounQin (https://www.1stG.me) <[email protected]>", |
8 | 8 | "license": "MIT", |
9 | 9 | "private": true, |
|
18 | 18 | "clean": "rimraf 'packages/**/{lib,*.tsbuildinfo}'", |
19 | 19 | "codesanbox:install": "npx [email protected] i", |
20 | 20 | "dev": "w -e docs --disableDotRule --publicPath /", |
21 | | - "jest": "node --experimental-vm-modules node_modules/.bin/jest", |
22 | 21 | "lint": "run-p lint:*", |
23 | 22 | "lint:es": "eslint . --cache -f friendly", |
24 | 23 | "lint:style": "stylelint . --cache", |
|
28 | 27 | "prerelease": "pnpm build", |
29 | 28 | "release": "changeset publish", |
30 | 29 | "serve": "sirv dist -s", |
31 | | - "test": "jest", |
| 30 | + "test": "size-limit", |
32 | 31 | "typecov": "type-coverage", |
33 | 32 | "vercel-build": "w -e docs -p --publicPath /", |
34 | 33 | "version": "changeset version" |
|
40 | 39 | "@changesets/cli": "^2.23.2", |
41 | 40 | "@pkgr/webpack": "^3.1.2", |
42 | 41 | "@pkgr/webpack-mdx": "^2.0.3", |
43 | | - "@types/jest": "^28.1.5", |
| 42 | + "@types/nanoid": "^3.0.0", |
44 | 43 | "@types/node": "^18.0.4", |
45 | 44 | "@types/react": "^18.0.15", |
46 | 45 | "@types/react-dom": "^18.0.6", |
47 | 46 | "@types/web": "^0.0.69", |
48 | 47 | "github-markdown-css": "^5.1.0", |
49 | | - "pkg": "workspace:*", |
50 | 48 | "react": "^18.2.0", |
51 | 49 | "react-dom": "^18.2.0", |
52 | 50 | "react-router-dom": "^6.3.0", |
53 | 51 | "sirv-cli": "^2.0.2", |
54 | | - "ts-jest": "^28.0.5", |
55 | | - "tsx": "^3.8.0", |
| 52 | + "size-limit": "^7.0.8", |
| 53 | + "size-limit-node-esbuild": "workspace:*", |
| 54 | + "size-limit-preset-node-lib": "workspace:*", |
56 | 55 | "type-coverage": "^2.22.0", |
57 | 56 | "typescript": "^4.7.4" |
58 | 57 | }, |
|
76 | 75 | "/pnpm-lock.yaml", |
77 | 76 | "!/.*.cjs" |
78 | 77 | ], |
79 | | - "jest": { |
80 | | - "preset": "ts-jest/presets/default-esm", |
81 | | - "collectCoverage": true, |
82 | | - "globals": { |
83 | | - "ts-jest": { |
84 | | - "useESM": true |
85 | | - } |
86 | | - }, |
87 | | - "moduleNameMapper": { |
88 | | - "^(\\.{1,2}/.*)\\.js$": "$1", |
89 | | - "pkg": "<rootDir>/packages/pkg/src" |
| 78 | + "pnpm": { |
| 79 | + "patchedDependencies": { |
| 80 | + |
90 | 81 | } |
91 | 82 | }, |
92 | 83 | "prettier": "@1stg/prettier-config", |
|
100 | 91 | "@1stg" |
101 | 92 | ] |
102 | 93 | }, |
| 94 | + "size-limit": [ |
| 95 | + { |
| 96 | + "path": "./packages/node-esbuild/lib/index.js" |
| 97 | + }, |
| 98 | + { |
| 99 | + "path": "./packages/preset-node-lib/lib/index.js" |
| 100 | + } |
| 101 | + ], |
103 | 102 | "stylelint": { |
104 | 103 | "extends": "@1stg/stylelint-config" |
105 | 104 | }, |
|
0 commit comments