@theholocron/vite-config 7.8.1 → 7.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -7
  2. package/package.json +6 -5
package/README.md CHANGED
@@ -5,7 +5,7 @@ A [Vite configuration](https://vite.dev/config/) with presets for libraries, Rea
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install --save-dev @theholocron/vite-config
8
+ pnpm add -D @theholocron/vite-config
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -20,9 +20,7 @@ Outputs ESM only; externalises `react` and `react-dom` by default. Returns a `Pr
20
20
  import { defineConfig } from "vite";
21
21
  import { library } from "@theholocron/vite-config/library";
22
22
 
23
- export default defineConfig(
24
- await library({ entry: "src/index.ts", name: "MyLib" }),
25
- );
23
+ export default defineConfig(await library({ entry: "src/index.ts", name: "MyLib" }));
26
24
  ```
27
25
 
28
26
  ### React single-page application
@@ -64,15 +62,15 @@ All three presets automatically include [`@codecov/vite-plugin`](https://www.npm
64
62
  Install the peer dependency:
65
63
 
66
64
  ```bash
67
- npm install --save-dev @codecov/vite-plugin
65
+ pnpm add -D @codecov/vite-plugin
68
66
  ```
69
67
 
70
68
  Set `CODECOV_TOKEN` as a CI secret, then add the following to your `codecov.yml` to control when Codecov posts bundle size comments on PRs:
71
69
 
72
70
  ```yaml
73
71
  comment:
74
- require_bundle_changes: true
75
- bundle_change_threshold: "1Kb"
72
+ require_bundle_changes: true
73
+ bundle_change_threshold: "1Kb"
76
74
  ```
77
75
 
78
76
  This posts a comment only when bundle size changes by more than 1 KB — enough to flag meaningful regressions without noise from routine fluctuations. See the [Codecov bundle analysis docs](https://docs.codecov.com/docs/javascript-bundle-analysis) for more threshold options.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/vite-config",
3
- "version": "7.8.1",
3
+ "version": "7.9.0",
4
4
  "description": "Vite configuration presets for libraries, React apps, and Node tools within the Galaxy.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/vite-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -24,10 +24,10 @@
24
24
  "typescript": "^5.9.3",
25
25
  "vitest": "^4.1.10",
26
26
  "@vitest/coverage-v8": "^4.1.10",
27
- "vite": "^8.1.5",
27
+ "vite": "^8.2.0",
28
28
  "@codecov/vite-plugin": "^2.0.0",
29
- "@theholocron/tsconfig": "7.8.1",
30
- "@theholocron/vitest-config": "7.8.1"
29
+ "@theholocron/tsconfig": "7.9.0",
30
+ "@theholocron/vitest-config": "7.9.0"
31
31
  },
32
32
  "exports": {
33
33
  ".": {
@@ -83,6 +83,7 @@
83
83
  "scripts": {
84
84
  "build": "tsdown",
85
85
  "typecheck": "tsc --noEmit",
86
- "test": "vitest run"
86
+ "test": "vitest run",
87
+ "test:coverage": "vitest run --coverage"
87
88
  }
88
89
  }