@typestyles/vite 0.0.0-unstable.df708abe489f → 0.0.0-unstable.e0f6d154e2c2

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
@@ -142,7 +142,7 @@ Even with a convention entry present, this keeps `<style>` injection in producti
142
142
 
143
143
  **Extraction:** On `vite build`, matching entry modules are bundled and executed in Node via `@typestyles/build-runner`. The collected CSS is emitted as a static asset. In dev, the same extraction runs on demand when the browser requests `/typestyles.css` so your `<link>` href works without SPA fallback returning HTML.
144
144
 
145
- **Duplicate detection:** The plugin scans every source file for namespace strings (`recipe('button', …)` → `.button-`). Collisions across files fail the build with a clear error.
145
+ **Duplicate detection:** The plugin scans every source file for namespace strings (`recipe({ name: 'button' })` → `.button-`). Collisions across files fail the build with a clear error.
146
146
 
147
147
  ## Verify production output
148
148
 
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ export { DEFAULT_EXTRACT_MODULE_CANDIDATES, TypestylesExtractOptions, discoverDe
6
6
  * Regex patterns to extract namespace strings from typestyles API calls.
7
7
  *
8
8
  * Matches:
9
- * recipe('button', ...) → prefix ".button-"
9
+ * recipe({ name: 'button', ... }) → prefix ".button-"
10
10
  * style('card', ...) → prefix ".card-"
11
11
  * tokens.create('color', ...) → key "tokens:color"
12
12
  * tokens.createTheme({ name: 'dark', … }) → key "theme:dark"
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { DEFAULT_EXTRACT_MODULE_CANDIDATES, TypestylesExtractOptions, discoverDe
6
6
  * Regex patterns to extract namespace strings from typestyles API calls.
7
7
  *
8
8
  * Matches:
9
- * recipe('button', ...) → prefix ".button-"
9
+ * recipe({ name: 'button', ... }) → prefix ".button-"
10
10
  * style('card', ...) → prefix ".card-"
11
11
  * tokens.create('color', ...) → key "tokens:color"
12
12
  * tokens.createTheme({ name: 'dark', … }) → key "theme:dark"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typestyles/vite",
3
- "version": "0.0.0-unstable.df708abe489f",
3
+ "version": "0.0.0-unstable.e0f6d154e2c2",
4
4
  "description": "Vite plugin for typestyles HMR support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -41,12 +41,12 @@
41
41
  "eslint": "^9.39.2",
42
42
  "tsup": "^8.0.0",
43
43
  "typescript": "^5.4.0",
44
- "typestyles": "0.0.0-unstable.df708abe489f",
44
+ "typestyles": "0.0.0-unstable.e0f6d154e2c2",
45
45
  "vite": "^6.0.0",
46
46
  "vitest": "^3.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@typestyles/build-runner": "0.0.0-unstable.df708abe489f"
49
+ "@typestyles/build-runner": "0.0.0-unstable.e0f6d154e2c2"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup src/index.ts --format esm,cjs --dts --clean --external typestyles,@typestyles/build-runner",