@teacss/astro 0.10.7 → 0.10.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teacss/astro",
3
- "version": "0.10.7",
3
+ "version": "0.10.9",
4
4
  "description": "Astro integration for TeaCSS on the Rust engine: registers @teacss/vite and injects the generated stylesheet",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "astro": ">=6"
37
37
  },
38
38
  "dependencies": {
39
- "@teacss/vite": "0.10.7"
39
+ "@teacss/vite": "0.10.9"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^22.20.5",
package/dist/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { type TeacssViteOptions } from "@teacss/vite";
2
- import type { AstroIntegration } from "astro";
3
- export type { ShellOptions, TeacssViteOptions } from "@teacss/vite";
4
- export interface TeacssAstroOptions extends TeacssViteOptions {
5
- /** Import the generated stylesheet into every page; a string names the module to import instead of `virtual:teacss.css`. Default `true`. */
6
- injectEntry?: boolean | string;
7
- /** Module statements injected into every page after the entry. */
8
- injectExtra?: string[];
9
- }
10
- /** v10.2 §3.2: registers `@teacss/vite` with Astro's Vite and injects the stylesheet import at `page-ssr`. */
11
- export declare function teacss(options?: TeacssAstroOptions): AstroIntegration;
12
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js DELETED
@@ -1,18 +0,0 @@
1
- import { teacss as vite } from "@teacss/vite";
2
- /** v10.2 §3.2: registers `@teacss/vite` with Astro's Vite and injects the stylesheet import at `page-ssr`. */
3
- export function teacss(options = {}) {
4
- const { injectEntry = true, injectExtra = [], ...viteOptions } = options;
5
- return {
6
- name: "@teacss/astro",
7
- hooks: {
8
- "astro:config:setup": ({ updateConfig, injectScript }) => {
9
- updateConfig({ vite: { plugins: vite(viteOptions) } });
10
- if (injectEntry !== false)
11
- injectScript("page-ssr", `import ${JSON.stringify(typeof injectEntry === "string" ? injectEntry : "virtual:teacss.css")};`);
12
- for (const statement of injectExtra)
13
- injectScript("page-ssr", statement);
14
- },
15
- },
16
- };
17
- }
18
- //# sourceMappingURL=index.js.map