@typestyles/astro 0.3.10 → 0.3.12

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.
package/README.md CHANGED
@@ -94,6 +94,8 @@ Accepts the same options as `@typestyles/vite`:
94
94
  ```ts
95
95
  typestyles({
96
96
  warnDuplicates?: boolean;
97
+ /** Default true. Set false to allow app recipes outside the extract entry. */
98
+ coverage?: boolean;
97
99
  mode?: 'runtime' | 'build' | 'hybrid';
98
100
  extract?: {
99
101
  modules?: string[];
package/dist/index.cjs CHANGED
@@ -27,7 +27,13 @@ function typestyles(options = {}) {
27
27
  return {
28
28
  name: "typestyles",
29
29
  hooks: { "astro:config:setup"({ updateConfig }) {
30
- updateConfig({ vite: { plugins: [(0, _typestyles_vite.default)(options)] } });
30
+ updateConfig({ vite: { plugins: [(0, _typestyles_vite.default)({
31
+ ...options,
32
+ extract: {
33
+ ...options.extract,
34
+ fileName: options.extract?.fileName ?? "typestyles.css"
35
+ }
36
+ })] } });
31
37
  } }
32
38
  };
33
39
  }
package/dist/index.js CHANGED
@@ -4,7 +4,13 @@ function typestyles(options = {}) {
4
4
  return {
5
5
  name: "typestyles",
6
6
  hooks: { "astro:config:setup"({ updateConfig }) {
7
- updateConfig({ vite: { plugins: [typestylesVite(options)] } });
7
+ updateConfig({ vite: { plugins: [typestylesVite({
8
+ ...options,
9
+ extract: {
10
+ ...options.extract,
11
+ fileName: options.extract?.fileName ?? "typestyles.css"
12
+ }
13
+ })] } });
8
14
  } }
9
15
  };
10
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typestyles/astro",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "Astro integration for typestyles (dev HMR, production CSS extraction)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -37,14 +37,14 @@
37
37
  "astro": ">=4.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@typestyles/vite": "0.5.3"
40
+ "@typestyles/vite": "0.6.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "astro": "^5.6.1",
44
44
  "typescript": "^6.0.0",
45
45
  "vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
46
46
  "vite-plus": "1.3.0",
47
- "typestyles": "0.32.3"
47
+ "typestyles": "0.34.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "vp pack",