[READ-ONLY] Mirror of https://github.com/danielroe/postcss-capsize. PostCSS plugin to inject Capsize font metrics
0

Configure Feed

Select the types of activity you want to include in your feed.

chore: update pnpm workspace defaults + add type checking

Daniel Roe (Jun 9, 2026, 12:23 PM +0100) 89784d3d 4e37c8a5

+14 -53
+2 -3
package.json
··· 42 42 "prepack": "tsdown", 43 43 "prepare": "simple-git-hooks && pnpm build", 44 44 "prepublishOnly": "pnpm lint && pnpm test", 45 - "release": "bumpp && npm publish", 46 - "test": "pnpm test:unit", 45 + "test": "pnpm test:types && pnpm test:unit", 46 + "test:types": "tsc --noEmit", 47 47 "test:unit": "vitest" 48 48 }, 49 49 "peerDependencies": { ··· 55 55 "devDependencies": { 56 56 "@antfu/eslint-config": "^9.0.0", 57 57 "@vitest/coverage-v8": "^4.1.8", 58 - "bumpp": "^11.1.0", 59 58 "eslint": "^10.4.1", 60 59 "lint-staged": "^17.0.7", 61 60 "postcss": "^8.5.15",
+2 -42
pnpm-lock.yaml
··· 18 18 '@vitest/coverage-v8': 19 19 specifier: ^4.1.8 20 20 version: 4.1.8(vitest@4.1.8) 21 - bumpp: 22 - specifier: ^11.1.0 23 - version: 11.1.0 24 21 eslint: 25 22 specifier: ^10.4.1 26 23 version: 10.4.1(jiti@2.7.0) ··· 716 713 resolution: {integrity: sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==} 717 714 engines: {node: '>=14'} 718 715 719 - args-tokenizer@0.3.0: 720 - resolution: {integrity: sha512-xXAd7G2Mll5W8uo37GETpQ2VrE84M181Z7ugHFGQnJZ50M2mbOv0osSZ9VsSgPfJQ+LVG0prSi0th+ELMsno7Q==} 721 - 722 716 assertion-error@2.0.1: 723 717 resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} 724 718 engines: {node: '>=12'} ··· 757 751 builtin-modules@5.2.0: 758 752 resolution: {integrity: sha512-02yxLeyxF4dNl6SlY6/5HfRSrSdZ/sCPoxy2kZNP5dZZX8LSAD9aE2gtJIUgWrsQTiMPl3mxESyrobSwvRGisQ==} 759 753 engines: {node: '>=18.20'} 760 - 761 - bumpp@11.1.0: 762 - resolution: {integrity: sha512-jdwOGMyX8JIqpQ0N2RMRR87DHZaoJnUtui5lU9LqFfFK5JC0H8qY9uWqXoa+dEWt/K7rOmmsoyiZB8RBM7RPBQ==} 763 - engines: {node: '>=20.19.0'} 764 - hasBin: true 765 754 766 755 cac@7.0.0: 767 756 resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==} ··· 1322 1311 jsonc-eslint-parser@3.1.0: 1323 1312 resolution: {integrity: sha512-75EA7EWZExL/j+MDKQrRbdzcRI2HOkRlmUw8fZJc1ioqFEOvBsq7Rt+A6yCxOt9w/TYNpkt52gC6nm/g5tFIng==} 1324 1313 engines: {node: ^20.19.0 || ^22.13.0 || >=24} 1325 - 1326 - jsonc-parser@3.3.1: 1327 - resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} 1328 1314 1329 1315 katex@0.16.47: 1330 1316 resolution: {integrity: sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==} ··· 1938 1924 1939 1925 unconfig-core@7.5.0: 1940 1926 resolution: {integrity: sha512-Su3FauozOGP44ZmKdHy2oE6LPjk51M/TRRjHv2HNCWiDvfvCoxC2lno6jevMA91MYAdCdwP05QnWdWpSbncX/w==} 1941 - 1942 - unconfig@7.5.0: 1943 - resolution: {integrity: sha512-oi8Qy2JV4D3UQ0PsopR28CzdQ3S/5A1zwsUwp/rosSbfhJ5z7b90bIyTwi/F7hCLD4SGcZVjDzd4XoUQcEanvA==} 1944 1927 1945 1928 unist-util-is@6.0.1: 1946 1929 resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} ··· 2746 2729 2747 2730 are-docs-informative@0.0.2: {} 2748 2731 2749 - args-tokenizer@0.3.0: {} 2750 - 2751 2732 assertion-error@2.0.1: {} 2752 2733 2753 2734 ast-kit@3.0.0-beta.1: ··· 2783 2764 update-browserslist-db: 1.2.3(browserslist@4.28.2) 2784 2765 2785 2766 builtin-modules@5.2.0: {} 2786 - 2787 - bumpp@11.1.0: 2788 - dependencies: 2789 - args-tokenizer: 0.3.0 2790 - cac: 7.0.0 2791 - jsonc-parser: 3.3.1 2792 - package-manager-detector: 1.6.0 2793 - semver: 7.8.2 2794 - tinyexec: 1.2.4 2795 - tinyglobby: 0.2.17 2796 - unconfig: 7.5.0 2797 - yaml: 2.9.0 2798 2767 2799 2768 cac@7.0.0: {} 2800 2769 ··· 3301 3270 html-escaper: 2.0.2 3302 3271 istanbul-lib-report: 3.0.1 3303 3272 3304 - jiti@2.7.0: {} 3273 + jiti@2.7.0: 3274 + optional: true 3305 3275 3306 3276 js-tokens@10.0.0: {} 3307 3277 ··· 3322 3292 acorn: 8.16.0 3323 3293 eslint-visitor-keys: 5.0.1 3324 3294 semver: 7.8.2 3325 - 3326 - jsonc-parser@3.3.1: {} 3327 3295 3328 3296 katex@0.16.47: 3329 3297 dependencies: ··· 4112 4080 dependencies: 4113 4081 '@quansync/fs': 1.0.0 4114 4082 quansync: 1.0.0 4115 - 4116 - unconfig@7.5.0: 4117 - dependencies: 4118 - '@quansync/fs': 1.0.0 4119 - defu: 6.1.7 4120 - jiti: 2.7.0 4121 - quansync: 1.0.0 4122 - unconfig-core: 7.5.0 4123 4083 4124 4084 unist-util-is@6.0.1: 4125 4085 dependencies:
+4
pnpm-workspace.yaml
··· 1 + shellEmulator: true 2 + 3 + trustPolicy: no-downgrade 4 + 1 5 allowBuilds: 2 6 esbuild: false 3 7 simple-git-hooks: true
+4 -7
tsconfig.json
··· 2 2 "compilerOptions": { 3 3 "target": "esnext", 4 4 "lib": ["esnext", "dom"], 5 - "rootDir": "src", 6 5 "module": "esnext", 7 - "moduleResolution": "node", 6 + "moduleResolution": "bundler", 8 7 "strict": true, 9 - "declaration": true, 10 - "outDir": "lib", 11 - "sourceMap": true, 12 - "skipLibCheck": true 8 + "skipLibCheck": true, 9 + "noEmit": true 13 10 }, 14 - "exclude": ["node_modules", "lib", "test"] 11 + "exclude": ["dist"] 15 12 }
+2 -1
test/index.spec.ts
··· 1 + import type { FontMetrics } from '@capsizecss/core' 1 2 import type Processor from 'postcss/lib/processor' 2 3 import postcss from 'postcss' 3 4 ··· 18 19 descent: -200, 19 20 lineGap: 0, 20 21 unitsPerEm: 1000, 21 - }, 22 + } as FontMetrics, 22 23 }, 23 24 }), 24 25 ])